Skip to content

Commit

Permalink
pycache shouldnt be here
Browse files Browse the repository at this point in the history
  • Loading branch information
ibx34 committed Nov 23, 2024
1 parent 9a8676f commit a000fdd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Binary file removed __pycache__/ast.cpython-313.pyc
Binary file not shown.
5 changes: 3 additions & 2 deletions ast.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,19 +447,20 @@ def parse(self) -> Expr | None:
if expr is None or not isinstance(expr, Parameter):
self.at -= 1
break

body = self.parse()
if body is None:
raise Exception(f"Lambda must have body {self.current()}")
popped = self.results.pop()
if not isinstance(popped, Identifier):
return popped


self.using_st = 0
result = Assignment(
self.current_number_of_advances,
popped,
Lambda(self.current_number_of_advances, lambda_symbol_table, body),
)

# At this point, past previous parsing, we should have advanced past
# the last token and now be face-to-face with the rare, elusive, OP!
c = self.current()
Expand Down

0 comments on commit a000fdd

Please sign in to comment.