what's the current parsing library that people use for lexical analysis of simple text input languages? something clean, easily used in a recursive descent parser is good.
thanks!
what's the current parsing library that people use for lexical analysis of simple text input languages? something clean, easily used in a recursive descent parser is good.
thanks!
You may want to check out:
I have made recently the gramatica
crate: https://crates.io/crates/gramatica
If you need help or some specific feature, you are free to ask.
In the examples you may find a calculator, a parser of JSON and of simple XML. It compiles itself, so it has a decent amount of features, although it is still missing others.
Are you referring to my gramatica
crate?
The parser of my library has signature
pub fn parse(source:&str, initial:Option<usize>) -> Result<T,ParsingError>
For the examples, I just show a main function that panics on errors. Should I elaborate more the examples to be able to recover themselves?
thanks --- larlrpop looks like more than what i needed, but seems relatively clean so will give it a shot.
I'm using pest
crate, too. Very happy with it. I like it for a couple of reasons:
It's documentation could use some attention, however. It's OK, but not great.