|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectminijava.parser.MJParser
public class MJParser
Field Summary | |
---|---|
Token |
jj_nt
Next token. |
Token |
token
Current token. |
MJParserTokenManager |
token_source
Generated Token Manager. |
Fields inherited from interface minijava.parser.MJParserConstants |
---|
AND, ASSIGN, BOOLEAN, CLASS, DEFAULT, DIGIT, DOT, ELSE, EOF, EXTENDS, FALSE, FORMAL_COMMENT, IDENTIFIER, IF, INTEGER, INTEGER_LITERAL, INTERFACE, LBRACE, LENGTH, LETTER, LPAREN, LSQPAREN, LT, MAIN, MINUS, MULTI_LINE_COMMENT, NEW, NOT, PLUS, PRINT, PUBLIC, RBRACE, RETURN, RPAREN, RSQPAREN, SEMICOLON, SINGLE_LINE_COMMENT, STATIC, STRING, THIS, tokenImage, TRUE, VOID, WHILE |
Constructor Summary | |
---|---|
MJParser(java.io.InputStream stream)
Constructor with InputStream. |
|
MJParser(java.io.InputStream stream,
java.lang.String encoding)
Constructor with InputStream and supplied encoding |
|
MJParser(MJParserTokenManager tm)
Constructor with generated Token Manager. |
|
MJParser(java.io.Reader stream)
Constructor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public MJParserTokenManager token_source
public Token token
public Token jj_nt
Constructor Detail |
---|
public MJParser(java.io.InputStream stream)
public MJParser(java.io.InputStream stream, java.lang.String encoding)
public MJParser(java.io.Reader stream)
public MJParser(MJParserTokenManager tm)
Method Detail |
---|
public final Goal Goal() throws ParseException
ParseException
public final MainClass MainClass() throws ParseException
ParseException
public final TypeDeclaration TypeDeclaration() throws ParseException
ParseException
public final ClassDeclaration ClassDeclaration() throws ParseException
ParseException
public final ClassExtendsDeclaration ClassExtendsDeclaration() throws ParseException
ParseException
public final VarDeclaration VarDeclaration() throws ParseException
ParseException
public final MethodDeclaration MethodDeclaration() throws ParseException
ParseException
public final FormalParameterList FormalParameterList() throws ParseException
ParseException
public final FormalParameter FormalParameter() throws ParseException
ParseException
public final FormalParameterRest FormalParameterRest() throws ParseException
ParseException
public final Type Type() throws ParseException
ParseException
public final ArrayType ArrayType() throws ParseException
ParseException
public final BooleanType BooleanType() throws ParseException
ParseException
public final IntegerType IntegerType() throws ParseException
ParseException
public final Statement Statement() throws ParseException
ParseException
public final Block Block() throws ParseException
ParseException
public final AssignmentStatement AssignmentStatement() throws ParseException
ParseException
public final ArrayAssignmentStatement ArrayAssignmentStatement() throws ParseException
ParseException
public final IfStatement IfStatement() throws ParseException
ParseException
public final WhileStatement WhileStatement() throws ParseException
ParseException
public final PrintStatement PrintStatement() throws ParseException
ParseException
public final Expression Expression() throws ParseException
ParseException
public final AndExpression AndExpression() throws ParseException
ParseException
public final CompareExpression CompareExpression() throws ParseException
ParseException
public final PlusExpression PlusExpression() throws ParseException
ParseException
public final MinusExpression MinusExpression() throws ParseException
ParseException
public final TimesExpression TimesExpression() throws ParseException
ParseException
public final ArrayLookup ArrayLookup() throws ParseException
ParseException
public final ArrayLength ArrayLength() throws ParseException
ParseException
public final MessageSend MessageSend() throws ParseException
ParseException
public final ExpressionList ExpressionList() throws ParseException
ParseException
public final ExpressionRest ExpressionRest() throws ParseException
ParseException
public final PrimaryExpression PrimaryExpression() throws ParseException
ParseException
public final IntegerLiteral IntegerLiteral() throws ParseException
ParseException
public final TrueLiteral TrueLiteral() throws ParseException
ParseException
public final FalseLiteral FalseLiteral() throws ParseException
ParseException
public final Identifier Identifier() throws ParseException
ParseException
public final ThisExpression ThisExpression() throws ParseException
ParseException
public final ArrayAllocationExpression ArrayAllocationExpression() throws ParseException
ParseException
public final AllocationExpression AllocationExpression() throws ParseException
ParseException
public final NotExpression NotExpression() throws ParseException
ParseException
public final BracketExpression BracketExpression() 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(MJParserTokenManager 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 |