diff options
Diffstat (limited to 'exyapps/grammar.py')
-rw-r--r-- | exyapps/grammar.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/exyapps/grammar.py b/exyapps/grammar.py index 258c464..8220579 100644 --- a/exyapps/grammar.py +++ b/exyapps/grammar.py @@ -33,9 +33,9 @@ def cleanup_sequence(rule, lst): def resolve_name(rule, tokens, id, args): if id in [x[0] for x in tokens]: - # It's a token - if args: - print 'Warning: ignoring parameters on TOKEN %s<<%s>>' % (id, args) + # It's a token + if args: + print 'Warning: ignoring parameters on TOKEN %s<<%s>>' % (id, args) return parsetree.Terminal(rule, id) else: # It's a name, so assume it's a nonterminal |