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
ParseException
public final RMASNode Identifier() throws ParseException
ParseException
public final RMASNode Script() throws ParseException
ParseException
public final RMASNode Statement() throws ParseException
ParseException
public final RMASNode FunctionDefinition() throws ParseException
ParseException
public final RMASNode BlockStatement() throws ParseException
ParseException
public final RMASNode ExpressionStatement() throws ParseException
ParseException
public final RMASNode IfStatement() throws ParseException
ParseException
public final RMASNode WithStatement() throws ParseException
ParseException
public final RMASNode WhileStatement() throws ParseException
ParseException
public final RMASNode DoStatement() throws ParseException
ParseException
public final RMASNode ForStatement() throws ParseException
ParseException
public final RMASNode BreakStatement() throws ParseException
ParseException
public final RMASNode ContinueStatement() throws ParseException
ParseException
public final RMASNode ReturnStatement() throws ParseException
ParseException
public final RMASNode OnClipEvent() throws ParseException
ParseException
public final RMASNode On() throws ParseException
ParseException
public final RMASNode ExpressionList() throws ParseException
ParseException
public final RMASNode ArgumentList() throws ParseException
ParseException
public final RMASNode Expression() throws ParseException
ParseException
public final RMASNode AssignmentExpression() throws ParseException
ParseException
public final RMASNode ConditionalExpression() throws ParseException
ParseException
public final RMASNode LogicalOrExpression() throws ParseException
ParseException
public final RMASNode LogicalAndExpression() throws ParseException
ParseException
public final RMASNode InclusiveOrExpression() throws ParseException
ParseException
public final RMASNode ExclusiveOrExpression() throws ParseException
ParseException
public final RMASNode AndExpression() throws ParseException
ParseException
public final RMASNode EqualityExpression() throws ParseException
ParseException
public final RMASNode RelationalExpression() throws ParseException
ParseException
public final RMASNode ShiftExpression() throws ParseException
ParseException
public final RMASNode AdditiveExpression() throws ParseException
ParseException
public final RMASNode MultiplicativeExpression() throws ParseException
ParseException
public final RMASNode UnaryExpression() throws ParseException
ParseException
public final RMASNode PostfixExpression() throws ParseException
ParseException
public final RMASNode PrimaryExpression() throws ParseException
ParseException
public final RMASNode PrimaryPrefix() throws ParseException
ParseException
public final RMASNode PrimarySuffix() throws ParseException
ParseException
public final RMASNode Function() throws ParseException
ParseException
public final RMASNode Constructor() throws ParseException
ParseException
public final RMASNode AnonymousArray() throws ParseException
ParseException
public final RMASNode MethodDefinition() throws ParseException
ParseException
public final RMASNode AnonymousObject() throws ParseException
ParseException
public final RMASNode Attribute() throws ParseException
ParseException
public 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()