Skip to content

Q: Failing to detect match #285

Answered by alecthomas
Jmoore1127 asked this question in Q&A
Discussion options

You must be logged in to vote

Assuming you're using the default lexer, this is almost certainly because that lexer does not return --> as a single token, it will return ['-', '-', '>']. You'll either need a custom lexer, or to accept each token individually in your grammar.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by Jmoore1127
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
Converted from issue

This discussion was converted from issue #284 on November 18, 2022 21:43.