Skip to content

Commit

Permalink
Merge pull request #200 from Typee-Language/#150-Modify-Correct-Parse…
Browse files Browse the repository at this point in the history
…r-Code

#150 modify correct parser code
  • Loading branch information
schmouk committed Feb 16, 2019
2 parents b1cd08e + 2ad329b commit 8606048
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 8606048

Please sign in to comment.