[antlr-interest] ANTLR backend for ruby?

Rodrigo B. de Oliveira rodrigobamboo at hotmail.com
Tue Jul 29 05:45:06 PDT 2003

Thanks, Ric! I'll give it a try and let you know how it goes.

> Important files:
> antlr/*CodeGenerator.java   -> actual codegenerator
> antlr/actions/*/action.g    -> does the translations of the $setXXX and
>                                #( [..], .. , .. ) in the actions to target
>                                code.
> antlr/DefineGrammarSymbols.java  -> part of option handling
> antlr/*BlockFinishingInfo.java  -> don't recall exact function offhand
> antlr/*CharFormatter.java       -> does various formatting of values to
>                                    target language
> About all the rest you don't have to touch except for the support library.
> I don't know ruby but it's probably pretty doable to write a new backend.
> To start with I'd grab the generated code for a few trivial parsers and
> to translate it manually into ruby and then try to adapt the one of the
> codegenerators to it. Make sure to also include a grammar including
> 'guessing mode' eg. one with a syntactic predicate.
> Next release might still be a ways off.
> HTH,
> Ric


Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 

More information about the antlr-interest mailing list