-
Notifications
You must be signed in to change notification settings - Fork 210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Larger Max numerical suffix/idx for the DSL Methods #802
Comments
Do you have a real example where you needed more than 9 suffix? The suffixes are part of the "identity" of the specific DSL rule,
|
More than 9 suffix is normal to mysql grammar. Example, the tableOption rule, option suffix is more than 9. tableOption: |
Thanks for the example. Personally I would not translate such a rule "directly" without changes.
Either of the options would avoid the need for really large suffixes. |
Closing this, please re-open if needed. |
Re-opening as this is now possible. |
09-2019 Update
This is now possible as Chevrotain no longer depends on Function.prototype.toString
The following DSL methods have been added in version 6.4.0 which accept an idx argument.
There are no respective _sep variations as the _SEP dsl methods are likely to be re-implemented
as macros in the future rather than a base "building block".
The maximum valid idx is 255, this is validated during grammar recording, an invalid value
will cause an error to be thrown during parser initialization.
Original Issue
What is max numerical suffix for the DSL Rules?Is 9?
What can I do if numerical suffix more than 9?
The text was updated successfully, but these errors were encountered: