public class RMASParser extends java.lang.Object implements RMASParserConstants
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String[] |
errorKeys
Keys that identify the different types of error generated while #include directives are being processed and the
script is being parsed.
|
Token |
jj_nt |
boolean |
lookingAhead |
Token |
token |
RMASParserTokenManager |
token_source |
ASR, ASSIGN, ASSIGN_ADD, ASSIGN_AND, ASSIGN_ASR, ASSIGN_DIV, ASSIGN_LSL, ASSIGN_LSR, ASSIGN_MOD, ASSIGN_MUL, ASSIGN_OR, ASSIGN_SUB, ASSIGN_XOR, BIT_AND, BIT_NOT, BIT_OR, BIT_XOR, BOOLEAN_LITERAL, BREAK, CONTINUE, DEC, DECIMAL_LITERAL, DEFAULT, DIGIT, DIVIDE, DO, ELSE, EOF, EQ, FOR, FUNCTION, GT, GTE, HEX_LITERAL, IDENTIFIER, IF, IN, INC, INTEGER_LITERAL, LETTER, LOGICAL_AND, LOGICAL_NOT, LOGICAL_OR, LSL, LSR, LT, LTE, MINUS, MOD, MULTIPLY, NE, NEW, NULL_LITERAL, ON, ONCLIPEVENT, PLUS, RETURN, STRING_LITERAL, tokenImage, VAR, WHILE, WITH| Constructor and Description |
|---|
RMASParser()
Constructs a new parser object initializing it to read characters from the standard input stream, System.in.
|
RMASParser(java.io.InputStream stream) |
RMASParser(java.io.Reader stream) |
RMASParser(RMASParserTokenManager tm) |
public static java.lang.String[] errorKeys
public RMASParserTokenManager token_source
public Token token
public Token jj_nt
public boolean lookingAhead
public RMASParser()
public RMASParser(java.io.InputStream stream)
public RMASParser(java.io.Reader stream)
public RMASParser(RMASParserTokenManager tm)
public java.util.ArrayList getPathNames()
public void setPaths(java.util.ArrayList paths)
paths - an array of strings containing the names of directories to search.public void setPaths(java.lang.String paths)
paths - a string containing the names of directories to search.public void add(java.lang.String path)
path - a string containing the path to a directory.public java.lang.String getFilename()
public int getLineNumber()
public java.lang.String getLine()
public java.lang.String getError()
public RMASNode parse(java.lang.String script) throws ParseException
script - a String containing the ActionScript code to parse.ParseException - if a parsing error occurs.public final RMASNode Literal() throws ParseException
ParseExceptionpublic final RMASNode Identifier() throws ParseException
ParseExceptionpublic final RMASNode Script() throws ParseException
ParseExceptionpublic final RMASNode Statement() throws ParseException
ParseExceptionpublic final RMASNode FunctionDefinition() throws ParseException
ParseExceptionpublic final RMASNode BlockStatement() throws ParseException
ParseExceptionpublic final RMASNode ExpressionStatement() throws ParseException
ParseExceptionpublic final RMASNode IfStatement() throws ParseException
ParseExceptionpublic final RMASNode WithStatement() throws ParseException
ParseExceptionpublic final RMASNode WhileStatement() throws ParseException
ParseExceptionpublic final RMASNode DoStatement() throws ParseException
ParseExceptionpublic final RMASNode ForStatement() throws ParseException
ParseExceptionpublic final RMASNode BreakStatement() throws ParseException
ParseExceptionpublic final RMASNode ContinueStatement() throws ParseException
ParseExceptionpublic final RMASNode ReturnStatement() throws ParseException
ParseExceptionpublic final RMASNode OnClipEvent() throws ParseException
ParseExceptionpublic final RMASNode On() throws ParseException
ParseExceptionpublic final RMASNode ExpressionList() throws ParseException
ParseExceptionpublic final RMASNode ArgumentList() throws ParseException
ParseExceptionpublic final RMASNode Expression() throws ParseException
ParseExceptionpublic final RMASNode AssignmentExpression() throws ParseException
ParseExceptionpublic final RMASNode ConditionalExpression() throws ParseException
ParseExceptionpublic final RMASNode LogicalOrExpression() throws ParseException
ParseExceptionpublic final RMASNode LogicalAndExpression() throws ParseException
ParseExceptionpublic final RMASNode InclusiveOrExpression() throws ParseException
ParseExceptionpublic final RMASNode ExclusiveOrExpression() throws ParseException
ParseExceptionpublic final RMASNode AndExpression() throws ParseException
ParseExceptionpublic final RMASNode EqualityExpression() throws ParseException
ParseExceptionpublic final RMASNode RelationalExpression() throws ParseException
ParseExceptionpublic final RMASNode ShiftExpression() throws ParseException
ParseExceptionpublic final RMASNode AdditiveExpression() throws ParseException
ParseExceptionpublic final RMASNode MultiplicativeExpression() throws ParseException
ParseExceptionpublic final RMASNode UnaryExpression() throws ParseException
ParseExceptionpublic final RMASNode PostfixExpression() throws ParseException
ParseExceptionpublic final RMASNode PrimaryExpression() throws ParseException
ParseExceptionpublic final RMASNode PrimaryPrefix() throws ParseException
ParseExceptionpublic final RMASNode PrimarySuffix() throws ParseException
ParseExceptionpublic final RMASNode Function() throws ParseException
ParseExceptionpublic final RMASNode Constructor() throws ParseException
ParseExceptionpublic final RMASNode AnonymousArray() throws ParseException
ParseExceptionpublic final RMASNode MethodDefinition() throws ParseException
ParseExceptionpublic final RMASNode AnonymousObject() throws ParseException
ParseExceptionpublic final RMASNode Attribute() throws ParseException
ParseExceptionpublic void ReInit(java.io.InputStream stream)
public void ReInit(java.io.Reader stream)
public void ReInit(RMASParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()