chumsky icon indicating copy to clipboard operation
chumsky copied to clipboard

Write expressive, high-performance parsers with ease.

Results 199 chumsky issues
Sort by recently updated
recently updated
newest added

Hi, I met a situation where I need to parse the first element by one parser, and the remaining by another parser. I tried to implement a custom parser, but...

For example, I have the following code: ```rs group(( a.recover_with(via_parser(empty())) a.or(b).recover_with(via_parser(empty())) )) ``` I would like to get one error like "expected a or b". There may be a problem...

Make the type of secondary errors vector generic. This will allow you to use `smallvec` or the arena in this location for optimization purposes, as well as use `usize` if...

enhancement
api
error-recovery

Test content: ```rs use chumsky::extra::Err; pub fn parser>> { let b = just("_").then(just("a").labelled("al")).ignored(); let custom = custom(move |input| input.parse(b)); custom.labelled("bl").as_context() } assert_eq!( parser().parse("_c").into_output_errors(), ( None, vec![{ let mut err =...

bug

The current documentation states that the difference between State and Context is that Context can influence the parsing progress of the Parser, while State cannot. However, this is not the...

Issues carried over from #775: > * I have not been able to discover what the "fallback" parameter of skip_until is. What is it used for? Is it equivalent to...

When there's an unknown token, there are two options: to say that something should be there instead (span = `0..1`), or to say that something else was expected (span =...

I'm currently working on a [complex expression parser](https://github.com/Aidan-McNay/scarf/blob/fea1d7d2c6b22396ddeb5eb2b0b6d67caeffa4fc/scarf-parser/src/parser/expressions/expressions.rs#L359), used significantly throughout the grammar. To avoid re-creating the parser each time it's needed (currently imposing a significant performance penalty on my...

I want to parse a tab separated values file, where the number of things in every line after the first is exactly equal (up to some things at the start,...