plex icon indicating copy to clipboard operation
plex copied to clipboard

a parser and lexer generator as a Rust procedural macro

Results 18 plex issues
Sort by recently updated
recently updated
newest added

Hey, i wanted to ask if it's possible to add a new optional Program to the parser so you can for example in php or html open a new context.

I am working on a language using Plex, and would like to remove parentheses from function calls. From what I can tell according to [this question](https://stackoverflow.com/questions/33444361/resolve-grammar-function-call-without-parentheses-vs-an-expression), doing this would require...

Would it be possible to add support for an optional token in the parser? I'm trying to implement a parser that allows me to parse a language with an optional...

In some languages identifiers and keywords are case-insensitive. Some examples are Ada, VHDL and SQL. Also literals in other languages like C and C++ can be in parts case-insensitive. For...

Like this for example ```rs plex::parser! { fn parse_(Token, Span); // combine two spans (a, b) { Span { lo: a.lo, hi: b.hi, } } program: Program { statements[s] =>...

I have a set of rules under one production in my CFG that both have basically duplicated blocks of code, and could be handled in one. Is there a way...

A certain production rule in my parser definition causes the whole parser definition to be marked under the "function 'reduce_11' is never used" rustc warning. Build code from this point...

With this small change, it is possible to learn about plex by reading its in `cargo doc` or on .