Просмотр исходного кода

Merge branch 'master' of kompiler.org:trs into sort

Taddeus Kroes 14 лет назад
Родитель
Сommit
bffd9f5d98
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/parser.py

+ 1 - 1
src/parser.py

@@ -154,7 +154,7 @@ class Parser(BisonParser):
             left, right = filter(None, match.groups())
 
             # 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
 
             # If all characters on the right are numbers. e.g. "a4", the