Replies: 4 comments
-
I appreciate that you have read the docs 🙂 To answer your question, your lexer must produce a token for every value captured by your grammar. In this case your lexer does not produce "[" or "]". |
Beta Was this translation helpful? Give feedback.
-
@alecthomas thank you! PS: Great Project! |
Beta Was this translation helpful? Give feedback.
-
I've been working on this a bit. I have codegen for lexing included already, and the start of parser codegen in a branch. |
Beta Was this translation helpful? Give feedback.
-
I appreciate that you have read the docs slightly_smiling_face
I ran into the exact same issue trying to parse a C header file. Thanks for the pointer! |
Beta Was this translation helpful? Give feedback.
-
Here's is my tiny-testing code
main.go
main_test.go
What I get:
What is wrong here?
Beta Was this translation helpful? Give feedback.
All reactions