Replies: 4 comments 1 reply
-
Could you specify what do you mean by the empty string? An empty string literal like |
Beta Was this translation helpful? Give feedback.
0 replies
This comment was marked as spam.
This comment was marked as spam.
-
@ahlinc No, the Ada grammar has rules like |
Beta Was this translation helpful? Give feedback.
0 replies
-
why not just make it repeat1 and wherever it's used in another rule, marked as optional? |
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
-
I'm writing an Ada compiler and there are a few rules that match the empty string. What's a good workaround for this, given tree-sitter doesn't support it unless it's the start rule? (I could just directly inline the rule, but that doesn't seem like the most efficient solution.)
Beta Was this translation helpful? Give feedback.
All reactions