[antlr-interest] boo code generator

Rodrigo B. de Oliveira rodrigobamboo at gmail.com
Tue May 17 10:49:33 PDT 2005


On 5/17/05, Terence Parr <parrt at cs.usfca.edu> wrote:
> On May 17, 2005, at 6:32 AM, Rodrigo B. de Oliveira wrote:
> > Hey,
>> ...
> > I wouldn't like to keep a private copy of antlr so the question is,
> > would it be possible to get BooCodeGenerator into the standard antlr
> > distribution?
> 
> If you share the runtime, is it literally just the one
> BooCodeGenerator.java file?
> 

Pretty much:

  BooCodeGenerator.java
  BooBlockFinishingInfo.java
  BooCharFormatter.java
  BooNameSpace.java

And changing the line 624 of DefineGrammarSymbols.java to the following:
            if ( !language.equals("Cpp") && !language.equals("CSharp")
&& !language.equals("Boo"))

I also have the calc example in boo. :)

Rodrigo


More information about the antlr-interest mailing list