Commit cd209ec1 authored by Taddeus Kroes's avatar Taddeus Kroes

Merge branch 'master' of kompiler.org:trs

parents d779bea2 54eb9c5b
...@@ -154,7 +154,7 @@ class Parser(BisonParser): ...@@ -154,7 +154,7 @@ class Parser(BisonParser):
left, right = filter(None, match.groups()) left, right = filter(None, match.groups())
# Filter words (otherwise they will be preprocessed as well) # Filter words (otherwise they will be preprocessed as well)
if left + right in ['graph', 'raise']: if (left + right).upper() in self.tokens:
return left + right return left + right
# If all characters on the right are numbers. e.g. "a4", the # If all characters on the right are numbers. e.g. "a4", the
......
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