Add toggles to rules #886
NyalephTheCat
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
So the idea is that a parametrised rule:
would expand to:
Is that correct? It looks cool. You can perhaps post a thread in #885 for more visibility? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When reading the ecma script specs (https://tc39.es/ecma262/multipage/grammar-summary.html#sec-grammar-summary), you'll find rules defined like this:
Basicly it would be good to be able to write rules in a similar way, where it would effectively create multiples rules, like:
You can read about the ecma script notational conventions for this here: https://tc39.es/ecma262/multipage/notational-conventions.html#sec-grammatical-parameters
Beta Was this translation helpful? Give feedback.
All reactions