ruby has a parse.y yacc grammar source file (linked to from the post I linked), and yes it can be parsed separately from being executed.
However, IIRC, no one has been able to re-implement parse.y; jruby and the other ruby re-implementations copied it and made what adaptations were necessary.
However, IIRC, no one has been able to re-implement parse.y; jruby and the other ruby re-implementations copied it and made what adaptations were necessary.