waypoint -- jison has a reverse order of operations from yacc

This commit is contained in:
Jeremy Ashkenas
2010-02-11 23:29:12 -05:00
parent 7c01bba4f4
commit 13c49ad865
5 changed files with 9 additions and 9 deletions

View File

@@ -458,7 +458,7 @@ for name, non_terminal of grammar
option[1] = "return " + option[1]
option
tokens: tokens.join(" ")
parser: new Parser({tokens: tokens, bnf: bnf, operators: operators, startSymbol: 'Root'}, {debug: false})
parser: new Parser({tokens: tokens, bnf: bnf, operators: operators.reverse(), startSymbol: 'Root'}, {debug: false})
# Save the parser to a file.
# puts parser.generate()