|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object spiglet.parser.SpigletParser
public class SpigletParser
Field Summary | |
---|---|
Token |
jj_nt
Next token. |
Token |
token
Current token. |
SpigletParserTokenManager |
token_source
Generated Token Manager. |
Fields inherited from interface spiglet.parser.SpigletParserConstants |
---|
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 | |
---|---|
SpigletParser(java.io.InputStream stream)
Constructor with InputStream. |
|
SpigletParser(java.io.InputStream stream,
java.lang.String encoding)
Constructor with InputStream and supplied encoding |
|
SpigletParser(java.io.Reader stream)
Constructor. |
|
SpigletParser(SpigletParserTokenManager tm)
Constructor with generated Token Manager. |
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(java.io.Reader stream)
Reinitialise. |
void |
ReInit(SpigletParserTokenManager tm)
Reinitialise. |
SimpleExp |
SimpleExp()
|
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 SpigletParserTokenManager token_source
public Token token
public Token jj_nt
Constructor Detail |
---|
public SpigletParser(java.io.InputStream stream)
public SpigletParser(java.io.InputStream stream, java.lang.String encoding)
public SpigletParser(java.io.Reader stream)
public SpigletParser(SpigletParserTokenManager 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 SimpleExp SimpleExp() 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(SpigletParserTokenManager 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 |