Skip to content

Commit d0acb22

Browse files
author
F Saad
committed
Show a confusion case for SKIPS rather than SKIP token.
1 parent 3c07f4d commit d0acb22

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/metamodels/cgpm_analyze/analyze_parse.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ def parse(tokens):
4343
semantics = CGpmAnalyzeSemantics()
4444
parser = analyze_grammar.Parser(semantics)
4545
for token in tokenize(tokens):
46-
print token
4746
semantics.context.append(token)
4847
if len(semantics.context) > 10:
4948
semantics.context.pop(0)
@@ -108,7 +107,8 @@ def p_column_name_n(self, name): return name
108107
if __name__ == '__main__':
109108
# VARIABLES a, b,c, d;
110109
tokens = [
111-
'SKIP', 'a', ',', 'b', ';',
110+
'SKIPS', 'a', ',', 'b', ';', # XXX Why does this not raise?
112111
'VARIABLES', 'a', ',', 'b', ';',
113-
'SKIP', 'a', ';']
112+
'SKIP', 'a', ';'
113+
]
114114
print parse(tokens)

0 commit comments

Comments
 (0)