Can you get the separator when using the Separated parser? #79
deanebarker
started this conversation in
General
Replies: 2 comments
-
You can reconstruct this parser by combining explicit ones, like THING.And(ZeorOrMany(SEP.And(THING))). Which implies more complexity to build the AST, but not much more than if the separator was available in the |
Beta Was this translation helpful? Give feedback.
0 replies
-
I was thinking about writing a parser for Not sure how generically applicable this is. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If I do this...
...how can I get ahold of the
delimterParser
? It can match on one of three things, and I need to use that thing in theitemParser
. Does it always skip this and throw it away?I don't think this is possible, so I've actually built the delimeter into the item's parser, but I thought I'd check.
Beta Was this translation helpful? Give feedback.
All reactions