zaach / jison

Bison in JavaScript.
http://jison.org
4.33k stars 448 forks source link

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

Open starizard opened 6 years ago

starizard commented 6 years ago

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