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

salgavkar salgavkar at yahoo.com
Tue Mar 2 07:15:58 PST 2004


Hi.

java.tree.g was not available so i copied it from antlr 2.7.2 tests 
folder and that went fine. i also see JavaTreeParser.java

now when i try <<java antlr.Tool defs.java>> i get the following 
error:

F:\faltu\JavaCrossRef\antlr.xref\src\org\antlr\java\crossref>java 
antlr.Tool def
s.g
ANTLR Parser Generator   Version 2.7.2   1989-2003 jGuru.com
error: grammar JavaTreeParser not defined

it gives the same error for prerefs.g, and refs.g

I was wondering if there is a installation manual for Alpha?

Thanks.

salgavkar



--- In antlr-interest at yahoogroups.com, Terence Parr <parrt at c...> 
wrote:
> 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

<*> 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