- Added
--include-grammar-comment
to support removing the autogenerated comment at the beginning of the parser file with the input grammar. (#40).
- Added
--regex-flags
flag to support user specified regex flags. Can be used to enable unicode property matchers (#27).
- Support for CRLF endlines added. (#28)
- Support for memoisation (#8).
- Added support for left recursion (#17).
- Add
$
symbol for matching EOF. - Parsers no longer fail if EOF is not met (unless specified with
$
). ParseResult
objects now return a list ofSyntaxErr
s.SyntaxErr
objects now return more detailedMatchAttempts
rather than just strings.
- Removed useless expected rules computation (never worked properly).
Unpublished due to CD failures, can't be undone. All 3.0.0 changes are in 3.0.1
- Added static checks for banned match names
- Added static checks for undefined rules (#13).
- Fixed template string support in code blocks
- Reduced size of npm package (#14).
- Updated README with latest docs + screenshots
- Special error is raised when EOF is not reached during parse.
- Numbers can now be used in names of IDs (not in first position).
- Added
num-enums
flag to specify numeric kind enums. - Support for C-style comments (#2)
- Add
--version
and--help
CLI flags
- No longer need to escape braces ({}) in code sections in computed properties. (#12)
- Type declarations for computed properties properly support whitespace. (#4)
mark
parser method is now public.- Enums are now string valued by default. (#3)
- Bump lodash dependency from 4.17.15 to 4.17.19
- Name collision avoidance has been avoided.
- Type expressions no longer require whitespace in computed properties.
- Add workaround for Safari/iOS/WebKit issues. See https://bugs.webkit.org/show_bug.cgi?id=214181 for details on bug.
- Update typo in README
- Fix off-by-one error in position tracking
- Documentation update.
- Compile time regex correctness check.
- Export parse function, don't always require explicit
Parser
instantiation. - Add test() function to
Parser
, only checks if grammar matches, doesn't return AST. - Add special
@
rule for storing parser position on AST. - Add lots of tests.
- CLI usage messages