Following an offhand comment of Patrick's on Friday, I decided to take a look 
and see just how easy it is to formulate an ANTLR grammar. The answer is: very, 
very easy. I wrote up a simple grammar for Rust tokens; it's up at

https://github.com/jbclements/rust-antlr/

The tokens work great, and so does a simple token-tree parser; it can now parse 
large rust files into token trees. I started adding an AST-level parser, but 
it's just got bits & pieces of the grammar, for now.

John

_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to