pest
pest copied to clipboard
The Elegant Parser
Hi, I am writing some unit tests for a function that takes `Pair
For example, a grammar for [Conway polyhedron notation](https://en.wikipedia.org/wiki/Conway_polyhedron_notation) requires reversing the order of symbols at the top level of the resulting token tree. In this grammar the string [`mt3nD`](https://levskaya.github.io/polyhedronisme/?recipe=mt3nD) will...
Hi there, I thought I'd mention an issue I had using pest `fails_with` with other libraries that derive functions with the same signature. This is following a discussion on another...
### TL;DR Domain-aware input generator helps fuzzing tests for programs using uses `.pest` files. Same idea with [Testing Random, Valid SQL in CockroachDB](https://www.cockroachlabs.com/blog/testing-random-valid-sql-in-cockroachdb/) ### Motivation I'm developing a RDBMS whose...
Right now, `PrecClimber` can only determine operator precedence based on `Rule` enums. This partly defeats the point of `PrecClimber`, because ideally adding an operator shouldn't require changing the grammar, but...
Consider the following grammar: ``` integer = { ASCII_DIGIT+ } d = { "d" } WHITESPACE = _{ " " } diceroll = { integer ~ d ~ integer }...
Hello, [The book](https://pest.rs/book/grammars/syntax.html) says that `@{...}` creates an atomic rule and `_{...}` creates a silent rule. But (afaik) there is currently no way to create a rule that is both...
It would be nice if `PrecClimber`, or a variant of it, could have support for prefix/suffix operators. Currently it requires copying over the code and implementing it yourself, which while...
Here is the minimal code that produces the error for me: `toy_language/mod.rs`: ```rust //use pest::Parser; // Implicitly generates a `Rule` enum #[derive(Parser)] #[grammar = "toy_language/calculator.pest"] struct CalculatorParser; #[cfg(test)] mod tests...
Hello, in the process of upgrading our CI to use the latest Rust toolchain (1.55.0), we've encountered an error originating from this crate. It seems that the lint `forbidden-lint-groups` has...