[antlr-interest] problem with class CommonTree

Oti ohumbel at gmail.com
Tue Dec 4 13:36:31 PST 2007


Ankit,

IMHO it should read toStringTree() (vs. toStringtree()).

Oti.

On Dec 3, 2007 10:12 AM,  <ankit.mehrotra at tcs.com> wrote:
>
> Hi all,
>
> I have started antlr a couple of hours back. I was working through the
> example of AST walk through, where on compiling the files I am getting an
> error,
>
> ASTExprParser.java:82: cannot find symbol
> symbol  : method toStringtree()
> location: class org.antlr.runtime.tree.CommonTree
>
> System.out.println(((CommonTree)stat1.tree).toStringtree());
>
>                                        ^
> 1 error
>
>
> All I have are the jar files for the
> libraries(antlr-3.0.1,antlr-2.7.7,antlr-runtime-3.0.1 and
> stringTemplate-3.0b1).
> How should I go about removing this error.
>
> Thanks
>  Ankit=====-----=====-----=====
> Notice: The information contained in this e-mail
> message and/or attachments to it may contain
> confidential or privileged information. If you are
> not the intended recipient, any dissemination, use,
> review, distribution, printing or copying of the
> information contained in this e-mail message
> and/or attachments to it are strictly prohibited. If
> you have received this communication in error,
> please notify us by reply e-mail or telephone and
> immediately and permanently delete the message
> and any attachments. Thank you
>
>
>
>


More information about the antlr-interest mailing list