Skip to content

Commit

Permalink
dev: fix invalid if condition, syntax tree pdf is much better now
Browse files Browse the repository at this point in the history
  • Loading branch information
senyai committed Apr 20, 2024
1 parent d78303f commit 95ea578
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pikchr/syntax_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def parse(filename: str):
"prsep",
"rvalue",
"savelist",
"unnamed_statement",
# "unnamed_statement",
"withclause",
"optrelexpr",
# "objectname", recursion
Expand Down Expand Up @@ -81,7 +81,7 @@ def render(
dbg_count += 1
dot2_key = f"{orig_value}_{dot_key}_{dbg_count}"
value = replace.get(orig_value, orig_value)
if value in enumerate(subgraphs):
if value in subgraphs:
dot2_key = f"{value}_{dot_key}_{dbg_count}"
with dot.subgraph(
name=dot2_key,
Expand Down

0 comments on commit 95ea578

Please sign in to comment.