The Ruby Grammar Project is an attempt to develop a specification and ANTLR reference implementation of Ruby's existing grammar.