Skip to content

How to limit array index and case number to be int terminal in grammar? #1704

Answered by msujew
durianwaffle asked this question in Q&A
Discussion options

You must be logged in to vote

You should just use a single number terminal. You can later perform validations in the appropriate places that the entered number is an integer (and not some real value).

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@durianwaffle
Comment options

@durianwaffle
Comment options

Comment options

You must be logged in to vote
3 replies
@durianwaffle
Comment options

@msujew
Comment options

Answer selected by durianwaffle
@durianwaffle
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants