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
I was planning to write a tool that adds missing rules for string literals as lexer rules, which is required for splitting the grammar. I think I can devise something similar for this transformation. But, I would need to go through the alt and find what is different about it relative to other alts.
@kaby76 Thank you for the prompt response. Your suggestion to use more meaningful names is intriguing. However, "#<rule-name>-<alt-number>" might also suffice.
In my use case, I had to add labels to nearly all rules containing |. The specific name of the label wasn't crucial, but because the parser file was extensive, it became burdensome. That's why I submitted the feature request.
I am wondering if it's possible to have a command that automatically adds labels to the rules. For example:
to
The text was updated successfully, but these errors were encountered: