pnuts.lang
Class PnutsParser
java.lang.Object
pnuts.lang.PnutsParser
- All Implemented Interfaces:
- PnutsParserConstants, PnutsParserTreeConstants
public class PnutsParser
- extends java.lang.Object
- implements PnutsParserTreeConstants, PnutsParserConstants
Fields inherited from interface pnuts.lang.PnutsParserTreeConstants |
JJTADDNODE, JJTANDNODE, JJTAPPLICATIONNODE, JJTARRAYNODE, JJTARRAYTYPE, JJTASSIGNMENT, JJTASSIGNMENTAA, JJTASSIGNMENTDA, JJTASSIGNMENTEA, JJTASSIGNMENTLA, JJTASSIGNMENTMA, JJTASSIGNMENTOA, JJTASSIGNMENTPA, JJTASSIGNMENTRA, JJTASSIGNMENTRAA, JJTASSIGNMENTSA, JJTASSIGNMENTTA, JJTBLOCK, JJTBREAK, JJTCASTEXPRESSION, JJTCATCHBLOCK, JJTCATCHNODE, JJTCHARACTERNODE, JJTCLASS, JJTCLASSDEF, JJTCLASSDEFBODY, JJTCLASSEXPR, JJTCLASSNAME, JJTCLASSSCRIPT, JJTCONTINUE, JJTDIVIDENODE, JJTDOSTATEMENT, JJTELSEIFNODE, JJTELSENODE, JJTEQUALNODE, JJTEXPRESSIONLIST, JJTEXTENDS, JJTFALSENODE, JJTFIELDDEF, JJTFINALLYBLOCK, JJTFINALLYNODE, JJTFLOATINGNODE, JJTFOREACHSTATEMENT, JJTFORENUM, JJTFORINIT, JJTFORSTATEMENT, JJTFORUPDATE, JJTFUNCTIONSTATEMENT, JJTGENODE, JJTGLOBAL, JJTGTNODE, JJTIDNODE, JJTIFSTATEMENT, JJTIMPLEMENTS, JJTIMPORT, JJTINDEXNODE, JJTINSTANCEOFEXPRESSION, JJTINTEGERNODE, JJTLENODE, JJTLISTELEMENTS, JJTLOCAL, JJTLOGANDNODE, JJTLOGNOTNODE, JJTLOGORNODE, JJTLTNODE, JJTMAPELEMENT, JJTMAPELEMENTS, JJTMEMBERNODE, JJTMETHODDEF, JJTMETHODNODE, JJTMODNODE, JJTMULTIASSIGNLHS, JJTMULTNODE, JJTNEGATIVENODE, JJTNEW, jjtNodeName, JJTNOTEQNODE, JJTNOTNODE, JJTNULLNODE, JJTORNODE, JJTPACKAGE, JJTPACKAGESTATEMENT, JJTPARAM, JJTPARAMLIST, JJTPOSTDECRNODE, JJTPOSTINCRNODE, JJTPREDECRNODE, JJTPREINCRNODE, JJTRANGENODE, JJTRETURN, JJTSHIFTARITHMETICNODE, JJTSHIFTLEFTNODE, JJTSHIFTRIGHTNODE, JJTSTART, JJTSTARTSET, JJTSTATICMEMBERNODE, JJTSTATICMETHODNODE, JJTSTRINGNODE, JJTSUBTRACTNODE, JJTSWITCHBLOCK, JJTSWITCHLABEL, JJTSWITCHSTATEMENT, JJTTERNARYNODE, JJTTHROWNODE, JJTTRUENODE, JJTTRYSTATEMENT, JJTTYPEDPARAM, JJTTYPEDPARAMLIST, JJTVOID, JJTWHILESTATEMENT, JJTXORNODE, JJTYIELD |
Fields inherited from interface pnuts.lang.PnutsParserConstants |
AA, ASSIGN, BACKQUOTE, BANG, BIT_AND, BIT_OR, BREAK, CASE, CATCH, CHARACTER_LITERAL, CLASS, CLOSURE, COLON, COLON2, COMMA, COMMAND_HEADER, CONTINUE, DA, DECIMAL_LITERAL, DEFAULT, DFLT, DIGIT, DO, DOT, DOT2, DOUBLEQUOTE, EA, ELSE, EOF, EOL, EQ, EXPONENT, EXTENDS, FALSE, FINALLY, FLOATING_POINT_LITERAL, FOR, FOREACH, FUNCTION, GE, GT, HEX_LITERAL, HEX_LITERAL2, HOOK, IDENTIFIER, IF, IMPLEMENTS, IMPORT, INSTANCEOF, INTEGER_LITERAL, LA, LBRACE, LBRACKET, LE, LETTER, LPAREN, LSHIFT, LT, MA, MAPENTRY, MINUS, MULTI_LINE_COMMENT, NE, NEW, NO_MATCH, NULL, OA, PA, PACKAGE, PLUS, RA, RAA, RBRACE, RBRACKET, REM, RETURN, RPAREN, RSIGNEDSHIFT, RUNSIGNEDSHIFT, SA, SC_AND, SC_OR, SEMICOLON, SINGLE_LINE_COMMENT, SLASH, STAR, STATIC, STRING_LITERAL, STRING_LITERAL2, SWITCH, TA, THROW, TILDE, tokenImage, TRUE, TRY, UNICODE_ESCAPE, WHILE, XOR, YIELD |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
jjtree
protected pnuts.lang.JJTPnutsParserState jjtree
token_source
public PnutsParserTokenManager token_source
token
public Token token
jj_nt
public Token jj_nt
lookingAhead
public boolean lookingAhead
PnutsParser
public PnutsParser(java.io.InputStream stream)
PnutsParser
public PnutsParser(java.io.Reader stream)
PnutsParser
public PnutsParser(PnutsParserTokenManager tm)
Eol
public final void Eol()
throws ParseException
- Throws:
ParseException
StartSet
public final SimpleNode StartSet(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
Start
public final SimpleNode Start(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
ExpressionList
public final void ExpressionList(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
MultiAssignLHS
public final void MultiAssignLHS(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
Expression
public final void Expression(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
ArgumentExpression
public final void ArgumentExpression(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
PrimaryExpression
public final void PrimaryExpression(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
LHS
public final void LHS(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
IdNode
public final void IdNode()
throws ParseException
- Throws:
ParseException
Closure
public final void Closure(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
PrimaryPrefix
public final void PrimaryPrefix(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
List
public final void List(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
ListElements
public final void ListElements(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
MapElements
public final void MapElements(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
MapElement
public final void MapElement(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
ClassExpr
public final void ClassExpr(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
Class
public final void Class()
throws ParseException
- Throws:
ParseException
ClassScript
public final SimpleNode ClassScript(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
ClassDef
public final void ClassDef(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
New
public final void New(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
ClassDefBody
public final void ClassDefBody(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
FieldDef
public final void FieldDef(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
MethodDef
public final void MethodDef(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
ArraySuffix
public final void ArraySuffix(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
ArrayType
public final void ArrayType()
throws ParseException
- Throws:
ParseException
Type
public final void Type(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
ClassName
public final void ClassName()
throws ParseException
- Throws:
ParseException
Package
public final void Package()
throws ParseException
- Throws:
ParseException
MethodNode
public final void MethodNode(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
StaticMethodNode
public final void StaticMethodNode(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
MemberNode
public final void MemberNode()
throws ParseException
- Throws:
ParseException
StaticMemberNode
public final void StaticMemberNode()
throws ParseException
- Throws:
ParseException
ApplicationNode
public final void ApplicationNode(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
PrimarySuffix
public final void PrimarySuffix(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
Literal
public final void Literal()
throws ParseException
- Throws:
ParseException
BooleanLiteral
public final void BooleanLiteral()
throws ParseException
- Throws:
ParseException
NullLiteral
public final void NullLiteral()
throws ParseException
- Throws:
ParseException
Assignment
public final void Assignment(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
ConditionalExpression
public final void ConditionalExpression(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
ConditionalOrExpression
public final void ConditionalOrExpression(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
ConditionalAndExpression
public final void ConditionalAndExpression(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
InclusiveOrExpression
public final void InclusiveOrExpression(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
ExclusiveOrExpression
public final void ExclusiveOrExpression(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
AndExpression
public final void AndExpression(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
EqualityExpression
public final void EqualityExpression(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
InstanceofExpression
public final void InstanceofExpression(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
RelationalExpression
public final void RelationalExpression(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
ShiftExpression
public final void ShiftExpression(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
AdditiveExpression
public final void AdditiveExpression(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
MultiplicativeExpression
public final void MultiplicativeExpression(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
UnaryExpression
public final void UnaryExpression(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
UnaryExpressionNotPlusMinus
public final void UnaryExpressionNotPlusMinus(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
CastLookAhead
public final void CastLookAhead()
throws ParseException
- Throws:
ParseException
FirstSet
public final void FirstSet()
throws ParseException
- Throws:
ParseException
FirstSet2
public final void FirstSet2()
throws ParseException
- Throws:
ParseException
CastExpression
public final void CastExpression(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
PostOpe
public final void PostOpe(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
StatementExpression
public final void StatementExpression(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
Break
public final void Break(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
Continue
public final void Continue()
throws ParseException
- Throws:
ParseException
Return
public final void Return(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
Yield
public final void Yield(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
PackageStatement
public final void PackageStatement(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
Import
public final void Import(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
Block0
public final void Block0(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
Block
public final void Block(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
Block2
public final void Block2(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
IfStatement
public final void IfStatement(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
ElseIfNode
public final void ElseIfNode(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
ElseNode
public final void ElseNode(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
WhileStatement
public final void WhileStatement(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
TryStatement
public final void TryStatement(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
CatchBlock
public final void CatchBlock(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
CatchNode
public final void CatchNode(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
FinallyNode
public final void FinallyNode(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
ThrowNode
public final void ThrowNode(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
FinallyBlock
public final void FinallyBlock(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
DoStatement
public final void DoStatement(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
ForStatement
public final void ForStatement(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
ForEnum
public final void ForEnum(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
ForInit
public final void ForInit(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
ForUpdate
public final void ForUpdate(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
Local
public final void Local(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
ForeachStatement
public final void ForeachStatement(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
SwitchStatement
public final void SwitchStatement(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
SwitchBlock
public final void SwitchBlock(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
SwitchLabel
public final void SwitchLabel(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
FunctionStatement
public final SimpleNode FunctionStatement(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
ParamList
public final void ParamList(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
Param
public final void Param()
throws ParseException
- Throws:
ParseException
TypedParam
public final void TypedParam(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
TypedParamList
public final void TypedParamList(ParseEnvironment env)
throws ParseException
- Throws:
ParseException
ReInit
public void ReInit(java.io.InputStream stream)
ReInit
public void ReInit(java.io.Reader stream)
ReInit
public void ReInit(PnutsParserTokenManager tm)
getNextToken
public final Token getNextToken()
getToken
public final Token getToken(int index)
generateParseException
public ParseException generateParseException()
enable_tracing
public final void enable_tracing()
disable_tracing
public final void disable_tracing()