Is there any way to determine, at the level of grammar, that the order of expressions does not matter? #842
Unanswered
kafkiansky
asked this question in
Q&A
Replies: 1 comment
-
This would be possible with a From my understanding So it probably would make sense to invent a A solution with this could look like this: blocks = {
"a"
| "b"
| "c"
| "d"
}
main = {
PUSH(blocks)
~ (
!PEEK_ANY
~ PUSH(blocks)
){3}
} After all I think the workaround is the only solution that works for this case now. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
A simple case: I have a set of blocks, the order of which is not important. In example
I want the user to be able to write both
a b
andb a
, with botha
andb
being required, but their order is not important. The workaround is:But I have too many blocks for which describing such a thing would be difficult.
Beta Was this translation helpful? Give feedback.
All reactions