Closed notramo closed 2 years ago
I would recommend having a look at mecha.asStr
. After the child parser returns a result, asStr
will return the input range that was actually parsed. This slice will point into the input and will not be allocated.
Thank you!
I want to parse a bareword literal:
I tried to use the following code:
The problem is that it's not easy to parse into a single
[]u8
or[]u21
, as the.combine()
output gets parsed into a struct. The first, singleUpperCase
is anu21
, but then the following chars are[]u8
. Is it possible somehow with a clean solution?