Skip to content
Snippets Groups Projects
Commit d3a965d4 authored by Henning Glawe's avatar Henning Glawe
Browse files

integrate subscripts into syntax tree

parent a784da3f
No related branches found
No related tags found
No related merge requests found
......@@ -305,6 +305,13 @@ class FploInputParser(object):
self.statement = newblock.items[0]
elif isinstance(this_token, token_block_end):
self.statement = self.statement.parent.parent
elif isinstance(this_token, token_subscript_begin):
newsubscript = subscript(self.statement)
newsubscript.append(statement(newsubscript))
self.statement.append(newsubscript)
self.statement = newsubscript.items[0]
elif isinstance(this_token, token_subscript_end):
self.statement = self.statement.parent.parent
elif isinstance(this_token, token_statement_end):
self.statement.parent.append(statement(self.statement.parent))
self.statement = self.statement.parent.items[-1]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment