oscript.parser
Class OscriptParser

java.lang.Object
  extended byoscript.parser.OscriptParser
All Implemented Interfaces:
OscriptParserConstants

public class OscriptParser
extends java.lang.Object
implements OscriptParserConstants


Field Summary
static java.lang.String desc
           
static Token jj_nt
           
static boolean lookingAhead
           
static Token token
           
static OscriptParserTokenManager token_source
           
 
Fields inherited from interface oscript.parser.OscriptParserConstants
ANDASSIGN, ASSIGN, BANG, BIT_AND, BIT_OR, BREAK, CALLEE, CATCH, COLON, COMMA, CONST, CONTINUE, DECIMAL_LITERAL, DECR, DEFAULT, DIGIT, DO, DOT, DOTDOTDOT, ELSE, EOF, EQ, ESCAPE_SEQUENCE, EVAL, EXPECTING_JAVADOC_TAG_ARG, EXPONENT, EXTENDS, FALSE, FINALLY, FLOATING_POINT_LITERAL, FOR, FORMAL_COMMENT, FUNCTION, GE, GT, HEX_LITERAL, HOOK, IDENTIFIER, IF, IMPORT, IN_FORMAL_COMMENT, IN_MULTI_LINE_COMMENT, IN_SINGLE_LINE_COMMENT, IN_UNIX_SELF_EXECUTABLE_COMMENT, INCR, INSTANCEOF, INTEGER_LITERAL, JAVADOC_TAG, JAVADOC_TAG_ARG, JAVADOC_TAG_WITH_ARG, LBRACE, LBRACKET, LE, LETTER, LFXNBRACE, LPAREN, LSHIFT, LSHIFTASSIGN, LT, MAYBE_JAVADOC_TAG, MINUS, MINUSASSIGN, MIXIN, MULTI_LINE_COMMENT, NE, NEW, NULL, OCTAL_LITERAL, ORASSIGN, PLUS, PLUSASSIGN, PRIVATE, PROTECTED, PUBLIC, RBRACE, RBRACKET, REGEXP_BODY, REGEXP_ESCAPE_SEQUENCE, REGEXP_FLAG, REGEXP_LITERAL, REM, REMASSIGN, RETURN, RPAREN, RSIGNEDSHIFT, RSIGNEDSHIFTASSIGN, RUNSIGNEDSHIFT, RUNSIGNEDSHIFTASSIGN, SC_AND, SC_OR, SEMICOLON, SINGLE_LINE_COMMENT, SLASH, SLASHASSIGN, STAR, STARASSIGN, STATIC, STRING_LITERAL, SYNCHRONIZED, THIS, THROW, TILDE, tokenImage, TRUE, TRY, UNDEFINED, UNIX_SELF_EXECUTABLE_COMMENT, VAR, VOID, WHILE, XOR, XORASSIGN
 
Constructor Summary
OscriptParser(java.io.InputStream stream, java.lang.String desc)
           
OscriptParser(OscriptParserTokenManager tm, java.lang.String desc)
           
OscriptParser(java.io.Reader stream, java.lang.String desc)
           
 
Method Summary
static AdditiveExpression AdditiveExpression()
           
static AllocationExpression AllocationExpression()
           
static Arglist Arglist()
           
static ArrayDeclarationPrimaryPrefix ArrayDeclarationPrimaryPrefix()
           
static ArraySubscriptPrimaryPostfix ArraySubscriptPrimaryPostfix()
           
static AssignmentExpression AssignmentExpression()
           
static BitwiseAndExpression BitwiseAndExpression()
           
static BitwiseOrExpression BitwiseOrExpression()
           
static BitwiseXorExpression BitwiseXorExpression()
           
static BreakStatement BreakStatement()
           
static CalleePrimaryPrefix CalleePrimaryPrefix()
           
static CastExpression CastExpression()
           
static CollectionForLoopStatement CollectionForLoopStatement()
           
static ConditionalExpression ConditionalExpression()
           
static ConditionalStatement ConditionalStatement()
           
static ContinueStatement ContinueStatement()
           
static void disable_tracing()
           
static void enable_tracing()
           
static EqualityExpression EqualityExpression()
           
static EvalBlock EvalBlock()
           
static EvaluationUnit EvaluationUnit()
           
static Expression Expression()
           
static ExpressionBlock ExpressionBlock()
           
static ForLoopStatement ForLoopStatement()
           
static FunctionCallExpressionList FunctionCallExpressionList()
           
static FunctionCallExpressionListBody FunctionCallExpressionListBody()
           
static FunctionCallPrimaryPostfix FunctionCallPrimaryPostfix()
           
static FunctionDeclaration FunctionDeclaration()
           
static FunctionPrimaryPrefix FunctionPrimaryPrefix()
           
static ParseException generateParseException()
           
static Token getNextToken()
           
static java.util.Vector getNodeTokens()
           
static Token getToken(int index)
           
static java.lang.String getTokenString(int kind)
           
static IdentifierPrimaryPrefix IdentifierPrimaryPrefix()
           
static ImportBlock ImportBlock()
           
static Literal Literal()
           
static LogicalAndExpression LogicalAndExpression()
           
static LogicalOrExpression LogicalOrExpression()
           
static MixinBlock MixinBlock()
           
static MultiplicativeExpression MultiplicativeExpression()
           
static ParenPrimaryPrefix ParenPrimaryPrefix()
           
static Permissions Permissions(boolean staticOk)
           
static PostfixExpression PostfixExpression()
           
static PreLoopStatement PreLoopStatement(boolean canHaveVarAssignmentExpr)
           
static PrimaryExpression PrimaryExpression()
           
static PrimaryExpressionNotFunction PrimaryExpressionNotFunction()
           
static PrimaryExpressionWithTrailingFxnCallExpList PrimaryExpressionWithTrailingFxnCallExpList()
           
static PrimaryPostfix PrimaryPostfix()
           
static PrimaryPostfixWithTrailingFxnCallExpList PrimaryPostfixWithTrailingFxnCallExpList()
           
static PrimaryPrefix PrimaryPrefix()
           
static PrimaryPrefixNotFunction PrimaryPrefixNotFunction()
           
static Program Program(boolean staticOk)
           
static ProgramFile ProgramFile()
           
static PropertyIdentifierPrimaryPostfix PropertyIdentifierPrimaryPostfix()
           
static void ReInit(java.io.InputStream stream)
           
 void ReInit(OscriptParserTokenManager tm, java.lang.String desc)
           
static void ReInit(java.io.Reader stream, java.lang.String desc)
           
static RelationalExpression RelationalExpression()
           
static void resetNodeTokens()
           
static ReturnStatement ReturnStatement()
           
static ScopeBlock ScopeBlock()
           
static ShiftExpression ShiftExpression()
           
static ShorthandFunctionPrimaryPrefix ShorthandFunctionPrimaryPrefix()
           
static SynchronizedStatement SynchronizedStatement()
           
static ThisPrimaryPrefix ThisPrimaryPrefix()
           
static ThrowBlock ThrowBlock()
           
static TryStatement TryStatement()
           
static TypeExpression TypeExpression()
           
static UnaryExpression UnaryExpression()
           
static VariableDeclaration VariableDeclaration(boolean canHaveVarAssignmentExpr)
           
static VariableDeclarationBlock VariableDeclarationBlock()
           
static WhileLoopStatement WhileLoopStatement()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

desc

public static java.lang.String desc

token_source

public static OscriptParserTokenManager token_source

token

public static Token token

jj_nt

public static Token jj_nt

lookingAhead

public static boolean lookingAhead
Constructor Detail

OscriptParser

public OscriptParser(java.io.InputStream stream,
                     java.lang.String desc)

OscriptParser

public OscriptParser(java.io.Reader stream,
                     java.lang.String desc)

OscriptParser

public OscriptParser(OscriptParserTokenManager tm,
                     java.lang.String desc)
Method Detail

resetNodeTokens

public static final void resetNodeTokens()

getNodeTokens

public static final java.util.Vector getNodeTokens()

getTokenString

public static java.lang.String getTokenString(int kind)

ProgramFile

public static final ProgramFile ProgramFile()
                                     throws ParseException
Throws:
ParseException

Program

public static final Program Program(boolean staticOk)
                             throws ParseException
Throws:
ParseException

EvaluationUnit

public static final EvaluationUnit EvaluationUnit()
                                           throws ParseException
Throws:
ParseException

ScopeBlock

public static final ScopeBlock ScopeBlock()
                                   throws ParseException
Throws:
ParseException

VariableDeclarationBlock

public static final VariableDeclarationBlock VariableDeclarationBlock()
                                                               throws ParseException
Throws:
ParseException

ExpressionBlock

public static final ExpressionBlock ExpressionBlock()
                                             throws ParseException
Throws:
ParseException

ThrowBlock

public static final ThrowBlock ThrowBlock()
                                   throws ParseException
Throws:
ParseException

ImportBlock

public static final ImportBlock ImportBlock()
                                     throws ParseException
Throws:
ParseException

MixinBlock

public static final MixinBlock MixinBlock()
                                   throws ParseException
Throws:
ParseException

EvalBlock

public static final EvalBlock EvalBlock()
                                 throws ParseException
Throws:
ParseException

VariableDeclaration

public static final VariableDeclaration VariableDeclaration(boolean canHaveVarAssignmentExpr)
                                                     throws ParseException
Throws:
ParseException

FunctionDeclaration

public static final FunctionDeclaration FunctionDeclaration()
                                                     throws ParseException
Throws:
ParseException

Arglist

public static final Arglist Arglist()
                             throws ParseException
Throws:
ParseException

TryStatement

public static final TryStatement TryStatement()
                                       throws ParseException
Throws:
ParseException

ForLoopStatement

public static final ForLoopStatement ForLoopStatement()
                                               throws ParseException
Throws:
ParseException

CollectionForLoopStatement

public static final CollectionForLoopStatement CollectionForLoopStatement()
                                                                   throws ParseException
Throws:
ParseException

PreLoopStatement

public static final PreLoopStatement PreLoopStatement(boolean canHaveVarAssignmentExpr)
                                               throws ParseException
Throws:
ParseException

WhileLoopStatement

public static final WhileLoopStatement WhileLoopStatement()
                                                   throws ParseException
Throws:
ParseException

ConditionalStatement

public static final ConditionalStatement ConditionalStatement()
                                                       throws ParseException
Throws:
ParseException

SynchronizedStatement

public static final SynchronizedStatement SynchronizedStatement()
                                                         throws ParseException
Throws:
ParseException

ReturnStatement

public static final ReturnStatement ReturnStatement()
                                             throws ParseException
Throws:
ParseException

BreakStatement

public static final BreakStatement BreakStatement()
                                           throws ParseException
Throws:
ParseException

ContinueStatement

public static final ContinueStatement ContinueStatement()
                                                 throws ParseException
Throws:
ParseException

Expression

public static final Expression Expression()
                                   throws ParseException
Throws:
ParseException

FunctionCallExpressionList

public static final FunctionCallExpressionList FunctionCallExpressionList()
                                                                   throws ParseException
Throws:
ParseException

FunctionCallExpressionListBody

public static final FunctionCallExpressionListBody FunctionCallExpressionListBody()
                                                                           throws ParseException
Throws:
ParseException

AssignmentExpression

public static final AssignmentExpression AssignmentExpression()
                                                       throws ParseException
Throws:
ParseException

ConditionalExpression

public static final ConditionalExpression ConditionalExpression()
                                                         throws ParseException
Throws:
ParseException

LogicalOrExpression

public static final LogicalOrExpression LogicalOrExpression()
                                                     throws ParseException
Throws:
ParseException

LogicalAndExpression

public static final LogicalAndExpression LogicalAndExpression()
                                                       throws ParseException
Throws:
ParseException

BitwiseOrExpression

public static final BitwiseOrExpression BitwiseOrExpression()
                                                     throws ParseException
Throws:
ParseException

BitwiseXorExpression

public static final BitwiseXorExpression BitwiseXorExpression()
                                                       throws ParseException
Throws:
ParseException

BitwiseAndExpression

public static final BitwiseAndExpression BitwiseAndExpression()
                                                       throws ParseException
Throws:
ParseException

EqualityExpression

public static final EqualityExpression EqualityExpression()
                                                   throws ParseException
Throws:
ParseException

RelationalExpression

public static final RelationalExpression RelationalExpression()
                                                       throws ParseException
Throws:
ParseException

ShiftExpression

public static final ShiftExpression ShiftExpression()
                                             throws ParseException
Throws:
ParseException

AdditiveExpression

public static final AdditiveExpression AdditiveExpression()
                                                   throws ParseException
Throws:
ParseException

MultiplicativeExpression

public static final MultiplicativeExpression MultiplicativeExpression()
                                                               throws ParseException
Throws:
ParseException

UnaryExpression

public static final UnaryExpression UnaryExpression()
                                             throws ParseException
Throws:
ParseException

PostfixExpression

public static final PostfixExpression PostfixExpression()
                                                 throws ParseException
Throws:
ParseException

TypeExpression

public static final TypeExpression TypeExpression()
                                           throws ParseException
Throws:
ParseException

AllocationExpression

public static final AllocationExpression AllocationExpression()
                                                       throws ParseException
Throws:
ParseException

CastExpression

public static final CastExpression CastExpression()
                                           throws ParseException
Throws:
ParseException

PrimaryExpression

public static final PrimaryExpression PrimaryExpression()
                                                 throws ParseException
Throws:
ParseException

PrimaryExpressionNotFunction

public static final PrimaryExpressionNotFunction PrimaryExpressionNotFunction()
                                                                       throws ParseException
Throws:
ParseException

PrimaryExpressionWithTrailingFxnCallExpList

public static final PrimaryExpressionWithTrailingFxnCallExpList PrimaryExpressionWithTrailingFxnCallExpList()
                                                                                                     throws ParseException
Throws:
ParseException

PrimaryPrefix

public static final PrimaryPrefix PrimaryPrefix()
                                         throws ParseException
Throws:
ParseException

PrimaryPrefixNotFunction

public static final PrimaryPrefixNotFunction PrimaryPrefixNotFunction()
                                                               throws ParseException
Throws:
ParseException

ThisPrimaryPrefix

public static final ThisPrimaryPrefix ThisPrimaryPrefix()
                                                 throws ParseException
Throws:
ParseException

CalleePrimaryPrefix

public static final CalleePrimaryPrefix CalleePrimaryPrefix()
                                                     throws ParseException
Throws:
ParseException

IdentifierPrimaryPrefix

public static final IdentifierPrimaryPrefix IdentifierPrimaryPrefix()
                                                             throws ParseException
Throws:
ParseException

ParenPrimaryPrefix

public static final ParenPrimaryPrefix ParenPrimaryPrefix()
                                                   throws ParseException
Throws:
ParseException

FunctionPrimaryPrefix

public static final FunctionPrimaryPrefix FunctionPrimaryPrefix()
                                                         throws ParseException
Throws:
ParseException

ShorthandFunctionPrimaryPrefix

public static final ShorthandFunctionPrimaryPrefix ShorthandFunctionPrimaryPrefix()
                                                                           throws ParseException
Throws:
ParseException

ArrayDeclarationPrimaryPrefix

public static final ArrayDeclarationPrimaryPrefix ArrayDeclarationPrimaryPrefix()
                                                                         throws ParseException
Throws:
ParseException

PrimaryPostfix

public static final PrimaryPostfix PrimaryPostfix()
                                           throws ParseException
Throws:
ParseException

PrimaryPostfixWithTrailingFxnCallExpList

public static final PrimaryPostfixWithTrailingFxnCallExpList PrimaryPostfixWithTrailingFxnCallExpList()
                                                                                               throws ParseException
Throws:
ParseException

FunctionCallPrimaryPostfix

public static final FunctionCallPrimaryPostfix FunctionCallPrimaryPostfix()
                                                                   throws ParseException
Throws:
ParseException

ArraySubscriptPrimaryPostfix

public static final ArraySubscriptPrimaryPostfix ArraySubscriptPrimaryPostfix()
                                                                       throws ParseException
Throws:
ParseException

PropertyIdentifierPrimaryPostfix

public static final PropertyIdentifierPrimaryPostfix PropertyIdentifierPrimaryPostfix()
                                                                               throws ParseException
Throws:
ParseException

Literal

public static final Literal Literal()
                             throws ParseException
Throws:
ParseException

Permissions

public static final Permissions Permissions(boolean staticOk)
                                     throws ParseException
Throws:
ParseException

ReInit

public static void ReInit(java.io.InputStream stream)

ReInit

public static void ReInit(java.io.Reader stream,
                          java.lang.String desc)

ReInit

public void ReInit(OscriptParserTokenManager tm,
                   java.lang.String desc)

getNextToken

public static final Token getNextToken()

getToken

public static final Token getToken(int index)

generateParseException

public static final ParseException generateParseException()

enable_tracing

public static final void enable_tracing()

disable_tracing

public static final void disable_tracing()