Package io.dialob.rule.parser
Class DialobRuleParser
- java.lang.Object
-
- org.antlr.v4.runtime.Recognizer<org.antlr.v4.runtime.Token,org.antlr.v4.runtime.atn.ParserATNSimulator>
-
- org.antlr.v4.runtime.Parser
-
- io.dialob.rule.parser.DialobRuleParser
-
public class DialobRuleParser extends org.antlr.v4.runtime.Parser
-
-
Nested Class Summary
-
Field Summary
Fields Modifier and Type Field Description static org.antlr.v4.runtime.atn.ATN_ATNprotected static org.antlr.v4.runtime.dfa.DFA[]_decisionToDFAstatic String_serializedATNprotected static org.antlr.v4.runtime.atn.PredictionContextCache_sharedContextCachestatic intANDstatic intCOMMAstatic intDAYstatic intDAYSstatic intDIVstatic intEQstatic intFALSEstatic intGEstatic intGTstatic intHOURstatic intHOURSstatic intIDstatic intINstatic intINTEGERstatic intISstatic intLEstatic intLINE_COMMENTstatic intLPstatic intLTstatic intMATCHESstatic intMINUSstatic intMINUTEstatic intMINUTESstatic intMONTHstatic intMONTHSstatic intMULstatic intNEstatic intNOTstatic intOFstatic intORstatic intPERCENTstatic intPLUSstatic intPOINTstatic intQUOTED_STRINGstatic intREAL_NUMBERstatic intRPstatic intRULE_arithExprRulestatic intRULE_compileUnitstatic intRULE_constExprRulestatic intRULE_exprstatic intRULE_idExprRulestatic intRULE_isExprRulestatic intRULE_listExprstatic intRULE_reducerExprRulestatic String[]ruleNamesstatic intSECONDstatic intSECONDSstatic intT__0static intT__1static intT__2static intT__3static String[]tokenNamesDeprecated.UseVOCABULARYinstead.static intTRUEstatic org.antlr.v4.runtime.VocabularyVOCABULARYstatic intWEEKstatic intWEEKSstatic intWSstatic intYEARstatic intYEARS
-
Constructor Summary
Constructors Constructor Description DialobRuleParser(org.antlr.v4.runtime.TokenStream input)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description DialobRuleParser.ArithExprRuleContextarithExprRule()DialobRuleParser.CompileUnitContextcompileUnit()DialobRuleParser.ConstExprRuleContextconstExprRule()DialobRuleParser.ExprContextexpr()org.antlr.v4.runtime.atn.ATNgetATN()StringgetGrammarFileName()String[]getRuleNames()StringgetSerializedATN()String[]getTokenNames()Deprecated.org.antlr.v4.runtime.VocabularygetVocabulary()DialobRuleParser.IdExprRuleContextidExprRule()DialobRuleParser.IsExprRuleContextisExprRule()DialobRuleParser.ListExprContextlistExpr()DialobRuleParser.ReducerExprRuleContextreducerExprRule()booleansempred(org.antlr.v4.runtime.RuleContext _localctx, int ruleIndex, int predIndex)-
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
-
MATCHES
public static final int MATCHES
- See Also:
- Constant Field Values
-
IN
public static final int IN
- See Also:
- Constant Field Values
-
TRUE
public static final int TRUE
- See Also:
- Constant Field Values
-
FALSE
public static final int FALSE
- See Also:
- Constant Field Values
-
AND
public static final int AND
- See Also:
- Constant Field Values
-
OR
public static final int OR
- See Also:
- Constant Field Values
-
NOT
public static final int NOT
- See Also:
- Constant Field Values
-
IS
public static final int IS
- See Also:
- Constant Field Values
-
OF
public static final int OF
- See Also:
- Constant Field Values
-
SECONDS
public static final int SECONDS
- See Also:
- Constant Field Values
-
SECOND
public static final int SECOND
- See Also:
- Constant Field Values
-
MINUTES
public static final int MINUTES
- See Also:
- Constant Field Values
-
MINUTE
public static final int MINUTE
- See Also:
- Constant Field Values
-
HOURS
public static final int HOURS
- See Also:
- Constant Field Values
-
HOUR
public static final int HOUR
- See Also:
- Constant Field Values
-
DAYS
public static final int DAYS
- See Also:
- Constant Field Values
-
DAY
public static final int DAY
- See Also:
- Constant Field Values
-
WEEKS
public static final int WEEKS
- See Also:
- Constant Field Values
-
WEEK
public static final int WEEK
- See Also:
- Constant Field Values
-
MONTHS
public static final int MONTHS
- See Also:
- Constant Field Values
-
MONTH
public static final int MONTH
- See Also:
- Constant Field Values
-
YEARS
public static final int YEARS
- See Also:
- Constant Field Values
-
YEAR
public static final int YEAR
- See Also:
- Constant Field Values
-
PERCENT
public static final int PERCENT
- See Also:
- Constant Field Values
-
QUOTED_STRING
public static final int QUOTED_STRING
- See Also:
- Constant Field Values
-
ID
public static final int ID
- See Also:
- Constant Field Values
-
LP
public static final int LP
- See Also:
- Constant Field Values
-
RP
public static final int RP
- See Also:
- Constant Field Values
-
COMMA
public static final int COMMA
- See Also:
- Constant Field Values
-
NE
public static final int NE
- See Also:
- Constant Field Values
-
GE
public static final int GE
- See Also:
- Constant Field Values
-
LE
public static final int LE
- See Also:
- Constant Field Values
-
GT
public static final int GT
- See Also:
- Constant Field Values
-
LT
public static final int LT
- See Also:
- Constant Field Values
-
EQ
public static final int EQ
- See Also:
- Constant Field Values
-
PLUS
public static final int PLUS
- See Also:
- Constant Field Values
-
MINUS
public static final int MINUS
- See Also:
- Constant Field Values
-
MUL
public static final int MUL
- See Also:
- Constant Field Values
-
DIV
public static final int DIV
- See Also:
- Constant Field Values
-
POINT
public static final int POINT
- See Also:
- Constant Field Values
-
INTEGER
public static final int INTEGER
- See Also:
- Constant Field Values
-
REAL_NUMBER
public static final int REAL_NUMBER
- 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
-
RULE_compileUnit
public static final int RULE_compileUnit
- See Also:
- Constant Field Values
-
RULE_expr
public static final int RULE_expr
- See Also:
- Constant Field Values
-
RULE_listExpr
public static final int RULE_listExpr
- See Also:
- Constant Field Values
-
RULE_arithExprRule
public static final int RULE_arithExprRule
- See Also:
- Constant Field Values
-
RULE_isExprRule
public static final int RULE_isExprRule
- See Also:
- Constant Field Values
-
RULE_reducerExprRule
public static final int RULE_reducerExprRule
- See Also:
- Constant Field Values
-
RULE_idExprRule
public static final int RULE_idExprRule
- See Also:
- Constant Field Values
-
RULE_constExprRule
public static final int RULE_constExprRule
- 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.UseVOCABULARYinstead.
-
_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:
getTokenNamesin 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:
getVocabularyin classorg.antlr.v4.runtime.Recognizer<org.antlr.v4.runtime.Token,org.antlr.v4.runtime.atn.ParserATNSimulator>
-
getGrammarFileName
public String getGrammarFileName()
- Specified by:
getGrammarFileNamein classorg.antlr.v4.runtime.Recognizer<org.antlr.v4.runtime.Token,org.antlr.v4.runtime.atn.ParserATNSimulator>
-
getRuleNames
public String[] getRuleNames()
- Specified by:
getRuleNamesin classorg.antlr.v4.runtime.Recognizer<org.antlr.v4.runtime.Token,org.antlr.v4.runtime.atn.ParserATNSimulator>
-
getSerializedATN
public String getSerializedATN()
- Overrides:
getSerializedATNin 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:
getATNin classorg.antlr.v4.runtime.Recognizer<org.antlr.v4.runtime.Token,org.antlr.v4.runtime.atn.ParserATNSimulator>
-
compileUnit
public final DialobRuleParser.CompileUnitContext compileUnit() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
expr
public final DialobRuleParser.ExprContext expr() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
listExpr
public final DialobRuleParser.ListExprContext listExpr() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
arithExprRule
public final DialobRuleParser.ArithExprRuleContext arithExprRule() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
isExprRule
public final DialobRuleParser.IsExprRuleContext isExprRule() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
reducerExprRule
public final DialobRuleParser.ReducerExprRuleContext reducerExprRule() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
idExprRule
public final DialobRuleParser.IdExprRuleContext idExprRule() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
constExprRule
public final DialobRuleParser.ConstExprRuleContext constExprRule() 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:
sempredin classorg.antlr.v4.runtime.Recognizer<org.antlr.v4.runtime.Token,org.antlr.v4.runtime.atn.ParserATNSimulator>
-
-