Added missing import statement and applied pep8.

parent 8beba7ba
...@@ -17,6 +17,7 @@ sys.path.insert(0, PYBISON_BUILD) ...@@ -17,6 +17,7 @@ sys.path.insert(0, PYBISON_BUILD)
sys.path.insert(1, EXTERNAL_MODS) sys.path.insert(1, EXTERNAL_MODS)
from pybison import BisonParser, BisonSyntaxError from pybison import BisonParser, BisonSyntaxError
from graph_drawing.graph import generate_graph
# Check for n-ary operator in child nodes # Check for n-ary operator in child nodes
...@@ -39,7 +40,7 @@ class Parser(BisonParser): ...@@ -39,7 +40,7 @@ class Parser(BisonParser):
# of tokens of the lex script. # of tokens of the lex script.
tokens = ['NUMBER', 'IDENTIFIER', tokens = ['NUMBER', 'IDENTIFIER',
'PLUS', 'MINUS', 'TIMES', 'DIVIDE', 'POW', 'PLUS', 'MINUS', 'TIMES', 'DIVIDE', 'POW',
'LPAREN', 'RPAREN', 'COMMA', #'CONCAT_POW', 'LPAREN', 'RPAREN', 'COMMA', # 'CONCAT_POW',
'NEWLINE', 'QUIT', 'RAISE', 'GRAPH'] 'NEWLINE', 'QUIT', 'RAISE', 'GRAPH']
# ------------------------------ # ------------------------------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment