|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ParserFactory
| Method Summary | |
|---|---|
void |
debug_parse()
|
boolean |
errorsDuringParse()
After parsing, the return value of this method will be valid. |
java.lang.String |
getDumpedAST()
Returns the AST from the parse as dumped into a string. |
java.lang.Object |
getResultAST()
|
void |
parse()
After setting the lexer, this parse() is the command to parse the stream coming from the lexer, debug_parse() does so in debug mode. |
void |
semant()
Runs the semantic checker on the AST accessible by getResultAST(). |
void |
setLexer(CoolTokenLexer lexer)
This method is used to specify the input to the parser. |
| Method Detail |
|---|
void setLexer(CoolTokenLexer lexer)
lexer - -- input to parser
void parse()
throws java.lang.Exception
java.lang.Exception - -- if unrecoverable exception occured during parsing.
void debug_parse()
throws java.lang.Exception
java.lang.Exceptionboolean errorsDuringParse()
java.lang.Object getResultAST()
void semant()
throws java.lang.Exception
java.lang.Exception - -- if there are exceptions during semantic checking.java.lang.String getDumpedAST()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||