@rustlang Hello! Where can I see the complete BNF grammar of Rust? I'm writing a useful procedural macro and I need to know how to parse the Rust code.
-
-
Replying to @kalivitaly
You might like the syn crate, if you’re not aware of it, then you don’t need to parse things yourself
1 reply 0 retweets 0 likes -
Replying to @rustlang
Oh, it would be very well. Thanks a lot. At now I'm using for parsing of Rust code ugly mix pattern-matching and ingenious algorithms )
1 reply 0 retweets 1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
