|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectca.uwaterloo.cs.ql.interp.Interp
public class Interp
| Field Summary | |
|---|---|
static Token |
jj_nt
|
static boolean |
lookingAhead
|
static Token |
token
|
static InterpTokenManager |
token_source
|
| Fields inherited from interface ca.uwaterloo.cs.ql.interp.InterpConstants |
|---|
ADDRESS, AND, ARGN, ASSIGN, ASSIGN_DIVIDE, ASSIGN_MINUS, ASSIGN_MULTIPLY, ASSIGN_PLUS, ATTR, cmd_delete, cmd_exit, cmd_help, cmd_print, cmd_quit, COLON, COLUMN, COMMA, COMPOSE, CROSS, DEFAULT, DIGIT, DIVIDE, DOLLAR, ELSE, EOF, EQ, FALSE, FLOAT_LITERAL, FOR, GE, GT, IDENTIFIER, IF, IN, INT_LITERAL, INTERSECT, IOAPPEND, IOTOFILE, LBRACE, LBRACKET, LE, LETTER, LINE_CONTINUE, LPAREN, LT, ME, MINUS, MOD, MULTIPLY, NE, NOT, op_dom, op_ent, op_id, op_inv, op_rng, OR, PLUS, POUND, PROJECT, RBRACE, RBRACKET, RCOMPOSE, RETURN, RPAREN, SEMICOLON, STRING_LITERAL, TILDE, tokenImage, TRUE, UE, WHILE |
| Constructor Summary | |
|---|---|
Interp()
Constructs a command-line Interp. |
|
Interp(java.io.File f)
Constructs a script-file Interp, which evaluates the specified file. |
|
Interp(java.io.InputStream stream)
|
|
Interp(InterpTokenManager tm)
|
|
Interp(java.io.Reader stream)
|
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static InterpTokenManager token_source
public static Token token
public static Token jj_nt
public static boolean lookingAhead
| Constructor Detail |
|---|
public Interp()
public Interp(java.io.File f)
throws java.io.FileNotFoundException
file.
java.io.FileNotFoundExceptionpublic Interp(java.io.InputStream stream)
public Interp(java.io.Reader stream)
public Interp(InterpTokenManager tm)
| Method Detail |
|---|
public static Interp instance()
public static Interp reinit(java.io.File f)
throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionpublic ScriptUnitNode parse()
public void bootstrapEvaluate(Env env,
java.lang.String[] args)
public void fileEvaluate(Env env,
java.lang.String[] args)
public static final ScriptUnitNode ScriptUnit()
throws ParseException
ParseException
public static final StatementNode Statement()
throws ParseException
ParseException
public static final void ControlStatementLookahead()
throws ParseException
ParseException
public static final StatementNode ControlStatement()
throws ParseException
ParseException
public static final StatementNode IfStatement()
throws ParseException
ParseException
public static final StatementNode ForStatement()
throws ParseException
ParseException
public static final StatementNode WhileStatement()
throws ParseException
ParseException
public static final StatementNode ReturnStatement()
throws ParseException
ParseException
public static final StatementNode BlockStatement()
throws ParseException
ParseException
public static final void CommandStatementLookahead()
throws ParseException
ParseException
public static final StatementNode CommandStatement()
throws ParseException
ParseException
public static final CommandNode CommandQuit()
throws ParseException
ParseException
public static final CommandNode CommandHelp()
throws ParseException
ParseException
public static final CommandNode CommandPrint()
throws ParseException
ParseException
public static final CommandNode CommandDelete()
throws ParseException
ParseException
public static final void PrologClauseLookahead()
throws ParseException
ParseException
public static final StatementNode PrologClause()
throws ParseException
ParseException
public static final void PrologExpressionLookahead()
throws ParseException
ParseException
public static final StatementNode PrologExpression()
throws ParseException
ParseException
public static final void AssignmentLookahead()
throws ParseException
ParseException
public static final StatementNode Assignment()
throws ParseException
ParseException
public static final VariableNode Variable()
throws ParseException
ParseException
public static final VariableNode SpecialVariable()
throws ParseException
ParseException
public static final void ExpressionLookahead()
throws ParseException
ParseException
public static final ExpressionNode Expression()
throws ParseException
ParseException
public static final ExpressionNode ConditionalExpression()
throws ParseException
ParseException
public static final ExpressionNode ConditionalOrExpression()
throws ParseException
ParseException
public static final ExpressionNode ConditionalAndExpression()
throws ParseException
ParseException
public static final ExpressionNode RelationalExpression()
throws ParseException
ParseException
public static final ExpressionNode AdditiveExpression()
throws ParseException
ParseException
public static final ExpressionNode MultiplicativeExpression()
throws ParseException
ParseException
public static final ExpressionNode UnaryExpression()
throws ParseException
ParseException
public static final ExpressionNode PrefixExpression()
throws ParseException
ParseException
public static final void SuffixExpressionLookahead()
throws ParseException
ParseException
public static final void ClosureLookahead()
throws ParseException
ParseException
public static final ExpressionNode SuffixExpression()
throws ParseException
ParseException
public static final ExpressionNode PrimaryExpression()
throws ParseException
ParseException
public static final ExpressionNode Literal()
throws ParseException
ParseException
public static final boolean BooleanLiteral()
throws ParseException
ParseException
public static final ExpressionNode SetConstructor()
throws ParseException
ParseException
public static final ExpressionNode SetElement()
throws ParseException
ParseException
public static final ArgumentsNode Arguments()
throws ParseException
ParseException
public static final SelectConditionNode SelectCondition()
throws ParseException
ParseException
public static final SelectConditionNode SelectOrExpression()
throws ParseException
ParseException
public static final SelectConditionNode SelectAndExpression()
throws ParseException
ParseException
public static final ColumnNode Column()
throws ParseException
ParseException
public static final SelectConditionNode SelectRelationalExpression()
throws ParseException
ParseExceptionpublic static void ReInit(java.io.InputStream stream)
public static void ReInit(java.io.Reader stream)
public void ReInit(InterpTokenManager tm)
public static final Token getNextToken()
public static final Token getToken(int index)
public static final ParseException generateParseException()
public static final void enable_tracing()
public static final void disable_tracing()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||