-
Is there a possibility to create a rule that passes if amount of certain characters exist in the input in the same number of times? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
It probably depends on what you mean by "simple" and it is not fully clear to me, what you consider correct input. Is struct element : identifier {}; // or whatever else you need/want
struct part : seq< one<'['>, list< pad< element, space >, one<']'> >, opt<star<space>, part> > {}; You can then use the |
Beta Was this translation helpful? Give feedback.
Ok, I will close it, as the question is answered.