Replies: 1 comment 3 replies
-
Hey Darren, It's not very pretty, but this can be done using a sequence. E.g.:
etc. I've considered adding first-class support for this, but I haven't yet seen a use case that really warrants it. (Aside: Thanks for the inaugural post in our Github discussions! 🎉) |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Looking for an approach to be able to define length constraints on tokens. As a canonical example, a math language that only allows variables to be a maximum of 4 characters would work.
GOOD:
var + 6 = var2
BAD:
var + 16 = otherVariable
Error: OtherVariable is too long (variables can be at most 4 characters in length)
Beta Was this translation helpful? Give feedback.
All reactions