Selecting nom Parsers Dynamically
May 2024
That's probably not the best title. What I'm looking to do is have couple name parsers that I can send a set of values to that will be used as part of the match.
This is very much a work in progress trying to figure this out. This does what I want without ErrorTree next step is to try to add that in
```cargo
nom = "7.1.3"
nom-supreme = "0.8.0"
```
use alt;
use ErrorTree;
use ParserExt;
use IResult;
use Parser;
use tag;
use take_until;
use Error;
use ErrorKind;
use Err;
Output:
[/Users/alan/.cargo/target/55/19854259915251/_active_nvim_run:22:3] results = Ok(
(
" quick brown fox",
"list",
),
)
```cargo
nom = "7.1.3"
nom-supreme = "0.8.0"
```
use alt;
use ErrorTree;
use ParserExt;
use IResult;
use Parser;
use tag;
use take_until;
use Error;
use ErrorKind;
use Err;
Output:
[/Users/alan/.cargo/target/55/19854259915251/_active_nvim_run:22:3] results = Ok(
(
" quick brown fox",
"list",
),
)
end of line