Class LuaParser
- java.lang.Object
-
- org.antlr.v4.runtime.Recognizer<org.antlr.v4.runtime.Token,org.antlr.v4.runtime.atn.ParserATNSimulator>
-
- org.antlr.v4.runtime.Parser
-
- net.sourceforge.pmd.lang.lua.antlr4.LuaParser
-
public class LuaParser extends org.antlr.v4.runtime.Parser
-
-
Nested Class Summary
-
Field Summary
Fields Modifier and Type Field Description static org.antlr.v4.runtime.atn.ATN
_ATN
protected static org.antlr.v4.runtime.dfa.DFA[]
_decisionToDFA
static String
_serializedATN
protected static org.antlr.v4.runtime.atn.PredictionContextCache
_sharedContextCache
static int
CHARSTRING
static int
COMMENT
static int
FLOAT
static int
HEX
static int
HEX_FLOAT
static int
INT
static int
LINE_COMMENT
static int
LONGSTRING
static int
NAME
static int
NORMALSTRING
static int
RULE_args
static int
RULE_block
static int
RULE_chunk
static int
RULE_exp
static int
RULE_explist
static int
RULE_field
static int
RULE_fieldlist
static int
RULE_fieldsep
static int
RULE_funcbody
static int
RULE_funcname
static int
RULE_functioncall
static int
RULE_functiondef
static int
RULE_label
static int
RULE_nameAndArgs
static int
RULE_namelist
static int
RULE_number
static int
RULE_operatorAddSub
static int
RULE_operatorAnd
static int
RULE_operatorBitwise
static int
RULE_operatorComparison
static int
RULE_operatorMulDivMod
static int
RULE_operatorOr
static int
RULE_operatorPower
static int
RULE_operatorStrcat
static int
RULE_operatorUnary
static int
RULE_parlist
static int
RULE_prefixexp
static int
RULE_retstat
static int
RULE_stat
static int
RULE_string
static int
RULE_tableconstructor
static int
RULE_var
static int
RULE_varlist
static int
RULE_varOrExp
static int
RULE_varSuffix
static String[]
ruleNames
static int
SHEBANG
static int
T__0
static int
T__1
static int
T__10
static int
T__11
static int
T__12
static int
T__13
static int
T__14
static int
T__15
static int
T__16
static int
T__17
static int
T__18
static int
T__19
static int
T__2
static int
T__20
static int
T__21
static int
T__22
static int
T__23
static int
T__24
static int
T__25
static int
T__26
static int
T__27
static int
T__28
static int
T__29
static int
T__3
static int
T__30
static int
T__31
static int
T__32
static int
T__33
static int
T__34
static int
T__35
static int
T__36
static int
T__37
static int
T__38
static int
T__39
static int
T__4
static int
T__40
static int
T__41
static int
T__42
static int
T__43
static int
T__44
static int
T__45
static int
T__46
static int
T__47
static int
T__48
static int
T__49
static int
T__5
static int
T__50
static int
T__51
static int
T__52
static int
T__53
static int
T__54
static int
T__6
static int
T__7
static int
T__8
static int
T__9
static String[]
tokenNames
Deprecated.UseVOCABULARY
instead.static org.antlr.v4.runtime.Vocabulary
VOCABULARY
static int
WS
-
Constructor Summary
Constructors Constructor Description LuaParser(org.antlr.v4.runtime.TokenStream input)
-
Method Summary
-
Methods inherited from class org.antlr.v4.runtime.Parser
addContextToParseTree, addParseListener, compileParseTreePattern, compileParseTreePattern, consume, createErrorNode, createTerminalNode, dumpDFA, enterOuterAlt, enterRecursionRule, enterRecursionRule, enterRule, exitRule, getATNWithBypassAlts, getBuildParseTree, getContext, getCurrentToken, getDFAStrings, getErrorHandler, getExpectedTokens, getExpectedTokensWithinCurrentRule, getInputStream, getInvokingContext, getNumberOfSyntaxErrors, getParseInfo, getParseListeners, getPrecedence, getRuleContext, getRuleIndex, getRuleInvocationStack, getRuleInvocationStack, getSourceName, getTokenFactory, getTokenStream, getTrimParseTree, inContext, isExpectedToken, isMatchedEOF, isTrace, match, matchWildcard, notifyErrorListeners, notifyErrorListeners, precpred, pushNewRecursionContext, removeParseListener, removeParseListeners, reset, setBuildParseTree, setContext, setErrorHandler, setInputStream, setProfile, setTokenFactory, setTokenStream, setTrace, setTrimParseTree, triggerEnterRuleEvent, triggerExitRuleEvent, unrollRecursionContexts
-
Methods inherited from class org.antlr.v4.runtime.Recognizer
action, addErrorListener, getErrorHeader, getErrorListenerDispatch, getErrorListeners, getInterpreter, getRuleIndexMap, getState, getTokenErrorDisplay, getTokenType, getTokenTypeMap, removeErrorListener, removeErrorListeners, setInterpreter, setState
-
-
-
-
Field Detail
-
_decisionToDFA
protected static final org.antlr.v4.runtime.dfa.DFA[] _decisionToDFA
-
_sharedContextCache
protected static final org.antlr.v4.runtime.atn.PredictionContextCache _sharedContextCache
-
T__0
public static final int T__0
- See Also:
- Constant Field Values
-
T__1
public static final int T__1
- See Also:
- Constant Field Values
-
T__2
public static final int T__2
- See Also:
- Constant Field Values
-
T__3
public static final int T__3
- See Also:
- Constant Field Values
-
T__4
public static final int T__4
- See Also:
- Constant Field Values
-
T__5
public static final int T__5
- See Also:
- Constant Field Values
-
T__6
public static final int T__6
- See Also:
- Constant Field Values
-
T__7
public static final int T__7
- See Also:
- Constant Field Values
-
T__8
public static final int T__8
- See Also:
- Constant Field Values
-
T__9
public static final int T__9
- See Also:
- Constant Field Values
-
T__10
public static final int T__10
- See Also:
- Constant Field Values
-
T__11
public static final int T__11
- See Also:
- Constant Field Values
-
T__12
public static final int T__12
- See Also:
- Constant Field Values
-
T__13
public static final int T__13
- See Also:
- Constant Field Values
-
T__14
public static final int T__14
- See Also:
- Constant Field Values
-
T__15
public static final int T__15
- See Also:
- Constant Field Values
-
T__16
public static final int T__16
- See Also:
- Constant Field Values
-
T__17
public static final int T__17
- See Also:
- Constant Field Values
-
T__18
public static final int T__18
- See Also:
- Constant Field Values
-
T__19
public static final int T__19
- See Also:
- Constant Field Values
-
T__20
public static final int T__20
- See Also:
- Constant Field Values
-
T__21
public static final int T__21
- See Also:
- Constant Field Values
-
T__22
public static final int T__22
- See Also:
- Constant Field Values
-
T__23
public static final int T__23
- See Also:
- Constant Field Values
-
T__24
public static final int T__24
- See Also:
- Constant Field Values
-
T__25
public static final int T__25
- See Also:
- Constant Field Values
-
T__26
public static final int T__26
- See Also:
- Constant Field Values
-
T__27
public static final int T__27
- See Also:
- Constant Field Values
-
T__28
public static final int T__28
- See Also:
- Constant Field Values
-
T__29
public static final int T__29
- See Also:
- Constant Field Values
-
T__30
public static final int T__30
- See Also:
- Constant Field Values
-
T__31
public static final int T__31
- See Also:
- Constant Field Values
-
T__32
public static final int T__32
- See Also:
- Constant Field Values
-
T__33
public static final int T__33
- See Also:
- Constant Field Values
-
T__34
public static final int T__34
- See Also:
- Constant Field Values
-
T__35
public static final int T__35
- See Also:
- Constant Field Values
-
T__36
public static final int T__36
- See Also:
- Constant Field Values
-
T__37
public static final int T__37
- See Also:
- Constant Field Values
-
T__38
public static final int T__38
- See Also:
- Constant Field Values
-
T__39
public static final int T__39
- See Also:
- Constant Field Values
-
T__40
public static final int T__40
- See Also:
- Constant Field Values
-
T__41
public static final int T__41
- See Also:
- Constant Field Values
-
T__42
public static final int T__42
- See Also:
- Constant Field Values
-
T__43
public static final int T__43
- See Also:
- Constant Field Values
-
T__44
public static final int T__44
- See Also:
- Constant Field Values
-
T__45
public static final int T__45
- See Also:
- Constant Field Values
-
T__46
public static final int T__46
- See Also:
- Constant Field Values
-
T__47
public static final int T__47
- See Also:
- Constant Field Values
-
T__48
public static final int T__48
- See Also:
- Constant Field Values
-
T__49
public static final int T__49
- See Also:
- Constant Field Values
-
T__50
public static final int T__50
- See Also:
- Constant Field Values
-
T__51
public static final int T__51
- See Also:
- Constant Field Values
-
T__52
public static final int T__52
- See Also:
- Constant Field Values
-
T__53
public static final int T__53
- See Also:
- Constant Field Values
-
T__54
public static final int T__54
- See Also:
- Constant Field Values
-
NAME
public static final int NAME
- See Also:
- Constant Field Values
-
NORMALSTRING
public static final int NORMALSTRING
- See Also:
- Constant Field Values
-
CHARSTRING
public static final int CHARSTRING
- See Also:
- Constant Field Values
-
LONGSTRING
public static final int LONGSTRING
- See Also:
- Constant Field Values
-
INT
public static final int INT
- See Also:
- Constant Field Values
-
HEX
public static final int HEX
- See Also:
- Constant Field Values
-
FLOAT
public static final int FLOAT
- See Also:
- Constant Field Values
-
HEX_FLOAT
public static final int HEX_FLOAT
- See Also:
- Constant Field Values
-
COMMENT
public static final int COMMENT
- See Also:
- Constant Field Values
-
LINE_COMMENT
public static final int LINE_COMMENT
- See Also:
- Constant Field Values
-
WS
public static final int WS
- See Also:
- Constant Field Values
-
SHEBANG
public static final int SHEBANG
- See Also:
- Constant Field Values
-
RULE_chunk
public static final int RULE_chunk
- See Also:
- Constant Field Values
-
RULE_block
public static final int RULE_block
- See Also:
- Constant Field Values
-
RULE_stat
public static final int RULE_stat
- See Also:
- Constant Field Values
-
RULE_retstat
public static final int RULE_retstat
- See Also:
- Constant Field Values
-
RULE_label
public static final int RULE_label
- See Also:
- Constant Field Values
-
RULE_funcname
public static final int RULE_funcname
- See Also:
- Constant Field Values
-
RULE_varlist
public static final int RULE_varlist
- See Also:
- Constant Field Values
-
RULE_namelist
public static final int RULE_namelist
- See Also:
- Constant Field Values
-
RULE_explist
public static final int RULE_explist
- See Also:
- Constant Field Values
-
RULE_exp
public static final int RULE_exp
- See Also:
- Constant Field Values
-
RULE_prefixexp
public static final int RULE_prefixexp
- See Also:
- Constant Field Values
-
RULE_functioncall
public static final int RULE_functioncall
- See Also:
- Constant Field Values
-
RULE_varOrExp
public static final int RULE_varOrExp
- See Also:
- Constant Field Values
-
RULE_var
public static final int RULE_var
- See Also:
- Constant Field Values
-
RULE_varSuffix
public static final int RULE_varSuffix
- See Also:
- Constant Field Values
-
RULE_nameAndArgs
public static final int RULE_nameAndArgs
- See Also:
- Constant Field Values
-
RULE_args
public static final int RULE_args
- See Also:
- Constant Field Values
-
RULE_functiondef
public static final int RULE_functiondef
- See Also:
- Constant Field Values
-
RULE_funcbody
public static final int RULE_funcbody
- See Also:
- Constant Field Values
-
RULE_parlist
public static final int RULE_parlist
- See Also:
- Constant Field Values
-
RULE_tableconstructor
public static final int RULE_tableconstructor
- See Also:
- Constant Field Values
-
RULE_fieldlist
public static final int RULE_fieldlist
- See Also:
- Constant Field Values
-
RULE_field
public static final int RULE_field
- See Also:
- Constant Field Values
-
RULE_fieldsep
public static final int RULE_fieldsep
- See Also:
- Constant Field Values
-
RULE_operatorOr
public static final int RULE_operatorOr
- See Also:
- Constant Field Values
-
RULE_operatorAnd
public static final int RULE_operatorAnd
- See Also:
- Constant Field Values
-
RULE_operatorComparison
public static final int RULE_operatorComparison
- See Also:
- Constant Field Values
-
RULE_operatorStrcat
public static final int RULE_operatorStrcat
- See Also:
- Constant Field Values
-
RULE_operatorAddSub
public static final int RULE_operatorAddSub
- See Also:
- Constant Field Values
-
RULE_operatorMulDivMod
public static final int RULE_operatorMulDivMod
- See Also:
- Constant Field Values
-
RULE_operatorBitwise
public static final int RULE_operatorBitwise
- See Also:
- Constant Field Values
-
RULE_operatorUnary
public static final int RULE_operatorUnary
- See Also:
- Constant Field Values
-
RULE_operatorPower
public static final int RULE_operatorPower
- See Also:
- Constant Field Values
-
RULE_number
public static final int RULE_number
- See Also:
- Constant Field Values
-
RULE_string
public static final int RULE_string
- See Also:
- Constant Field Values
-
ruleNames
public static final String[] ruleNames
-
VOCABULARY
public static final org.antlr.v4.runtime.Vocabulary VOCABULARY
-
tokenNames
@Deprecated public static final String[] tokenNames
Deprecated.UseVOCABULARY
instead.
-
_serializedATN
public static final String _serializedATN
- See Also:
- Constant Field Values
-
_ATN
public static final org.antlr.v4.runtime.atn.ATN _ATN
-
-
Method Detail
-
getTokenNames
@Deprecated public String[] getTokenNames()
Deprecated.- Specified by:
getTokenNames
in classorg.antlr.v4.runtime.Recognizer<org.antlr.v4.runtime.Token,org.antlr.v4.runtime.atn.ParserATNSimulator>
-
getVocabulary
public org.antlr.v4.runtime.Vocabulary getVocabulary()
- Overrides:
getVocabulary
in classorg.antlr.v4.runtime.Recognizer<org.antlr.v4.runtime.Token,org.antlr.v4.runtime.atn.ParserATNSimulator>
-
getGrammarFileName
public String getGrammarFileName()
- Specified by:
getGrammarFileName
in classorg.antlr.v4.runtime.Recognizer<org.antlr.v4.runtime.Token,org.antlr.v4.runtime.atn.ParserATNSimulator>
-
getRuleNames
public String[] getRuleNames()
- Specified by:
getRuleNames
in classorg.antlr.v4.runtime.Recognizer<org.antlr.v4.runtime.Token,org.antlr.v4.runtime.atn.ParserATNSimulator>
-
getSerializedATN
public String getSerializedATN()
- Overrides:
getSerializedATN
in classorg.antlr.v4.runtime.Recognizer<org.antlr.v4.runtime.Token,org.antlr.v4.runtime.atn.ParserATNSimulator>
-
getATN
public org.antlr.v4.runtime.atn.ATN getATN()
- Specified by:
getATN
in classorg.antlr.v4.runtime.Recognizer<org.antlr.v4.runtime.Token,org.antlr.v4.runtime.atn.ParserATNSimulator>
-
chunk
public final LuaParser.ChunkContext chunk() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
block
public final LuaParser.BlockContext block() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
stat
public final LuaParser.StatContext stat() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
retstat
public final LuaParser.RetstatContext retstat() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
label
public final LuaParser.LabelContext label() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
funcname
public final LuaParser.FuncnameContext funcname() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
varlist
public final LuaParser.VarlistContext varlist() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
namelist
public final LuaParser.NamelistContext namelist() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
explist
public final LuaParser.ExplistContext explist() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
exp
public final LuaParser.ExpContext exp() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
prefixexp
public final LuaParser.PrefixexpContext prefixexp() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
functioncall
public final LuaParser.FunctioncallContext functioncall() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
varOrExp
public final LuaParser.VarOrExpContext varOrExp() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
var
public final LuaParser.VarContext var() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
varSuffix
public final LuaParser.VarSuffixContext varSuffix() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
nameAndArgs
public final LuaParser.NameAndArgsContext nameAndArgs() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
args
public final LuaParser.ArgsContext args() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
functiondef
public final LuaParser.FunctiondefContext functiondef() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
funcbody
public final LuaParser.FuncbodyContext funcbody() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
parlist
public final LuaParser.ParlistContext parlist() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
tableconstructor
public final LuaParser.TableconstructorContext tableconstructor() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
fieldlist
public final LuaParser.FieldlistContext fieldlist() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
field
public final LuaParser.FieldContext field() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
fieldsep
public final LuaParser.FieldsepContext fieldsep() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
operatorOr
public final LuaParser.OperatorOrContext operatorOr() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
operatorAnd
public final LuaParser.OperatorAndContext operatorAnd() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
operatorComparison
public final LuaParser.OperatorComparisonContext operatorComparison() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
operatorStrcat
public final LuaParser.OperatorStrcatContext operatorStrcat() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
operatorAddSub
public final LuaParser.OperatorAddSubContext operatorAddSub() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
operatorMulDivMod
public final LuaParser.OperatorMulDivModContext operatorMulDivMod() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
operatorBitwise
public final LuaParser.OperatorBitwiseContext operatorBitwise() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
operatorUnary
public final LuaParser.OperatorUnaryContext operatorUnary() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
operatorPower
public final LuaParser.OperatorPowerContext operatorPower() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
number
public final LuaParser.NumberContext number() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
string
public final LuaParser.StringContext string() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
sempred
public boolean sempred(org.antlr.v4.runtime.RuleContext _localctx, int ruleIndex, int predIndex)
- Overrides:
sempred
in classorg.antlr.v4.runtime.Recognizer<org.antlr.v4.runtime.Token,org.antlr.v4.runtime.atn.ParserATNSimulator>
-
-