You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What's the best way to "ignore" some characters everywhere (whitespacing)?
For example:
int abc = 123;
Would be equivalent to
int abc
= 123;
For now the only way I see would be to use the _ rules, but I'm wondering if there is an easier way to avoid putting "_" all over the place for grammars where whitespaces are everywhere.
----> Configure that Space, \n and Tab should be considered as whitespace
rule some_rule = "abc" "efg"
|||
PEG would use the default white space for this
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
What's the best way to "ignore" some characters everywhere (whitespacing)?
For example:
For now the only way I see would be to use the _ rules, but I'm wondering if there is an easier way to avoid putting "_" all over the place for grammars where whitespaces are everywhere.
So for instead of something like this:
The process would be:
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions