| java.lang.Object com.go.tea.compiler.Parser
Parser | public class Parser (Code) | | A Parser creates the parse tree for a template by reading tokens emitted by
a
Scanner . The parse tree represents the entire template as a
data structure composed of specialized nodes. Add an
ErrorListener to capture any syntax errors detected by the Parser.
author: Brian S O'Neill version: 64 , 5/31/01 |
getErrorCount | public int getErrorCount()(Code) | | |
parse | public Template parse() throws IOException(Code) | | Returns a parse tree by its root node. The parse tree is generated
from tokens read from the scanner. Any errors encountered while
parsing are delivered by dispatching an event. Add an error listener
in order to capture parse errors.
Non-null template node, even if there were errors during parsing. See Also: Parser.addErrorListener |
|
|