pest
pest copied to clipboard
The Elegant Parser
It recently hit me that Pest's `QueueableToken` list is roughly isomorphic to the flat tree that [Rowan](https://github.com/rust-analyzer/rowan) uses. That means we can, with no change to the internal representation, provide...
Currently we need to write separate code to convert pest parsed representation to our own AST representation, as shown in JSON example. The drawback of that approach is that you...
# Summary Make white-space handling less confusing / more consistent with the introduction of an "adjacent selector": `,` # Motivation * The rules `soi`, `eoi`, `white-space` & `comment` look like...
## Motivation [One of the advertised features of LALRPOP](http://lalrpop.github.io/lalrpop/tutorial/007_macros.html), macros/templates/generics are a useful tool for factoring out common parts of your grammar. The common example is `CommaSeparated` to represent `production...
Would be nice to be able to parse streams like stdin and network sockets. Can only find file and string at the moment https://docs.rs/pest/1.0.0-beta.9/pest/inputs/trait.Input.html#implementors
I have a few grammars for related formats / languages that share some common rules. Is there a way to readily share rules between separate grammar files? It wouldn't make...
# Summary This RFC hopes to address the concerns in #197, #261, #271, and #329 by laying the foundation of pest's evolution and transition. # Motivation While pest grammars offer...
I searched for a parser generator library that can parse my pest grammar file with few modifications and output C++{11,17} code. Unfortunately I did not find anything. If pest had...
This can be an interesting idea to keep in mind for the future. I have already experimented with single-consumer-single-producer queues in order to have a token-producing and a token-consuming queue,...
This is an initial draft implementation for modules, that I picked up about a week ago. Hopefully, this will lead to use statements and eventually, a standard library. ## Syntax...