diff options
author | sienkiew <sienkiew@d34015c8-bcbb-4646-8ac8-8ba5febf221d> | 2011-08-09 16:35:40 -0400 |
---|---|---|
committer | sienkiew <sienkiew@d34015c8-bcbb-4646-8ac8-8ba5febf221d> | 2011-08-09 16:35:40 -0400 |
commit | 0916983826af0e2f581786c53ba01d313224862d (patch) | |
tree | a2ecf4d6e80ec701f94f07edf8e94305b6898d5f | |
parent | 7d430ae328370579fbef7d085dcfdf374282e183 (diff) | |
download | exyapps-0916983826af0e2f581786c53ba01d313224862d.tar.gz |
no tabs
git-svn-id: http://svn.stsci.edu/svn/ssb/etal/exyapps/trunk@365 d34015c8-bcbb-4646-8ac8-8ba5febf221d
-rw-r--r-- | yapps_grammar.g | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/yapps_grammar.g b/yapps_grammar.g index bf2b14d..a5517e1 100644 --- a/yapps_grammar.g +++ b/yapps_grammar.g @@ -32,9 +32,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 @@ -75,9 +75,9 @@ parser ParserDescription: ( "token" ID ":" Str {{ tok.append( (ID,Str) ) }} | "ignore" - ":" Str {{ ign = ('#ignore',Str) }} - ( STMT {{ ign = ign + (STMT[2:-2],) }} )? - {{ tok.append( ign ) }} + ":" Str {{ ign = ('#ignore',Str) }} + ( STMT {{ ign = ign + (STMT[2:-2],) }} )? + {{ tok.append( ign ) }} )* {{ return tok }} |