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