VERY basic functions implementation
This commit is contained in:
@@ -119,7 +119,7 @@ def generate_ast(tokens: list[Token], code: str) -> RootNode:
|
||||
scope = scope.parent # go up one scope
|
||||
current_node.parent = scope
|
||||
scope.statements.append(current_node)
|
||||
current_node = scope
|
||||
current_node = None
|
||||
else:
|
||||
current_node.parent = scope
|
||||
else:
|
||||
|
Reference in New Issue
Block a user