public class ReadAbsyn extends java.lang.Object implements ReadAbsynConstants
Modifier and Type | Field and Description |
---|---|
static Token |
jj_nt
Next token.
|
static Token |
token
Current token.
|
static ReadAbsynTokenManager |
token_source
Generated Token Manager.
|
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
Constructor and Description |
---|
ReadAbsyn(java.io.InputStream stream)
Constructor with InputStream.
|
ReadAbsyn(java.io.InputStream stream,
java.lang.String encoding)
Constructor with InputStream and supplied encoding
|
ReadAbsyn(ReadAbsynTokenManager tm)
Constructor with generated Token Manager.
|
ReadAbsyn(java.io.Reader stream)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static AddExpr |
AddExpr() |
static AndExpr |
AndExpr() |
static ArrayExpr |
ArrayExpr() |
static Type |
ArrayType() |
static Stmt |
AssignStmt() |
static Stmt |
BlockStmt() |
static Type |
BooleanType() |
static CallExpr |
CallExpr() |
static void |
ClassDecl(java.util.LinkedList<ClassDecl> cl) |
static void |
disable_tracing()
Disable tracing.
|
static DivExpr |
DivExpr() |
static void |
enable_tracing()
Enable tracing.
|
static EqualExpr |
EqualExpr() |
static Expr |
Expr() |
static FalseExpr |
FalseExpr() |
static FieldExpr |
FieldExpr() |
static Formal |
Formal() |
static ParseException |
generateParseException()
Generate ParseException.
|
static Token |
getNextToken()
Get the next Token.
|
static Token |
getToken(int index)
Get the specific Token.
|
static GreaterExpr |
GreaterExpr() |
static IdentifierExpr |
IdentifierExpr() |
static Type |
IdentifierType() |
static Stmt |
IfStmt() |
static IntegerLiteral |
IntegerLiteral() |
static Type |
IntegerType() |
static LesserExpr |
LesserExpr() |
static void |
MethodDecl(java.util.LinkedList<MethodDecl> ml) |
static MulExpr |
MulExpr() |
static NegExpr |
NegExpr() |
static NewArrayExpr |
NewArrayExpr() |
static NewObjectExpr |
NewObjectExpr() |
static NotEqExpr |
NotEqExpr() |
static NotExpr |
NotExpr() |
static NullExpr |
NullExpr() |
static OrExpr |
OrExpr() |
static Program |
Program()
The MiniJava language grammar starts here *
|
static void |
ReInit(java.io.InputStream stream)
Reinitialise.
|
static void |
ReInit(java.io.InputStream stream,
java.lang.String encoding)
Reinitialise.
|
void |
ReInit(ReadAbsynTokenManager tm)
Reinitialise.
|
static void |
ReInit(java.io.Reader stream)
Reinitialise.
|
static Stmt |
Stmt() |
static StringLiteral |
StringLiteral() |
static SubExpr |
SubExpr() |
static ThisExpr |
ThisExpr() |
static void |
ThreadDecl(java.util.LinkedList<ClassDecl> cl) |
static TrueExpr |
TrueExpr() |
static Type |
Type() |
static void |
VarDecl(java.util.LinkedList<VarDecl> vl) |
static void |
VoidDecl(java.util.LinkedList<MethodDecl> ml) |
static Stmt |
WhileStmt() |
static XinuCallExpr |
XinuCallExpr() |
static Stmt |
XinuCallStmt() |
public static ReadAbsynTokenManager token_source
public static Token token
public static Token jj_nt
public ReadAbsyn(java.io.InputStream stream)
public ReadAbsyn(java.io.InputStream stream, java.lang.String encoding)
public ReadAbsyn(java.io.Reader stream)
public ReadAbsyn(ReadAbsynTokenManager tm)
public static final Program Program() throws ParseException
ParseException
public static final void ClassDecl(java.util.LinkedList<ClassDecl> cl) throws ParseException
ParseException
public static final void ThreadDecl(java.util.LinkedList<ClassDecl> cl) throws ParseException
ParseException
public static final void MethodDecl(java.util.LinkedList<MethodDecl> ml) throws ParseException
ParseException
public static final void VoidDecl(java.util.LinkedList<MethodDecl> ml) throws ParseException
ParseException
public static final Formal Formal() throws ParseException
ParseException
public static final void VarDecl(java.util.LinkedList<VarDecl> vl) throws ParseException
ParseException
public static final Type Type() throws ParseException
ParseException
public static final Type ArrayType() throws ParseException
ParseException
public static final Type BooleanType() throws ParseException
ParseException
public static final Type IntegerType() throws ParseException
ParseException
public static final Type IdentifierType() throws ParseException
ParseException
public static final Stmt Stmt() throws ParseException
ParseException
public static final Stmt AssignStmt() throws ParseException
ParseException
public static final Stmt BlockStmt() throws ParseException
ParseException
public static final Stmt IfStmt() throws ParseException
ParseException
public static final Stmt XinuCallStmt() throws ParseException
ParseException
public static final Stmt WhileStmt() throws ParseException
ParseException
public static final Expr Expr() throws ParseException
ParseException
public static final AddExpr AddExpr() throws ParseException
ParseException
public static final AndExpr AndExpr() throws ParseException
ParseException
public static final DivExpr DivExpr() throws ParseException
ParseException
public static final EqualExpr EqualExpr() throws ParseException
ParseException
public static final GreaterExpr GreaterExpr() throws ParseException
ParseException
public static final LesserExpr LesserExpr() throws ParseException
ParseException
public static final MulExpr MulExpr() throws ParseException
ParseException
public static final NotEqExpr NotEqExpr() throws ParseException
ParseException
public static final OrExpr OrExpr() throws ParseException
ParseException
public static final SubExpr SubExpr() throws ParseException
ParseException
public static final ArrayExpr ArrayExpr() throws ParseException
ParseException
public static final CallExpr CallExpr() throws ParseException
ParseException
public static final FalseExpr FalseExpr() throws ParseException
ParseException
public static final FieldExpr FieldExpr() throws ParseException
ParseException
public static final IdentifierExpr IdentifierExpr() throws ParseException
ParseException
public static final NegExpr NegExpr() throws ParseException
ParseException
public static final NewArrayExpr NewArrayExpr() throws ParseException
ParseException
public static final NewObjectExpr NewObjectExpr() throws ParseException
ParseException
public static final NotExpr NotExpr() throws ParseException
ParseException
public static final NullExpr NullExpr() throws ParseException
ParseException
public static final XinuCallExpr XinuCallExpr() throws ParseException
ParseException
public static final ThisExpr ThisExpr() throws ParseException
ParseException
public static final TrueExpr TrueExpr() throws ParseException
ParseException
public static final IntegerLiteral IntegerLiteral() throws ParseException
ParseException
public static final StringLiteral StringLiteral() 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(ReadAbsynTokenManager 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()