Closed CyborTronik closed 5 months ago
Without running your code I suspect the problem is with Separated(SkipWhitespaces)
. After reading label
, the SkipWhitespaces
parser succeeds (without consuming any input since there’s no whitespace). This tells the Separated
parser to continue its loop; it tries to parse a term and fails because there isn’t one.
I recommend consuming the whitespace at the token level, but you might be able to kludge it with SeparatedAndTerminated
By having next definition:
When I run:
I get the following error, and is not clear why and what to do next:
Wonder if I can have some suggestions on how this can be understood/debug in order to make it work?