zaach / jison

Bison in JavaScript.
http://jison.org
4.36k stars 450 forks source link

fixed-error-in-calculator-json-example #361

Open starizard opened 7 years ago

starizard commented 7 years ago

Existing calculator.json generates: rules: [/^(?:\s+)/,/^(?:[0-9]+(?:\.[0-9]+)?)/,/^(?:\*)/,/^(?:\/)/,/^(?:-)/,/^(?:\+)/,/^(?:\^)/,/^(?:!)/,/^(?:%)/,/^(?:\()/,/^(?:\))/,/^(?:PI)/,/^(?:E)/,/^(?:$)/] and causes a lexical error