You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As in regex : e {start,end}. Of course, syntax can be different.
Specifically, I want to choose the rules based on the count of next element. For now, I hardcode the repeatition and use alternative expression. But that seems suboptimal?
The text was updated successfully, but these errors were encountered:
Sorry, I didn't know there was already a discussion about this [1]. I see you have mentioned to usek semantic action. I personally think having a repeatition range operator inside grammar is better. Using semantic actions for this feel a bit "hacky" to me. For now, I am okay using semantic action.
When using AST transformer for cases like this, can I use functions/conditions to change the node type?
As in regex :
e {start,end}
. Of course, syntax can be different.Specifically, I want to choose the rules based on the count of next element. For now, I hardcode the repeatition and use alternative expression. But that seems suboptimal?
The text was updated successfully, but these errors were encountered: