Parse javascript code expressions and statements
The following are asupported:
- es5 syntax
- class definition
- arrow function
- optional chaining
- destructuring
- import
- export
- es6 object syntax
Two classes are available
- ExpressionParser
- StatementParser
Each class has parse
static method that is use to parse string/text.
To parse expression, use ExpressionParser.parse and to parse javascript statements use StatementParser.parse static method.
This version uses xregexp-all.js
of Steven Levithan (c) 2012-2017 MIT License (https://xregexp.com/)
The MIT License © 2021 Marc KAMGA Olivier <[email protected];[email protected]>. See LICENSE.md for full notice.