Skip to content

Commit

Permalink
#150- Correct/Modify Parser Code
Browse files Browse the repository at this point in the history
Fixed a bug in private method `_append_syntaxic_node()` in module `fe-parser.py` (missing arg in one specific case).
  • Loading branch information
schmouk committed Sep 3, 2019
1 parent c8414ae commit c94e3ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/FrontEnd/IntermediateCode/fe_icblock.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#=============================================================================
from FrontEnd.IntermediateCode.fe_icnode import FEICNode
from FrontEnd.IntermediateCode.fe_icleaf import FEICLeaf
##from FrontEnd.IntermediateCode.fe_icleaf import FEICLeaf


#=============================================================================
Expand Down
4 changes: 2 additions & 2 deletions src/FrontEnd/Parser/fe_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -4240,8 +4240,8 @@ def _append_new_block(self) -> None:
self._out_syntax_ic += FEICBlock()
self._append_syntaxic_node()
#-------------------------------------------------------------------------
def _append_syntaxic_node(self) -> bool:
self._out_syntax_ic += FEICLeaf( self._current )
def _append_syntaxic_node(self, s_node: FEICodeTokenNode = None) -> bool:
self._out_syntax_ic += FEICLeaf( self._current if s_node is None else s_node )
return True
#-------------------------------------------------------------------------
def _eof(self) -> bool:
Expand Down

0 comments on commit c94e3ff

Please sign in to comment.