forked from zaach/jison
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjusted the examples for zaach#205/342 to showcase the latest kernel…
… optimizations too: when there's no match, i.e. a parse error, then the parser still invokes `parseError()` like in the old days and has it throw an exception if you don't override it, but you can also make it return `false` to turn the parser into a true *matcher*, returning `true` or `false` whether the input parses correctly or not! See examples/issue-205-2.jison.
- Loading branch information
1 parent
c843887
commit dd49f0a
Showing
2 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters