tribble.io
Interface ParserWithParseTreeI
- All Superinterfaces:
- ParserI
public interface ParserWithParseTreeI
- extends ParserI
Generic parser interface.
This interface is used to implement any kind of parser which reads tokens
from an input source stream (implementing the LexerI
interface) and
produces a syntax parse tree (implementing the ParseTreeI
interface).
- Since:
- 2001-05-12
- Version:
- $Revision: 1.1 $ $Date: 2001/05/12 20:34:17 $
- Author:
- David R. Tribble,
david@tribble.com
Copyright
©2001-2002 by David R. Tribble, all rights reserved.
Permission is granted to freely use and distribute this source code
provided that the original copyright and authorship notices remain
intact.
- See Also:
ParserI
,
ParseTreeI
Field Summary |
static java.lang.String |
REV
Revision information. |
Method Summary |
ParseTreeI |
getParseTree()
Retrieves the parse tree that resulted from a successful parsing of the
input token stream. |
REV
static final java.lang.String REV
- Revision information.
- See Also:
- Constant Field Values
getParseTree
ParseTreeI getParseTree()
- Retrieves the parse tree that resulted from a successful parsing of the
input token stream.
- Returns:
- The parse tree resulting from the parsing of the input token stream, or
null if there is no tree or an error occurred during parsing.
- Since:
- 1.1, 2001-05-12