[antlr-interest] Re: Unable to run Xref tool with antlr2.7.2

Jim O'Connor Jim.OConnor at microfocus.com
Mon Mar 1 19:43:59 PST 2004


Hi Salgavkar,
  I will post instructions for the cross referencer in the morning.  If you
are still working on it, tonight, look at the Main.java and MyOutput.java
for input and output criteria.

  Terrence is correct.
Jim


-----Original Message-----
From: Terence Parr
To: antlr-interest at yahoogroups.com
Sent: 3/1/04 9:43 PM
Subject: Re: [antlr-interest] Re: Unable to run Xref tool with antlr2.7.2

Hi.

Assuming that java.g and java.tree.g are included, do

$ java antlr.Tool java.g
$ java antlr.Tool java.tree.g

and then the other grammar file (which derive from these).  Also (i 
know it's obvious) make sure "." dot is in your classpath ;)

Best regards,
Terence

On Mar 1, 2004, at 6:36 PM, salgavkar wrote:

> --- In antlr-interest at yahoogroups.com, "lgcraymer" <lgc at m...> wrote:
>> The version of Xref that you are using is an antique.  Try
> downloading the one at http://www.antlr.org/share/list (click on
> the "Java
>> Cross Referencing Tool" item).  Any version that is dependent on
> pre-2.6 ANTLR is guaranteed to have an ancient java grammar,
>> anyway, and probably would not work on the code that you are
> interested in.
>>
>> --Loring
>
> Thanks. Did try Alpha
> (http://www.antlr.org/share/1073500619580/JavaCrossRef.zip), still
> no joy.
>
> I am running antlr 2.7.2 on j2sdk1.4.1_03. get following errors:
>
> F:\faltu\JavaCrossRef\antlr.xref\src\org\antlr\java\crossref>javac
> *.java
> Main.java:251: cannot resolve symbol
> symbol  : class JavaDefsTreeParser
> location: class org.antlr.java.crossref.Main
>                         JavaDefsTreeParser dparse = new
> JavaDefsTreeParser();
>                         ^
> Main.java:251: cannot resolve symbol
> symbol  : class JavaDefsTreeParser
> location: class org.antlr.java.crossref.Main
>                         JavaDefsTreeParser dparse = new
> JavaDefsTreeParser();
>                                                         ^
> Main.java:265: cannot resolve symbol
> symbol  : class JavaPreRefsTreeParser
> location: class org.antlr.java.crossref.Main
>                         JavaPreRefsTreeParser prparse = new
> JavaPreRefsTreeParse
> r();
>                         ^
> Main.java:265: cannot resolve symbol
> symbol  : class JavaPreRefsTreeParser
> location: class org.antlr.java.crossref.Main
>                         JavaPreRefsTreeParser prparse = new
> JavaPreRefsTreeParse
> r();
>                                                             ^
> Main.java:279: cannot resolve symbol
> symbol  : class JavaRefsTreeParser
> location: class org.antlr.java.crossref.Main
>             JavaRefsTreeParser rparse = new JavaRefsTreeParser();
>             ^
> Main.java:279: cannot resolve symbol
> symbol  : class JavaRefsTreeParser
> location: class org.antlr.java.crossref.Main
>             JavaRefsTreeParser rparse = new JavaRefsTreeParser();
>                                             ^
> 6 errors
>
> Did try the following:
> java antlr.Tool defs.java
> but got
> this error >>>
> F:\faltu\JavaCrossRef\antlr.xref\src>java antlr.Tool
> org\antlr\java\crossref\ref
> s.g
> ANTLR Parser Generator   Version 2.7.2   1989-2003 jGuru.com
> error: grammar JavaTreeParser not defined
>
> Then i manually compiled JavaTreeParser and repeated the previous
> step, still no joy.
>
> What could be the problem.
>
> Salgavkar
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
--
Professor Comp. Sci., University of San Francisco
Creator, ANTLR Parser Generator, http://www.antlr.org
Cofounder, http://www.jguru.com
Cofounder, http://www.knowspam.net enjoy email again!
Cofounder, http://www.peerscope.com pure link sharing





 
Yahoo! Groups Links



 


________________________________________________________________________
This e-mail has been scanned for viruses by MCI's Internet Managed
Scanning Services - powered by MessageLabs. For further information
visit http://www.mci.com
________________________________________________________________________


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/antlr-interest/

<*> To unsubscribe from this group, send an email to:
     antlr-interest-unsubscribe at yahoogroups.com

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



More information about the antlr-interest mailing list