-
I am trying to write a parser for lisp-like number representations. These are I do not really differentiate between lexer and parser. I directly parse into an AST. What approaches can I take here? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can currently do this with the Alternatively, you can just parse add of the |
Beta Was this translation helpful? Give feedback.
You can currently do this with the
then_with
combinator, but it's something that's likely going to be removed in a future version of the crate in favour of some other mechanism for customising the behaviour of future parsers based on the output of previous ones.Alternatively, you can just parse add of the
#nnRdddd
with all possible digits and usetry_map
to do whatever manual consistency checks you want inline.