Skip to content

Commit

Permalink
because otherwise, there'll be way too many context values
Browse files Browse the repository at this point in the history
  • Loading branch information
lyxal committed Aug 13, 2021
1 parent 4781477 commit 9ab882a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vyxal/transpile.py
Expand Up @@ -115,6 +115,7 @@ def transpile_structure(struct: structure.Structure, indent: int) -> str:
res += transpile_ast(cond, new_indent)

res += indent_str("condition = pop(stack)", new_indent)
res += indent_str("context_values.pop()", new_indent)
res += indent_str("context_values.append(condition)", new_indent)
res += indent_str("if boolify(condition):", new_indent)
res += transpile_ast(body, new_indent + 1)
Expand Down

0 comments on commit 9ab882a

Please sign in to comment.