public final class Parser
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
(package private) Token |
_curToken |
(package private) Lexer |
_lexer |
(package private) Token |
_nextToken |
(package private) ParseTreeNode |
_treeRoot |
| 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.
|
Lexer _lexer
Token _curToken
Token _nextToken
ParseTreeNode _treeRoot
public Parser(Lexer lexer) throws InvalidCharException, OQLSyntaxException
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.Intalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com