Recursive type system fails unexpectedly #903
-
I've written the parser for the type definitions in my language like so:
However, trying to parse a simple closure type such as this:
Why is this happening? I would imagine that it should hit the |
Beta Was this translation helpful? Give feedback.
Answered by
TheOnlyTails
Jul 31, 2023
Replies: 1 comment
-
Update: I was a bit silly, I applied the 0-or-more operator to the first |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
TheOnlyTails
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Update: I was a bit silly, I applied the 0-or-more operator to the first
type_def
instead of thetype_def
and comma, making the first comma mandatory!