-
Notifications
You must be signed in to change notification settings - Fork 452
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CustomScanner Unexpected EOF #362
Comments
Which jison version are you using? |
Version ^0.4.18 |
…ho` due to the particular filename of this example: to be fixed.
If you try this with jison-gho, it works. (npm: https://www.npmjs.com/package/jison-gho, github: https://github.com/GerHobbelt/jison) Note that the jison-gho fork can be more strict when it comes to custom lexers: see that package's examples:
If OTOH you wish to work with vanilla jison (0.4.x), you might want to go and code-inspect and/or debug=step through the generated parser source code. Two things jump out from your OP:
|
(See the jison-gho example jison files mentioned above for a working sample grammar which should accept your test input ("Teststring")) |
Hi,
i uses the Custom Scanner "AlphabetScanner" from the documentation.
But i always get "Error: Parse error on line NaN: Unexpected 'EOF'"!
The text was updated successfully, but these errors were encountered: