Skip to content

Commit

Permalink
#150-Modify-Correct Parser Code
Browse files Browse the repository at this point in the history
Implemented new version of Intermediate Code Tree into module `FrontEnd/Parser/fe_parser.py`.
  • Loading branch information
schmouk committed Feb 14, 2019
1 parent 07c8c75 commit 2ad329b
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 256 deletions.
4 changes: 2 additions & 2 deletions src/FrontEnd/IntermediateCode/fe_icblock.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ class FEICBlock( FEICNode ):
"""

#-------------------------------------------------------------------------
def __init__(self, parent:FEICNode=None):
def __init__(self): ##, parent:FEICNode=None):
'''
Constructor.
'''
super().__init__( [] ) ## content is an empty list (of FEICNode-s)
self.parent = parent
##self.parent = parent

#-------------------------------------------------------------------------
def __iadd__(self, ic_node:FEICNode):
Expand Down
4 changes: 2 additions & 2 deletions src/FrontEnd/IntermediateCode/fe_ictree.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ def __iadd__(self, ic_node:(FEICBlock,FEICNode)):
self._current = ic_node

#-------------------------------------------------------------------------
def up(self):
def up_level(self):
'''
Goes back to parent block in IC Tree.
Goes one level up in the tree, i.e. back to parent block in the IC Tree.
'''
self._current = self._current.parent

Expand Down
95 changes: 0 additions & 95 deletions src/FrontEnd/IntermediateCode/fe_syntax_icode.py

This file was deleted.

124 changes: 0 additions & 124 deletions src/FrontEnd/IntermediateCode/fe_syntax_icode_node.py

This file was deleted.

Loading

0 comments on commit 2ad329b

Please sign in to comment.