[antlr-interest] StringTemplate Expr example, Test.java fails to compile

Ted Villalba tedv at esrconsulting.com
Sun May 20 15:38:26 PDT 2007


Working my way through the book, I'm trying to compile the ByteCode
Generator example given in Chapter 9 - Generating Structured Text with
Templates and Grammars. 
The example uses a version of the Expr grammar. 
I receive an error when I try to compile the test rig.
Has anyone else encountered this compilation err, and if so, what did you do
to address it?

Test.java:43: incompatible types
found   : java.lang.Object
required: org.antlr.stringtemplate.StringTemplate
        StringTemplate output = r2.getTemplate();


Thank you,
Ted





More information about the antlr-interest mailing list