public class LuaParser extends Object implements LuaParserConstants
| 限定符和类型 | 字段和说明 |
|---|---|
Token |
jj_nt
Next token.
|
Token |
token
Current token.
|
LuaParserTokenManager |
token_source
Generated Token Manager.
|
AND, BREAK, CHAR, CHARSTRING, COMMENT, DBCOLON, DECIMAL, DEFAULT, DIGIT, DO, ELSE, ELSEIF, END, EOF, EXP, FALSE, FLOAT, FNUM, FOR, FUNCTION, GOTO, HEX, HEXDIGIT, HEXEXP, HEXNUM, IF, IN, IN_COMMENT, IN_LC0, IN_LC1, IN_LC2, IN_LC3, IN_LCN, IN_LS0, IN_LS1, IN_LS2, IN_LS3, IN_LSN, LF, LOCAL, LONGCOMMENT0, LONGCOMMENT1, LONGCOMMENT2, LONGCOMMENT3, LONGCOMMENTN, LONGSTRING0, LONGSTRING1, LONGSTRING2, LONGSTRING3, LONGSTRINGN, NAME, NIL, NOT, NUMBER, OR, QUOTED, REPEAT, RETURN, STRING, THEN, tokenImage, TRUE, UNICODE, UNTIL, WHILE| 构造器和说明 |
|---|
LuaParser(InputStream stream)
Constructor with InputStream.
|
LuaParser(InputStream stream,
String encoding)
Constructor with InputStream and supplied encoding
|
LuaParser(LuaParserTokenManager tm)
Constructor with generated Token Manager.
|
LuaParser(Reader stream)
Constructor.
|
public LuaParserTokenManager token_source
public Token token
public Token jj_nt
public LuaParser(InputStream stream)
public LuaParser(InputStream stream, String encoding)
public LuaParser(Reader stream)
public LuaParser(LuaParserTokenManager tm)
public static void main(String[] args) throws ParseException
ParseExceptionpublic SimpleCharStream getCharStream()
public final Chunk Chunk() throws ParseException
ParseExceptionpublic final Block Block() throws ParseException
ParseExceptionpublic final Stat Stat() throws ParseException
ParseExceptionpublic final Stat IfThenElse() throws ParseException
ParseExceptionpublic final Stat ReturnStat() throws ParseException
ParseExceptionpublic final Stat Label() throws ParseException
ParseExceptionpublic final Stat ExprStat() throws ParseException
ParseExceptionpublic final Stat Assign(Exp.VarExp v0) throws ParseException
ParseExceptionpublic final Exp.VarExp VarExp() throws ParseException
ParseExceptionpublic final FuncName FuncName() throws ParseException
ParseExceptionpublic final Exp.PrimaryExp PrefixExp() throws ParseException
ParseExceptionpublic final Exp.PrimaryExp PrimaryExp() throws ParseException
ParseExceptionpublic final Exp.PrimaryExp PostfixOp(Exp.PrimaryExp lhs) throws ParseException
ParseExceptionpublic final FuncArgs FuncArgs() throws ParseException
ParseExceptionpublic final List<Name> NameList() throws ParseException
ParseExceptionpublic final List<Exp> ExpList() throws ParseException
ParseExceptionpublic final Exp SimpleExp() throws ParseException
ParseExceptionpublic final LuaString Str() throws ParseException
ParseExceptionpublic final Exp Exp() throws ParseException
ParseExceptionpublic final FuncBody FunctionCall() throws ParseException
ParseExceptionpublic final FuncBody FuncBody() throws ParseException
ParseExceptionpublic final ParList ParList() throws ParseException
ParseExceptionpublic final TableConstructor TableConstructor() throws ParseException
ParseExceptionpublic final List<TableField> FieldList() throws ParseException
ParseExceptionpublic final TableField Field() throws ParseException
ParseExceptionpublic final void FieldSep()
throws ParseException
ParseExceptionpublic final int Binop()
throws ParseException
ParseExceptionpublic final int Unop()
throws ParseException
ParseExceptionpublic void ReInit(InputStream stream)
public void ReInit(InputStream stream, String encoding)
public void ReInit(Reader stream)
public void ReInit(LuaParserTokenManager 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 © 2020. All rights reserved.