kevinmehall / rust-peg

Parsing Expression Grammar (PEG) parser generator for Rust
https://crates.io/crates/peg
MIT License
1.46k stars 106 forks source link

Feature Request: ALLCAPS for tokens #331

Open slyons opened 1 year ago

slyons commented 1 year ago

Hello!

I've been playing around with rust-peg and one thing I think would be useful is to allow for rule identifiers written in all caps to be used similarly to _ and __, as in usable without parentheses and all. Maybe even an attribute marker of some kind.

Thanks!