public final class Parser extends Object
Constructor and Description |
---|
Parser(Lexer lexer)
Creates a parser which will generate a parse tree from a series of tokens.
|
Modifier and Type | Method and Description |
---|---|
ParseTreeNode |
getParseTree()
Generates the parse tree for the tokens provided by the Lexer passed in
the constructor.
|
public Parser(Lexer lexer) throws InvalidCharException
lexer
- Lexer instance.InvalidCharException
- thrown by primeLexer.OQLSyntaxException
- thrown by primeLexer.public ParseTreeNode getParseTree() throws InvalidCharException, OQLSyntaxException
InvalidCharException
- thrown by match.OQLSyntaxException
- thrown by match.Copyright © 2013. All rights reserved.