globals are more or less ready.
This commit is contained in:
1 parent
f08811fba7
commit
74d4fcf4e7
4 files changed
+14
-12
No files matched your search
@@ -61,6 +61,8 @@ class Parser(object):
|
||||
print(repr(source))
|
||||
self.module = d.parse_string(source).get_parent_until()
|
||||
|
||||
self.module.set_global_names(self.global_names)
|
||||
|
||||
def convert(self, grammar, raw_node):
|
||||
new_node = pytree.convert(grammar, raw_node)
|
||||
if isinstance(new_node, pr.GlobalStmt):
|
||||
|
||||
Reference in new issue
Block a user