public class Parser extends Object implements ParserConstants
| Modifier and Type | Field and Description |
|---|---|
Token |
jj_nt
Next token.
|
Token |
token
Current token.
|
ParserTokenManager |
token_source
Generated Token Manager.
|
AND, ASSIGN, BAND, BNOT, BOR, BREAK, CHAR, COLON, COMMA, CURLY_CLOSE, CURLY_OPEN, DBL_DOT, DEC_NUMERAL, DECCHAR, DECDIGIT, DECEXP, DEFAULT, DIV, DO, DOT, DOUBLE_COLON, DOUBLE_QUOTED_STRING, ELSE, ELSEIF, END, EOF, EQ, ESCAPED, FALSE, FOR, FUNCTION, GE, GOTO, GT, HEX, HEX_NUMERAL, HEXCHAR, HEXDIGIT, HEXEXP, IDIV, IF, IN, IN_LC_BODY, IN_LC_END, IN_LINE_COMMENT, IN_LL_BODY, IN_LL_END, LC_BODY_BODY, LC_END_BODY, LC_END_NOTAIL, LC_END_TAIL, LE, LEN, LINE_COMMENT, LITERAL_STRING, LL_BEGIN, LL_BODY_BODY, LL_END_BODY, LL_END_NOTAIL, LL_TAIL, LOCAL, LONG_COMMENT, LT, MINUS, MOD, MUL, NAME, NEQ, NEWLINE, NIL, NOT, NUMERAL, OR, PAREN_CLOSE, PAREN_OPEN, PLUS, POW, REPEAT, RETURN, SEMICOLON, SHL, SHR, SIGN, SINGLE_QUOTED_STRING, SKIP_WHITESPACE, SQUARE_CLOSE, SQUARE_OPEN, THEN, tokenImage, TRUE, UNICODE, UNTIL, VARARGS, WHILE| Constructor and Description |
|---|
Parser(InputStream stream)
Constructor with InputStream.
|
Parser(InputStream stream,
String encoding)
Constructor with InputStream and supplied encoding
|
Parser(ParserTokenManager tm)
Constructor with generated Token Manager.
|
Parser(Reader stream)
Constructor.
|
public ParserTokenManager token_source
public Token token
public Token jj_nt
public Parser(InputStream stream)
public Parser(InputStream stream, String encoding)
public Parser(Reader stream)
public Parser(ParserTokenManager tm)
public final org.classdump.luna.parser.SourceElement<Name> SrcName() throws ParseException
ParseExceptionpublic final Name Name() throws ParseException
ParseExceptionpublic final org.classdump.luna.parser.SourceElement<StringLiteral> Str() throws ParseException
ParseExceptionpublic final org.classdump.luna.parser.SourceElement<Numeral> Num() throws ParseException
ParseExceptionpublic final void Eof()
throws ParseException
ParseExceptionpublic final Chunk Chunk() throws ParseException
ParseExceptionpublic final Block Block() throws ParseException
ParseExceptionpublic final List<BodyStatement> BodyStatement() throws ParseException
ParseExceptionpublic final Expr Expr() throws ParseException
ParseExceptionpublic final Expr SimpleExpr() throws ParseException
ParseExceptionpublic final Expr PrefixExpr() throws ParseException
ParseExceptionpublic final Expr VarExpr() throws ParseException
ParseExceptionpublic final org.classdump.luna.parser.PostfixOp __PostfixOp() throws ParseException
ParseExceptionpublic final BodyStatement AssignOrCall() throws ParseException
ParseExceptionpublic final org.classdump.luna.parser.AssignRest AssignOrCallRest() throws ParseException
ParseExceptionpublic final LValueExpr LValue() throws ParseException
ParseExceptionpublic final org.classdump.luna.parser.SourceElement<List<Expr>> Args() throws ParseException
ParseExceptionpublic final IfStatement IfStatement() throws ParseException
ParseExceptionpublic final ReturnStatement ReturnStatement() throws ParseException
ParseExceptionpublic final org.classdump.luna.parser.PostfixOp.FieldAccess __FieldAccessOp() throws ParseException
ParseExceptionpublic final org.classdump.luna.parser.PostfixOp.Invoke __InvokeOp() throws ParseException
ParseExceptionpublic final List<org.classdump.luna.parser.SourceElement<Name>> NameList() throws ParseException
ParseExceptionpublic final List<Expr> ExprList() throws ParseException
ParseExceptionpublic final FunctionDefExpr FunctionBody() throws ParseException
ParseExceptionpublic final FunctionDefExpr.Params FunctionParams() throws ParseException
ParseExceptionpublic final TableConstructorExpr TableConstructor() throws ParseException
ParseExceptionpublic final void FieldSeparator()
throws ParseException
ParseExceptionpublic final List<TableConstructorExpr.FieldInitialiser> FieldInitialiserList() throws ParseException
ParseExceptionpublic final TableConstructorExpr.FieldInitialiser FieldInitialiser() throws ParseException
ParseExceptionpublic final org.classdump.luna.parser.SourceElement<Operator.Binary> BinOp() throws ParseException
ParseExceptionpublic final org.classdump.luna.parser.SourceElement<Operator.Unary> UnOp() throws ParseException
ParseExceptionpublic void ReInit(InputStream stream)
public void ReInit(InputStream stream, String encoding)
public void ReInit(Reader stream)
public void ReInit(ParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
Copyright © 2016–2017. All rights reserved.