public class MiniJavaParser extends java.lang.Object implements MiniJavaParserConstants
Modifier and Type | Field and Description |
---|---|
static Token |
jj_nt
Next token.
|
static Token |
token
Current token.
|
static MiniJavaParserTokenManager |
token_source
Generated Token Manager.
|
BIN, DEFAULT, DIGIT, EOF, FORMAL_COMMENT, HEX, ID, IN_FORMAL_COMMENT, IN_MULTI_LINE_COMMENT, IN_SINGLE_LINE_COMMENT, INT, LETTER, MULTI_LINE_COMMENT, OCT, SINGLE_LINE_COMMENT, STRING, tokenImage, UNDER
Constructor and Description |
---|
MiniJavaParser(java.io.InputStream stream)
Constructor with InputStream.
|
MiniJavaParser(java.io.InputStream stream,
java.lang.String encoding)
Constructor with InputStream and supplied encoding
|
MiniJavaParser(MiniJavaParserTokenManager tm)
Constructor with generated Token Manager.
|
MiniJavaParser(java.io.Reader stream)
Constructor.
|
public static MiniJavaParserTokenManager token_source
public static Token token
public static Token jj_nt
public MiniJavaParser(java.io.InputStream stream)
public MiniJavaParser(java.io.InputStream stream, java.lang.String encoding)
public MiniJavaParser(java.io.Reader stream)
public MiniJavaParser(MiniJavaParserTokenManager tm)
public static final Program Goal() throws ParseException
ParseException
public static final ClassDecl MainClassDeclaration(java.util.LinkedList<ClassDecl> cl) throws ParseException
ParseException
public static final ClassDecl ClassDeclaration(java.util.LinkedList<ClassDecl> cl) throws ParseException
ParseException
public static final ThreadDecl ThreadDeclaration(java.util.LinkedList<ClassDecl> cl) throws ParseException
ParseException
public static final VarDecl VarDeclaration() throws ParseException
ParseException
public static final MethodDecl MethodDeclaration() throws ParseException
ParseException
public static final VoidDecl VoidDeclaration() throws ParseException
ParseException
public static final VarDecl FieldDeclaration() throws ParseException
ParseException
public static final Type Type() throws ParseException
ParseException
public static final Type BaseType() throws ParseException
ParseException
public static final Stmt Statement() throws ParseException
ParseException
public static final BlockStmt BlockStatement() throws ParseException
ParseException
public static final IfStmt IfStatement() throws ParseException
ParseException
public static final WhileStmt WhileStatement() throws ParseException
ParseException
public static final XinuCallStmt XinuCallStatement() throws ParseException
ParseException
public static final AssignStmt AssignStatement() throws ParseException
ParseException
public static final Expr Expression() throws ParseException
ParseException
public static final Expr OrExpression() throws ParseException
ParseException
public static final Expr AndExpression() throws ParseException
ParseException
public static final Expr EqualityExpression() throws ParseException
ParseException
public static final Expr RelationalExpression() throws ParseException
ParseException
public static final Expr AddExpression() throws ParseException
ParseException
public static final Expr MulExpression() throws ParseException
ParseException
public static final XinuCallExpr XinuCallExpression() throws ParseException
ParseException
public static final Expr UnaryExpression() throws ParseException
ParseException
public static final Expr PrimaryExpression() throws ParseException
ParseException
public static final Expr PrimaryPrefix() throws ParseException
ParseException
public static final Expr LiteralExpression() throws ParseException
ParseException
public static final AssignableExpr VariableExpression() throws ParseException
ParseException
public static final AssignableExpr IdentifierExpression() throws ParseException
ParseException
public static final AssignableExpr ArrayExpression(Expr e1) throws ParseException
ParseException
public static final Expr AllocateObjectExpression() throws ParseException
ParseException
public static final Expr AllocateArrayExpression() throws ParseException
ParseException
public static final Expr PrimarySuffix(Expr e1) throws ParseException
ParseException
public static final AssignableExpr FieldExpression(Expr e1) throws ParseException
ParseException
public static final Expr CallExpression(Expr e1) throws ParseException
ParseException
public static void ReInit(java.io.InputStream stream)
public static void ReInit(java.io.InputStream stream, java.lang.String encoding)
public static void ReInit(java.io.Reader stream)
public void ReInit(MiniJavaParserTokenManager tm)
public static final Token getNextToken()
public static final Token getToken(int index)
public static ParseException generateParseException()
public static final void enable_tracing()
public static final void disable_tracing()