To create a scanner-based parser, we need to do several separate steps:
Create the lexer
Wrap the lexer in a ParseResultSequence
Feed the ParseResultSequence into the parser
We would like to wrap this functionality up into a new Compose parser which will take a lexer and parser and return a single parser which does both internally.
To create a scanner-based parser, we need to do several separate steps:
We would like to wrap this functionality up into a new
Compose
parser which will take a lexer and parser and return a single parser which does both internally.