pest
pest copied to clipboard
The Elegant Parser
My current understanding of best practice is different from what we're currently doing here, though. *Probably in a follow-up*, it would be better practice to have - check - +pin-nightly...
I wrote a tweet parser with Pest here: https://github.com/sayrer/twitter-text/blob/master/parser/src/twitter_text.pest It was a good experience, but two small things would have helped a lot. 1) Support for a parse() method that...
TL;DR: could the code generator implement precedence climbing automatically as an optimization ? Here is the context for my question: I'm working with a fairly complex language grammar generated from...
Found while fuzzing [Tera v1](https://github.com/Keats/tera/tree/v1). The following expression is very slow: https://github.com/Keats/tera/blob/v1/src/tera.rs#L1028 and adding a level of recursion (eg `_(p=__(p=[_(p=__(p=[_(p=[_(p=[_1(p=[_(p=[_1`) will timeout As far as I can see, the issue...
I have written following functions to help with jumping to interesting part in the AST. Are they useful enough to have something like this in the project, or are there...
Due to https://github.com/rust-lang/cargo/issues/5730, pest cannot be used in any context (build or proc macro) of a no_std crate if any of its dependencies have an std feature enabled.
I tried to implement scheme "#;" comments (described at https://srfi.schemers.org/srfi-62/srfi-62.html) with the following line in the .pest file: `NODE_COMMENT = _{ "#;" ~ Node }` `Node` is not silent itself....
Given the following grammar: ``` a = { "a" ~ b+ | a } b = { "b" } root = { SOI ~ a* ~ EOI } ``` Then,...
## Problem The PrecClimber handles precedence between infix operators, like `a + b * c`, but doesn't handle precedence between prefix or postfix operators, like `-a.b + c`. ## Expectation...
I played with the online editor and wasn't very happy with the error messages. It seems to report only the name of the root rule: `expected bar`, while I would...