Arithmetic Parser Demo using parexgram.js
Platform | Build Status |
---|---|
Linux | |
Windows |
arithmetic
: addition
;
addition
: multiplication ( ('+' | '-') addition )*
;
multiplication
: exponentiation ( ('*' | '/') multiplication)*
;
exponentiation
: negation ('^' exponentiation)*
;
negation
: '-'? atom
;
atom
: value
| '(' addition ')'
;
value
: [0-9]* '.' [0-9]*
;
npm i arithmetic-parser-demo
npm install
npm run build