[Question] how to parse simple Ident containing "-" #287
masahiro331
started this conversation in
General
Replies: 2 comments 7 replies
-
I've converted it to a discussion.
This lexer is the issue, it will not match an identifier with embedded hyphens. You want something like:
|
Beta Was this translation helpful? Give feedback.
6 replies
-
The key with the lexer is, ideally, don't have overlapping rules. So if your identifiers can only start with letters, bake that into the regex. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Thank you for your excellent OSS.
I have a question, sorry for raising it as an Issue.
I would like to parse the following data.
I understand that I can define my own Lexer and parse it, but the following code does not work.
Beta Was this translation helpful? Give feedback.
All reactions