|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object piglet.parser.PigletParser
public class PigletParser
Field Summary | |
---|---|
Token |
jj_nt
Next token. |
Token |
token
Current token. |
PigletParserTokenManager |
token_source
Generated Token Manager. |
Fields inherited from interface piglet.parser.PigletParserConstants |
---|
AND, ARG, BEGIN, CALL, CJUMP, CODE, DEFAULT, DIGIT, DOT, END, EOF, EQ, ERROR, FORMAL_COMMENT, GE, GT, HALLOCATE, HLOAD, HSTORE, IDENTIFIER, INTEGER_LITERAL, JUMP, LBRACE, LE, LETTER, LPAREN, LSQPAREN, LT, MAIN, MEM, MINUS, MOVE, MULTI_LINE_COMMENT, NE, NOOP, NOT, OR, PLUS, PRINT, RBRACE, RETURN, RPAREN, RSQPAREN, SINGLE_LINE_COMMENT, TEMP, TIMES, tokenImage |
Constructor Summary | |
---|---|
PigletParser(java.io.InputStream stream)
Constructor with InputStream. |
|
PigletParser(java.io.InputStream stream,
java.lang.String encoding)
Constructor with InputStream and supplied encoding |
|
PigletParser(PigletParserTokenManager tm)
Constructor with generated Token Manager. |
|
PigletParser(java.io.Reader stream)
Constructor. |
Method Summary | |
---|---|
BinOp |
BinOp()
|
Call |
Call()
|
CJumpStmt |
CJumpStmt()
|
void |
disable_tracing()
Disable tracing. |
void |
enable_tracing()
Enable tracing. |
ErrorStmt |
ErrorStmt()
|
Exp |
Exp()
|
ParseException |
generateParseException()
Generate ParseException. |
Token |
getNextToken()
Get the next Token. |
Token |
getToken(int index)
Get the specific Token. |
Goal |
Goal()
|
HAllocate |
HAllocate()
|
HLoadStmt |
HLoadStmt()
|
HStoreStmt |
HStoreStmt()
|
IntegerLiteral |
IntegerLiteral()
|
JumpStmt |
JumpStmt()
|
Label |
Label()
|
MoveStmt |
MoveStmt()
|
NoOpStmt |
NoOpStmt()
|
Operator |
Operator()
|
PrintStmt |
PrintStmt()
|
Procedure |
Procedure()
|
void |
ReInit(java.io.InputStream stream)
Reinitialise. |
void |
ReInit(java.io.InputStream stream,
java.lang.String encoding)
Reinitialise. |
void |
ReInit(PigletParserTokenManager tm)
Reinitialise. |
void |
ReInit(java.io.Reader stream)
Reinitialise. |
Stmt |
Stmt()
|
StmtExp |
StmtExp()
|
StmtList |
StmtList()
|
Temp |
Temp()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public PigletParserTokenManager token_source
public Token token
public Token jj_nt
Constructor Detail |
---|
public PigletParser(java.io.InputStream stream)
public PigletParser(java.io.InputStream stream, java.lang.String encoding)
public PigletParser(java.io.Reader stream)
public PigletParser(PigletParserTokenManager tm)
Method Detail |
---|
public final Goal Goal() throws ParseException
ParseException
public final StmtList StmtList() throws ParseException
ParseException
public final Procedure Procedure() throws ParseException
ParseException
public final Stmt Stmt() throws ParseException
ParseException
public final NoOpStmt NoOpStmt() throws ParseException
ParseException
public final ErrorStmt ErrorStmt() throws ParseException
ParseException
public final CJumpStmt CJumpStmt() throws ParseException
ParseException
public final JumpStmt JumpStmt() throws ParseException
ParseException
public final HStoreStmt HStoreStmt() throws ParseException
ParseException
public final HLoadStmt HLoadStmt() throws ParseException
ParseException
public final MoveStmt MoveStmt() throws ParseException
ParseException
public final PrintStmt PrintStmt() throws ParseException
ParseException
public final Exp Exp() throws ParseException
ParseException
public final StmtExp StmtExp() throws ParseException
ParseException
public final Call Call() throws ParseException
ParseException
public final HAllocate HAllocate() throws ParseException
ParseException
public final BinOp BinOp() throws ParseException
ParseException
public final Operator Operator() throws ParseException
ParseException
public final Temp Temp() throws ParseException
ParseException
public final IntegerLiteral IntegerLiteral() throws ParseException
ParseException
public final Label Label() throws ParseException
ParseException
public void ReInit(java.io.InputStream stream)
public void ReInit(java.io.InputStream stream, java.lang.String encoding)
public void ReInit(java.io.Reader stream)
public void ReInit(PigletParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |