A simple Expression AST builder
base on create-react-app
npm i
& npm start
ADD(POW(b1, 2), b2 and b3) + SUB(MULTI(b3, 4), 10)
CallExpression(e.g. SUM(a,b))
BinaryExpression( +, -, *, /, >, <, >=, <=, =, !=)
LogicalExpression(and, or, not)
Literal('string', 123)
Identifier(b1, b2)
- quote bug
- better error tips
- error with position
- export API