[antlr-interest] JavaTreeParser? What does it do?

Terence Parr parrt at jguru.com
Mon Apr 28 13:01:32 PDT 2003


Hi.  Have you checked the faq entry that answers your question?

http://www.jguru.com/faq/view.jsp?EID=818959

It's called: What is a tree parser and why would I want to use one?

<snicker>

Terence

On Monday, April 28, 2003, at 10:17  AM, jw9315 wrote:

> Hi,
> I'm a brand new ANTLR user. I'm using the AST tree it produces to
> create an interpreter for a small subset of the Java programming
> language. I was looking at the Main.java file in the grammar examples
> directory, and one of the last lines says:
> '
> 		JavaTreeParser tparse = new JavaTreeParser();
> 		try
> 			{
> 			tparse.compilationUnit(t);
> 			System.err.println("successful walk of result
> AST for "+f);
> 		}
> 		catch (RecognitionException e) {
> 			System.err.println(e.getMessage());
> 			e.printStackTrace();
> 		}
> ' Could anyone tell me what this block does in the program, what is
> a JavaTreeParser?
> Thanks,
> Jon
>
>
>
>
> Your use of Yahoo! Groups is subject to 
> http://docs.yahoo.com/info/terms/
>
>
>
--
Co-founder, http://www.jguru.com
Creator, ANTLR Parser Generator: http://www.antlr.org
Co-founder, http://www.peerscope.com link sharing, pure-n-simple
Lecturer in Comp. Sci., University of San Francisco


 

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




More information about the antlr-interest mailing list