public interface Parser
Modifier and Type | Method and Description |
---|---|
de.hunsicker.antlr.ASTFactory |
getASTFactory()
Sets the factory used to create the nodes of the parse tree.
|
java.lang.String |
getFilename()
Returns the name of the file.
|
de.hunsicker.antlr.collections.AST |
getParseTree()
Returns the root node of the generated parse tree.
|
java.lang.String[] |
getTokenNames()
Returns the token names of the parser.
|
void |
parse()
Start parsing.
|
void |
reset()
Resets the parser state.
|
void |
setASTFactory(de.hunsicker.antlr.ASTFactory factory)
Sets the factory used to create tree nodes.
|
void |
setFilename(java.lang.String filename)
Sets the filename we parse.
|
void |
setTokenBuffer(de.hunsicker.antlr.TokenBuffer buffer)
Sets the token buffer of the parser.
|
void setASTFactory(de.hunsicker.antlr.ASTFactory factory)
factory
- factory to use.de.hunsicker.antlr.ASTFactory getASTFactory()
void setFilename(java.lang.String filename)
filename
- filename to parse.java.lang.String getFilename()
de.hunsicker.antlr.collections.AST getParseTree()
void setTokenBuffer(de.hunsicker.antlr.TokenBuffer buffer)
buffer
- buffer to use.java.lang.String[] getTokenNames()
void parse() throws de.hunsicker.antlr.RecognitionException, de.hunsicker.antlr.TokenStreamException
de.hunsicker.antlr.RecognitionException
- if a problem with the input occured.de.hunsicker.antlr.TokenStreamException
- if something went wrong while generating the stream
of tokens.void reset()
Submit a bug or feature.
For further information and documentation, visit the official Jalopy website.
This page generated: March 30 2013