- Added location to AST
- Thanks to @ConradIrwin :thumbsup
- Huge (x75) performance improvement.
- Thanks to @morwen :thumbsup
- A Set AST can now contain ranges of char codes as well as single char codes.
export interface Set extends IRegExpAST { type: "Set" complement: boolean value: (number | Range)[] quantifier?: Quantifier }
- Types: Set now declares a complement property.
- Types: BaseAstVisitor now declares a visitChildren method.
- Types: All AST node types extend a base interface.
- Fixed: Visitor APIs were lacking the node argument.
- Added "typings" property in package.json for TypeScript consumers.
- Fixed: Version number in regexpToAst.VERSION property.
- An AST Visitor class is provided to easily traverse the AST output (See main README.md)
- Fixed: Quantifier identifying using backtracking instead of lookahead.
- Fixed: Quantifier from range can be zero.
- VERSION constant exported.
- Fixed class atoms to allow syntax characters (?, +, *, ...).
- Fixed regular atoms to allow closing curly and square brackets.
- Updated npm metadata.
- Initial Release.