Skip to content

Error accessing lookahead token from token stream! #36

Answered by jsinger67
ryo33 asked this question in Q&A
Discussion options

You must be logged in to vote

Exactly 💯
In your first version there were no terminals assigned to the scanner state ’String’.
The resulting scanner then can't deliver any valid "scannable" tokens.
This should be detected during the analysis phase.
I will add a proper check for this situation.
Thank you for your analysis!

Replies: 8 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jsinger67
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ryo33
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ryo33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants