public class ReadTypes extends java.lang.Object implements ReadTypesConstants
| Modifier and Type | Field and Description |
|---|---|
static Token |
jj_nt
Next token.
|
static Token |
token
Current token.
|
static ReadTypesTokenManager |
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 |
|---|
ReadTypes(java.io.InputStream stream)
Constructor with InputStream.
|
ReadTypes(java.io.InputStream stream,
java.lang.String encoding)
Constructor with InputStream and supplied encoding
|
ReadTypes(java.io.Reader stream)
Constructor.
|
ReadTypes(ReadTypesTokenManager tm)
Constructor with generated Token Manager.
|
| Modifier and Type | Method and Description |
|---|---|
static AddExpr |
AddExpr() |
static AndExpr |
AndExpr() |
static ARRAY |
ArrayDescriptor() |
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 CLASS |
ClassDescriptor() |
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 FIELD |
FieldDescriptor() |
static FieldExpr |
FieldExpr() |
static Formal |
Formal() |
static FUNCTION |
FunctionDescriptor() |
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 OBJECT |
ObjectDescriptor() |
static OrExpr |
OrExpr() |
static Program |
Program()
The MiniJava language grammar starts here *
|
static RECORD |
RecordDescriptor() |
static void |
ReInit(java.io.InputStream stream)
Reinitialise.
|
static void |
ReInit(java.io.InputStream stream,
java.lang.String encoding)
Reinitialise.
|
static void |
ReInit(java.io.Reader stream)
Reinitialise.
|
void |
ReInit(ReadTypesTokenManager tm)
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 Type |
TypeDescriptor() |
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 ReadTypesTokenManager token_source
public static Token token
public static Token jj_nt
public ReadTypes(java.io.InputStream stream)
public ReadTypes(java.io.InputStream stream,
java.lang.String encoding)
public ReadTypes(java.io.Reader stream)
public ReadTypes(ReadTypesTokenManager tm)
public static final Program Program() throws ParseException
ParseExceptionpublic static final void ClassDecl(java.util.LinkedList<ClassDecl> cl) throws ParseException
ParseExceptionpublic static final void ThreadDecl(java.util.LinkedList<ClassDecl> cl) throws ParseException
ParseExceptionpublic static final void MethodDecl(java.util.LinkedList<MethodDecl> ml) throws ParseException
ParseExceptionpublic static final void VoidDecl(java.util.LinkedList<MethodDecl> ml) throws ParseException
ParseExceptionpublic static final Formal Formal() throws ParseException
ParseExceptionpublic static final void VarDecl(java.util.LinkedList<VarDecl> vl) throws ParseException
ParseExceptionpublic static final Type Type() throws ParseException
ParseExceptionpublic static final Type ArrayType() throws ParseException
ParseExceptionpublic static final Type BooleanType() throws ParseException
ParseExceptionpublic static final Type IntegerType() throws ParseException
ParseExceptionpublic static final Type IdentifierType() throws ParseException
ParseExceptionpublic static final Stmt Stmt() throws ParseException
ParseExceptionpublic static final Stmt AssignStmt() throws ParseException
ParseExceptionpublic static final Stmt BlockStmt() throws ParseException
ParseExceptionpublic static final Stmt IfStmt() throws ParseException
ParseExceptionpublic static final Stmt XinuCallStmt() throws ParseException
ParseExceptionpublic static final Stmt WhileStmt() throws ParseException
ParseExceptionpublic static final Expr Expr() throws ParseException
ParseExceptionpublic static final AddExpr AddExpr() throws ParseException
ParseExceptionpublic static final AndExpr AndExpr() throws ParseException
ParseExceptionpublic static final DivExpr DivExpr() throws ParseException
ParseExceptionpublic static final EqualExpr EqualExpr() throws ParseException
ParseExceptionpublic static final GreaterExpr GreaterExpr() throws ParseException
ParseExceptionpublic static final LesserExpr LesserExpr() throws ParseException
ParseExceptionpublic static final MulExpr MulExpr() throws ParseException
ParseExceptionpublic static final NotEqExpr NotEqExpr() throws ParseException
ParseExceptionpublic static final OrExpr OrExpr() throws ParseException
ParseExceptionpublic static final SubExpr SubExpr() throws ParseException
ParseExceptionpublic static final ArrayExpr ArrayExpr() throws ParseException
ParseExceptionpublic static final CallExpr CallExpr() throws ParseException
ParseExceptionpublic static final FalseExpr FalseExpr() throws ParseException
ParseExceptionpublic static final FieldExpr FieldExpr() throws ParseException
ParseExceptionpublic static final IdentifierExpr IdentifierExpr() throws ParseException
ParseExceptionpublic static final NegExpr NegExpr() throws ParseException
ParseExceptionpublic static final NewArrayExpr NewArrayExpr() throws ParseException
ParseExceptionpublic static final NewObjectExpr NewObjectExpr() throws ParseException
ParseExceptionpublic static final NotExpr NotExpr() throws ParseException
ParseExceptionpublic static final NullExpr NullExpr() throws ParseException
ParseExceptionpublic static final XinuCallExpr XinuCallExpr() throws ParseException
ParseExceptionpublic static final ThisExpr ThisExpr() throws ParseException
ParseExceptionpublic static final TrueExpr TrueExpr() throws ParseException
ParseExceptionpublic static final IntegerLiteral IntegerLiteral() throws ParseException
ParseExceptionpublic static final StringLiteral StringLiteral() throws ParseException
ParseExceptionpublic static final Type TypeDescriptor() throws ParseException
ParseExceptionpublic static final ARRAY ArrayDescriptor() throws ParseException
ParseExceptionpublic static final CLASS ClassDescriptor() throws ParseException
ParseExceptionpublic static final FIELD FieldDescriptor() throws ParseException
ParseExceptionpublic static final FUNCTION FunctionDescriptor() throws ParseException
ParseExceptionpublic static final OBJECT ObjectDescriptor() throws ParseException
ParseExceptionpublic static final RECORD RecordDescriptor() throws ParseException
ParseExceptionpublic 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(ReadTypesTokenManager 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()