altoviso / bdParse

a JavaScript LL(1) parser in JavaScript
http://bdframework.org/bdParse/index.html
Other
14 stars 3 forks source link

Parser failure when EOF exists where semicolon is expected at end of statement #5

Open csnover opened 12 years ago

csnover commented 12 years ago

EOF should be considered a valid statement terminator, but currently it generates an error. For example, given the following code:

foo()

the following error is generated: [2, 5]unexpected token (tEof:'EOF'); expected ;