Package org.qdl_lang.parsing
Class QDLListener
- java.lang.Object
-
- org.qdl_lang.parsing.QDLListener
-
- All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeListener,QDLParserListener
public class QDLListener extends Object implements QDLParserListener
Created by Jeff Gaynor
on 1/15/20 at 6:17 AM
-
-
Constructor Summary
Constructors Constructor Description QDLListener(ParsingMap parsingMap, State state)Note that the state is supplied here not for evaluation, but because it has the evaluators needed to resolve the various values of operators that are being produced by the parser.
-
Method Summary
-
-
-
Constructor Detail
-
QDLListener
public QDLListener(ParsingMap parsingMap, State state)
Note that the state is supplied here not for evaluation, but because it has the evaluators needed to resolve the various values of operators that are being produced by the parser. The state should be injected at runtime where it is actually known.- Parameters:
parsingMap-state-
-
-
Method Detail
-
getParsingMap
public ParsingMap getParsingMap()
-
setParsingMap
public void setParsingMap(ParsingMap parsingMap)
-
enterElements
public void enterElements(QDLParserParser.ElementsContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced byQDLParserParser.elements().- Specified by:
enterElementsin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitElements
public void exitElements(QDLParserParser.ElementsContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced byQDLParserParser.elements().- Specified by:
exitElementsin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterVariable
public void enterVariable(QDLParserParser.VariableContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced byQDLParserParser.variable().- Specified by:
enterVariablein interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitVariable
public void exitVariable(QDLParserParser.VariableContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced byQDLParserParser.variable().- Specified by:
exitVariablein interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
stash
protected void stash(org.antlr.v4.runtime.tree.ParseTree parseTree, Element element)
-
stash
protected void stash(org.antlr.v4.runtime.tree.ParseTree parseTree, Statement statement)
-
resolveChild
protected Statement resolveChild(org.antlr.v4.runtime.tree.ParseTree currentChild, boolean removeChild)
-
resolveChild
protected Statement resolveChild(org.antlr.v4.runtime.tree.ParseTree currentChild)
-
enterAssignment
public void enterAssignment(QDLParserParser.AssignmentContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by theassignmentlabeled alternative inQDLParserParser.expression().- Specified by:
enterAssignmentin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitAssignment
public void exitAssignment(QDLParserParser.AssignmentContext assignmentContext)
Description copied from interface:QDLParserListenerExit a parse tree produced by theassignmentlabeled alternative inQDLParserParser.expression().- Specified by:
exitAssignmentin interfaceQDLParserListener- Parameters:
assignmentContext- the parse tree
-
exitAssignmentANode
public void exitAssignmentANode(QDLParserParser.AssignmentContext assignmentContext)
-
enterFunction
public void enterFunction(QDLParserParser.FunctionContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced byQDLParserParser.function().- Specified by:
enterFunctionin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitFunction
public void exitFunction(QDLParserParser.FunctionContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced byQDLParserParser.function().- Specified by:
exitFunctionin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterVariables
public void enterVariables(QDLParserParser.VariablesContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by thevariableslabeled alternative inQDLParserParser.expression().- Specified by:
enterVariablesin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitVariables
public void exitVariables(QDLParserParser.VariablesContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced by thevariableslabeled alternative inQDLParserParser.expression().- Specified by:
exitVariablesin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterFunctions
public void enterFunctions(QDLParserParser.FunctionsContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by thefunctionslabeled alternative inQDLParserParser.expression().- Specified by:
enterFunctionsin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitFunctions
public void exitFunctions(QDLParserParser.FunctionsContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced by thefunctionslabeled alternative inQDLParserParser.expression().- Specified by:
exitFunctionsin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterPrefix
public void enterPrefix(QDLParserParser.PrefixContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by theprefixlabeled alternative inQDLParserParser.expression().- Specified by:
enterPrefixin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitPrefix
public void exitPrefix(QDLParserParser.PrefixContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced by theprefixlabeled alternative inQDLParserParser.expression().- Specified by:
exitPrefixin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterNumber
public void enterNumber(QDLParserParser.NumberContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced byQDLParserParser.number().- Specified by:
enterNumberin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitNumber
public void exitNumber(QDLParserParser.NumberContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced byQDLParserParser.number().- Specified by:
exitNumberin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterNumbers
public void enterNumbers(QDLParserParser.NumbersContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by thenumberslabeled alternative inQDLParserParser.expression().- Specified by:
enterNumbersin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitNumbers
public void exitNumbers(QDLParserParser.NumbersContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced by thenumberslabeled alternative inQDLParserParser.expression().- Specified by:
exitNumbersin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterAssociation
public void enterAssociation(QDLParserParser.AssociationContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by theassociationlabeled alternative inQDLParserParser.expression().- Specified by:
enterAssociationin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitAssociation
public void exitAssociation(QDLParserParser.AssociationContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced by theassociationlabeled alternative inQDLParserParser.expression().- Specified by:
exitAssociationin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterNotExpression
public void enterNotExpression(QDLParserParser.NotExpressionContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by thenotExpressionlabeled alternative inQDLParserParser.expression().- Specified by:
enterNotExpressionin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitNotExpression
public void exitNotExpression(QDLParserParser.NotExpressionContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced by thenotExpressionlabeled alternative inQDLParserParser.expression().- Specified by:
exitNotExpressionin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterLogical
public void enterLogical(QDLParserParser.LogicalContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by thelogicallabeled alternative inQDLParserParser.expression().- Specified by:
enterLogicalin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitLogical
public void exitLogical(QDLParserParser.LogicalContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced by thelogicallabeled alternative inQDLParserParser.expression().- Specified by:
exitLogicalin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterOrExpression
public void enterOrExpression(QDLParserParser.OrExpressionContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by theorExpressionlabeled alternative inQDLParserParser.expression().- Specified by:
enterOrExpressionin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
finish
protected void finish(Dyad dyad, org.antlr.v4.runtime.tree.ParseTree parseTree)
-
finish
protected void finish(Monad monad, org.antlr.v4.runtime.tree.ParseTree parseTree)
-
exitOrExpression
public void exitOrExpression(QDLParserParser.OrExpressionContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced by theorExpressionlabeled alternative inQDLParserParser.expression().- Specified by:
exitOrExpressionin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterUnaryMinusExpression
public void enterUnaryMinusExpression(QDLParserParser.UnaryMinusExpressionContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by theunaryMinusExpressionlabeled alternative inQDLParserParser.expression().- Specified by:
enterUnaryMinusExpressionin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitUnaryMinusExpression
public void exitUnaryMinusExpression(QDLParserParser.UnaryMinusExpressionContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced by theunaryMinusExpressionlabeled alternative inQDLParserParser.expression().- Specified by:
exitUnaryMinusExpressionin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterEqExpression
public void enterEqExpression(QDLParserParser.EqExpressionContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by theeqExpressionlabeled alternative inQDLParserParser.expression().- Specified by:
enterEqExpressionin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitEqExpression
public void exitEqExpression(QDLParserParser.EqExpressionContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced by theeqExpressionlabeled alternative inQDLParserParser.expression().- Specified by:
exitEqExpressionin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterAndExpression
public void enterAndExpression(QDLParserParser.AndExpressionContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by theandExpressionlabeled alternative inQDLParserParser.expression().- Specified by:
enterAndExpressionin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitAndExpression
public void exitAndExpression(QDLParserParser.AndExpressionContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced by theandExpressionlabeled alternative inQDLParserParser.expression().- Specified by:
exitAndExpressionin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterPowerExpression
public void enterPowerExpression(QDLParserParser.PowerExpressionContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by thepowerExpressionlabeled alternative inQDLParserParser.expression().- Specified by:
enterPowerExpressionin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitPowerExpression
public void exitPowerExpression(QDLParserParser.PowerExpressionContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced by thepowerExpressionlabeled alternative inQDLParserParser.expression().- Specified by:
exitPowerExpressionin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterSquartExpression
public void enterSquartExpression(QDLParserParser.SquartExpressionContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by thesquartExpressionlabeled alternative inQDLParserParser.expression().- Specified by:
enterSquartExpressionin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitSquartExpression
public void exitSquartExpression(QDLParserParser.SquartExpressionContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced by thesquartExpressionlabeled alternative inQDLParserParser.expression().- Specified by:
exitSquartExpressionin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterMultiplyExpression
public void enterMultiplyExpression(QDLParserParser.MultiplyExpressionContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by themultiplyExpressionlabeled alternative inQDLParserParser.expression().- Specified by:
enterMultiplyExpressionin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitMultiplyExpression
public void exitMultiplyExpression(QDLParserParser.MultiplyExpressionContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced by themultiplyExpressionlabeled alternative inQDLParserParser.expression().- Specified by:
exitMultiplyExpressionin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterNull
public void enterNull(QDLParserParser.NullContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by thenulllabeled alternative inQDLParserParser.expression().- Specified by:
enterNullin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitNull
public void exitNull(QDLParserParser.NullContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced by thenulllabeled alternative inQDLParserParser.expression().- Specified by:
exitNullin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterStrings
public void enterStrings(QDLParserParser.StringsContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by thestringslabeled alternative inQDLParserParser.expression().- Specified by:
enterStringsin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitStrings
public void exitStrings(QDLParserParser.StringsContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced by thestringslabeled alternative inQDLParserParser.expression().- Specified by:
exitStringsin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterAddExpression
public void enterAddExpression(QDLParserParser.AddExpressionContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by theaddExpressionlabeled alternative inQDLParserParser.expression().- Specified by:
enterAddExpressionin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitAddExpression
public void exitAddExpression(QDLParserParser.AddExpressionContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced by theaddExpressionlabeled alternative inQDLParserParser.expression().- Specified by:
exitAddExpressionin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterCompExpression
public void enterCompExpression(QDLParserParser.CompExpressionContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by thecompExpressionlabeled alternative inQDLParserParser.expression().- Specified by:
enterCompExpressionin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
tp
protected TokenPosition tp(org.antlr.v4.runtime.ParserRuleContext ctx)
-
exitCompExpression
public void exitCompExpression(QDLParserParser.CompExpressionContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced by thecompExpressionlabeled alternative inQDLParserParser.expression().- Specified by:
exitCompExpressionin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterPostfix
public void enterPostfix(QDLParserParser.PostfixContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by thepostfixlabeled alternative inQDLParserParser.expression().- Specified by:
enterPostfixin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitPostfix
public void exitPostfix(QDLParserParser.PostfixContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced by thepostfixlabeled alternative inQDLParserParser.expression().- Specified by:
exitPostfixin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterElement
public void enterElement(QDLParserParser.ElementContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced byQDLParserParser.element().- Specified by:
enterElementin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitElement
public void exitElement(QDLParserParser.ElementContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced byQDLParserParser.element().- Specified by:
exitElementin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterStatement
public void enterStatement(QDLParserParser.StatementContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced byQDLParserParser.statement().- Specified by:
enterStatementin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitStatement
public void exitStatement(QDLParserParser.StatementContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced byQDLParserParser.statement().- Specified by:
exitStatementin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterIfStatement
public void enterIfStatement(QDLParserParser.IfStatementContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced byQDLParserParser.ifStatement().- Specified by:
enterIfStatementin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
doConditional
protected ConditionalStatement doConditional(org.antlr.v4.runtime.tree.ParseTree ctx)
-
exitIfStatement
public void exitIfStatement(QDLParserParser.IfStatementContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced byQDLParserParser.ifStatement().- Specified by:
exitIfStatementin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterIfElseStatement
public void enterIfElseStatement(QDLParserParser.IfElseStatementContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced byQDLParserParser.ifElseStatement().- Specified by:
enterIfElseStatementin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitIfElseStatement
public void exitIfElseStatement(QDLParserParser.IfElseStatementContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced byQDLParserParser.ifElseStatement().- Specified by:
exitIfElseStatementin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterConditionalStatement
public void enterConditionalStatement(QDLParserParser.ConditionalStatementContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced byQDLParserParser.conditionalStatement().- Specified by:
enterConditionalStatementin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitConditionalStatement
public void exitConditionalStatement(QDLParserParser.ConditionalStatementContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced byQDLParserParser.conditionalStatement().- Specified by:
exitConditionalStatementin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterLoopStatement
public void enterLoopStatement(QDLParserParser.LoopStatementContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced byQDLParserParser.loopStatement().- Specified by:
enterLoopStatementin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitLoopStatement
public void exitLoopStatement(QDLParserParser.LoopStatementContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced byQDLParserParser.loopStatement().- Specified by:
exitLoopStatementin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
doLoop
protected void doLoop(QDLParserParser.LoopStatementContext ctx)
-
enterSwitchStatement
public void enterSwitchStatement(QDLParserParser.SwitchStatementContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced byQDLParserParser.switchStatement().- Specified by:
enterSwitchStatementin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitSwitchStatement
public void exitSwitchStatement(QDLParserParser.SwitchStatementContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced byQDLParserParser.switchStatement().- Specified by:
exitSwitchStatementin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterFdoc
public void enterFdoc(QDLParserParser.FdocContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced byQDLParserParser.fdoc().- Specified by:
enterFdocin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitFdoc
public void exitFdoc(QDLParserParser.FdocContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced byQDLParserParser.fdoc().- Specified by:
exitFdocin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterDefineStatement
public void enterDefineStatement(QDLParserParser.DefineStatementContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced byQDLParserParser.defineStatement().- Specified by:
enterDefineStatementin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
doDefine2
protected void doDefine2(QDLParserParser.DefineStatementContext defineContext)
-
exitDefineStatement
public void exitDefineStatement(QDLParserParser.DefineStatementContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced byQDLParserParser.defineStatement().- Specified by:
exitDefineStatementin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterLambdaStatement
public void enterLambdaStatement(QDLParserParser.LambdaStatementContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced byQDLParserParser.lambdaStatement().- Specified by:
enterLambdaStatementin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitLambdaStatement
public void exitLambdaStatement(QDLParserParser.LambdaStatementContext lambdaContext)
Description copied from interface:QDLParserListenerExit a parse tree produced byQDLParserParser.lambdaStatement().- Specified by:
exitLambdaStatementin interfaceQDLParserListener- Parameters:
lambdaContext- the parse tree
-
createLambdaStatementNEW
protected void createLambdaStatementNEW(QDLParserParser.LambdaStatementContext lambdaContext)
-
visitTerminal
public void visitTerminal(org.antlr.v4.runtime.tree.TerminalNode terminalNode)
- Specified by:
visitTerminalin interfaceorg.antlr.v4.runtime.tree.ParseTreeListener
-
visitErrorNode
public void visitErrorNode(org.antlr.v4.runtime.tree.ErrorNode errorNode)
- Specified by:
visitErrorNodein interfaceorg.antlr.v4.runtime.tree.ParseTreeListener
-
enterEveryRule
public void enterEveryRule(org.antlr.v4.runtime.ParserRuleContext parserRuleContext)
- Specified by:
enterEveryRulein interfaceorg.antlr.v4.runtime.tree.ParseTreeListener
-
exitEveryRule
public void exitEveryRule(org.antlr.v4.runtime.ParserRuleContext parserRuleContext)
- Specified by:
exitEveryRulein interfaceorg.antlr.v4.runtime.tree.ParseTreeListener
-
enterModuleStatement
public void enterModuleStatement(QDLParserParser.ModuleStatementContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced byQDLParserParser.moduleStatement().- Specified by:
enterModuleStatementin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
getSource
protected List<String> getSource(org.antlr.v4.runtime.ParserRuleContext ctx)
There are various ways to try and get the source. Most of them strip off line feeds so if there is line comment (// ... ) the rest of the source turns into a comment *if* the source ever gets reparsed. NOTE this is exactly what happens with module. This tries to get the original source with line feeds and all. It may be more fragile than the ANTLR documentation lets on, so be advised. The ctx.getText() method, however, is definitely broken...- Parameters:
ctx-- Returns:
-
exitModuleStatement
public void exitModuleStatement(QDLParserParser.ModuleStatementContext moduleContext)
Description copied from interface:QDLParserListenerExit a parse tree produced byQDLParserParser.moduleStatement().- Specified by:
exitModuleStatementin interfaceQDLParserListener- Parameters:
moduleContext- the parse tree
-
enterTryCatchStatement
public void enterTryCatchStatement(QDLParserParser.TryCatchStatementContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced byQDLParserParser.tryCatchStatement().- Specified by:
enterTryCatchStatementin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitTryCatchStatement
public void exitTryCatchStatement(QDLParserParser.TryCatchStatementContext tcContext)
Description copied from interface:QDLParserListenerExit a parse tree produced byQDLParserParser.tryCatchStatement().- Specified by:
exitTryCatchStatementin interfaceQDLParserListener- Parameters:
tcContext- the parse tree
-
enterStemVariable
public void enterStemVariable(QDLParserParser.StemVariableContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced byQDLParserParser.stemVariable().- Specified by:
enterStemVariablein interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitStemVariable
public void exitStemVariable(QDLParserParser.StemVariableContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced byQDLParserParser.stemVariable().- Specified by:
exitStemVariablein interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterStemEntry
public void enterStemEntry(QDLParserParser.StemEntryContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced byQDLParserParser.stemEntry().- Specified by:
enterStemEntryin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitStemEntry
public void exitStemEntry(QDLParserParser.StemEntryContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced byQDLParserParser.stemEntry().- Specified by:
exitStemEntryin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterStemList
public void enterStemList(QDLParserParser.StemListContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced byQDLParserParser.stemList().- Specified by:
enterStemListin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitStemList
public void exitStemList(QDLParserParser.StemListContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced byQDLParserParser.stemList().- Specified by:
exitStemListin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterStemValue
public void enterStemValue(QDLParserParser.StemValueContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced byQDLParserParser.stemValue().- Specified by:
enterStemValuein interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitStemValue
public void exitStemValue(QDLParserParser.StemValueContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced byQDLParserParser.stemValue().- Specified by:
exitStemValuein interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterStemLi
public void enterStemLi(QDLParserParser.StemLiContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by thestemLilabeled alternative inQDLParserParser.expression().- Specified by:
enterStemLiin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitStemLi
public void exitStemLi(QDLParserParser.StemLiContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced by thestemLilabeled alternative inQDLParserParser.expression().- Specified by:
exitStemLiin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterStemVar
public void enterStemVar(QDLParserParser.StemVarContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by thestemVarlabeled alternative inQDLParserParser.expression().- Specified by:
enterStemVarin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitStemVar
public void exitStemVar(QDLParserParser.StemVarContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced by thestemVarlabeled alternative inQDLParserParser.expression().- Specified by:
exitStemVarin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterTildeExpression
public void enterTildeExpression(QDLParserParser.TildeExpressionContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by thetildeExpressionlabeled alternative inQDLParserParser.expression().- Specified by:
enterTildeExpressionin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitTildeExpression
public void exitTildeExpression(QDLParserParser.TildeExpressionContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced by thetildeExpressionlabeled alternative inQDLParserParser.expression().- Specified by:
exitTildeExpressionin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterDotOp
public void enterDotOp(QDLParserParser.DotOpContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by thedotOplabeled alternative inQDLParserParser.expression().- Specified by:
enterDotOpin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitDotOp
public void exitDotOp(QDLParserParser.DotOpContext dotOpContext)
Takes the place of having variables with .'s baked in to them and promotes the 'childOf' operator to a proper first class citizen of QDL. There are some edge cases though.First case of parsing is that in our grammar, x. - y. (and for that matter x. ~ y. with unary join) gets parsed as dotOp / | \ x . unaryMinus \ y. I.e. it thinks it is x.(-y.) The reason is that we allow for a. as an expression and ~b. as a monad, so it cannot tell a. (~b.) from (a.) ~ b. and the former certainly could also occur, but the latter is much more intuitive. We do not have this problem with x. * y. since there is no monadic *y. We don't want x.^y. to behave differently from x.-y. for instance. A lot of reading about possible solutions convinced me that fixing it after the fact was the way to go. Another options is a very careful restructuring of the grammar, but that is apt to be quite painstaking and require a near complete rewrite of large parts of the code.- Specified by:
exitDotOpin interfaceQDLParserListener- Parameters:
dotOpContext-
-
enterInteger
public void enterInteger(QDLParserParser.IntegerContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced byQDLParserParser.integer().- Specified by:
enterIntegerin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitInteger
public void exitInteger(QDLParserParser.IntegerContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced byQDLParserParser.integer().- Specified by:
exitIntegerin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterIntegers
public void enterIntegers(QDLParserParser.IntegersContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by theintegerslabeled alternative inQDLParserParser.expression().- Specified by:
enterIntegersin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitIntegers
public void exitIntegers(QDLParserParser.IntegersContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced by theintegerslabeled alternative inQDLParserParser.expression().- Specified by:
exitIntegersin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterF_args
public void enterF_args(QDLParserParser.F_argsContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced byQDLParserParser.f_args().- Specified by:
enterF_argsin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitF_args
public void exitF_args(QDLParserParser.F_argsContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced byQDLParserParser.f_args().- Specified by:
exitF_argsin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterRegexMatches
public void enterRegexMatches(QDLParserParser.RegexMatchesContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by theregexMatcheslabeled alternative inQDLParserParser.expression().- Specified by:
enterRegexMatchesin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitRegexMatches
public void exitRegexMatches(QDLParserParser.RegexMatchesContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced by theregexMatcheslabeled alternative inQDLParserParser.expression().- Specified by:
exitRegexMatchesin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterAltIFExpression
public void enterAltIFExpression(QDLParserParser.AltIFExpressionContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by thealtIFExpressionlabeled alternative inQDLParserParser.expression().- Specified by:
enterAltIFExpressionin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitAltIFExpression
public void exitAltIFExpression(QDLParserParser.AltIFExpressionContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced by thealtIFExpressionlabeled alternative inQDLParserParser.expression().- Specified by:
exitAltIFExpressionin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterExpressionBlock
public void enterExpressionBlock(QDLParserParser.ExpressionBlockContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced byQDLParserParser.expressionBlock().- Specified by:
enterExpressionBlockin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitExpressionBlock
public void exitExpressionBlock(QDLParserParser.ExpressionBlockContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced byQDLParserParser.expressionBlock().- Specified by:
exitExpressionBlockin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterConditionalBlock
public void enterConditionalBlock(QDLParserParser.ConditionalBlockContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced byQDLParserParser.conditionalBlock().- Specified by:
enterConditionalBlockin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitConditionalBlock
public void exitConditionalBlock(QDLParserParser.ConditionalBlockContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced byQDLParserParser.conditionalBlock().- Specified by:
exitConditionalBlockin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterRealInterval
public void enterRealInterval(QDLParserParser.RealIntervalContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by therealIntervallabeled alternative inQDLParserParser.expression().- Specified by:
enterRealIntervalin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitRealInterval
public void exitRealInterval(QDLParserParser.RealIntervalContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced by therealIntervallabeled alternative inQDLParserParser.expression().- Specified by:
exitRealIntervalin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterIntInterval
public void enterIntInterval(QDLParserParser.IntIntervalContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by theintIntervallabeled alternative inQDLParserParser.expression().- Specified by:
enterIntIntervalin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitIntInterval
public void exitIntInterval(QDLParserParser.IntIntervalContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced by theintIntervallabeled alternative inQDLParserParser.expression().- Specified by:
exitIntIntervalin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterStatementBlock
public void enterStatementBlock(QDLParserParser.StatementBlockContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced byQDLParserParser.statementBlock().- Specified by:
enterStatementBlockin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitStatementBlock
public void exitStatementBlock(QDLParserParser.StatementBlockContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced byQDLParserParser.statementBlock().- Specified by:
exitStatementBlockin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterDocStatementBlock
public void enterDocStatementBlock(QDLParserParser.DocStatementBlockContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced byQDLParserParser.docStatementBlock().- Specified by:
enterDocStatementBlockin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitDocStatementBlock
public void exitDocStatementBlock(QDLParserParser.DocStatementBlockContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced byQDLParserParser.docStatementBlock().- Specified by:
exitDocStatementBlockin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterIInterval
public void enterIInterval(QDLParserParser.IIntervalContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced byQDLParserParser.iInterval().- Specified by:
enterIIntervalin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitIInterval
public void exitIInterval(QDLParserParser.IIntervalContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced byQDLParserParser.iInterval().- Specified by:
exitIIntervalin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterRInterval
public void enterRInterval(QDLParserParser.RIntervalContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced byQDLParserParser.rInterval().- Specified by:
enterRIntervalin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitRInterval
public void exitRInterval(QDLParserParser.RIntervalContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced byQDLParserParser.rInterval().- Specified by:
exitRIntervalin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterKeywords
public void enterKeywords(QDLParserParser.KeywordsContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by thekeywordslabeled alternative inQDLParserParser.expression().- Specified by:
enterKeywordsin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitKeywords
public void exitKeywords(QDLParserParser.KeywordsContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced by thekeywordslabeled alternative inQDLParserParser.expression().- Specified by:
exitKeywordsin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterKeyword
public void enterKeyword(QDLParserParser.KeywordContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced byQDLParserParser.keyword().- Specified by:
enterKeywordin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitKeyword
public void exitKeyword(QDLParserParser.KeywordContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced byQDLParserParser.keyword().- Specified by:
exitKeywordin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterAssertStatement
public void enterAssertStatement(QDLParserParser.AssertStatementContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced byQDLParserParser.assertStatement().- Specified by:
enterAssertStatementin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitAssertStatement
public void exitAssertStatement(QDLParserParser.AssertStatementContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced byQDLParserParser.assertStatement().- Specified by:
exitAssertStatementin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterAssertStatement2
public void enterAssertStatement2(QDLParserParser.AssertStatement2Context ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced byQDLParserParser.assertStatement2().- Specified by:
enterAssertStatement2in interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitAssertStatement2
public void exitAssertStatement2(QDLParserParser.AssertStatement2Context ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced byQDLParserParser.assertStatement2().- Specified by:
exitAssertStatement2in interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterExtract
public void enterExtract(QDLParserParser.ExtractContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by theextractlabeled alternative inQDLParserParser.expression().- Specified by:
enterExtractin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitExtract
public void exitExtract(QDLParserParser.ExtractContext extractContext)
Description copied from interface:QDLParserListenerExit a parse tree produced by theextractlabeled alternative inQDLParserParser.expression().- Specified by:
exitExtractin interfaceQDLParserListener- Parameters:
extractContext- the parse tree
-
enterExtract2
public void enterExtract2(QDLParserParser.Extract2Context ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by theextract2labeled alternative inQDLParserParser.expression().- Specified by:
enterExtract2in interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitExtract2
public void exitExtract2(QDLParserParser.Extract2Context ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced by theextract2labeled alternative inQDLParserParser.expression().- Specified by:
exitExtract2in interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterExtract3
public void enterExtract3(QDLParserParser.Extract3Context ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by theextract3labeled alternative inQDLParserParser.expression().- Specified by:
enterExtract3in interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitExtract3
public void exitExtract3(QDLParserParser.Extract3Context ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced by theextract3labeled alternative inQDLParserParser.expression().- Specified by:
exitExtract3in interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterExtract4
public void enterExtract4(QDLParserParser.Extract4Context ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by theextract4labeled alternative inQDLParserParser.expression().- Specified by:
enterExtract4in interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitExtract4
public void exitExtract4(QDLParserParser.Extract4Context ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced by theextract4labeled alternative inQDLParserParser.expression().- Specified by:
exitExtract4in interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
doSubset
protected void doSubset(org.antlr.v4.runtime.ParserRuleContext parseTree, boolean isWildcard)
-
enterDotOp2
public void enterDotOp2(QDLParserParser.DotOp2Context ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by thedotOp2labeled alternative inQDLParserParser.expression().- Specified by:
enterDotOp2in interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitDotOp2
public void exitDotOp2(QDLParserParser.DotOp2Context ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced by thedotOp2labeled alternative inQDLParserParser.expression().- Specified by:
exitDotOp2in interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterLambdaDef
public void enterLambdaDef(QDLParserParser.LambdaDefContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by thelambdaDeflabeled alternative inQDLParserParser.expression().- Specified by:
enterLambdaDefin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitLambdaDef
public void exitLambdaDef(QDLParserParser.LambdaDefContext lambdaContext)
Support for lambda expressions as first class objects in QDL. This is largely identical to the older lambda function definition (which was only in terms of statements, hence could not be used as an argument. At some point this should be refactored.- Specified by:
exitLambdaDefin interfaceQDLParserListener- Parameters:
lambdaContext-
-
enterBlockStatement
public void enterBlockStatement(QDLParserParser.BlockStatementContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced byQDLParserParser.blockStatement().- Specified by:
enterBlockStatementin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitBlockStatement
public void exitBlockStatement(QDLParserParser.BlockStatementContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced byQDLParserParser.blockStatement().- Specified by:
exitBlockStatementin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterFloorOrCeilingExpression
public void enterFloorOrCeilingExpression(QDLParserParser.FloorOrCeilingExpressionContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by thefloorOrCeilingExpressionlabeled alternative inQDLParserParser.expression().- Specified by:
enterFloorOrCeilingExpressionin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitFloorOrCeilingExpression
public void exitFloorOrCeilingExpression(QDLParserParser.FloorOrCeilingExpressionContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced by thefloorOrCeilingExpressionlabeled alternative inQDLParserParser.expression().- Specified by:
exitFloorOrCeilingExpressionin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterUnaryTildeExpression
public void enterUnaryTildeExpression(QDLParserParser.UnaryTildeExpressionContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by theunaryTildeExpressionlabeled alternative inQDLParserParser.expression().- Specified by:
enterUnaryTildeExpressionin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitUnaryTildeExpression
public void exitUnaryTildeExpression(QDLParserParser.UnaryTildeExpressionContext ctx)
Syntactic sugar. Unary ~ means join to an empty stem so re-order the elements of the list.- Specified by:
exitUnaryTildeExpressionin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterModuleExpression
public void enterModuleExpression(QDLParserParser.ModuleExpressionContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by themoduleExpressionlabeled alternative inQDLParserParser.expression().- Specified by:
enterModuleExpressionin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitModuleExpression
public void exitModuleExpression(QDLParserParser.ModuleExpressionContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced by themoduleExpressionlabeled alternative inQDLParserParser.expression().- Specified by:
exitModuleExpressionin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterSet
public void enterSet(QDLParserParser.SetContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced byQDLParserParser.set().- Specified by:
enterSetin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitSet
public void exitSet(QDLParserParser.SetContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced byQDLParserParser.set().- Specified by:
exitSetin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterSetThing
public void enterSetThing(QDLParserParser.SetThingContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by thesetThinglabeled alternative inQDLParserParser.expression().- Specified by:
enterSetThingin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitSetThing
public void exitSetThing(QDLParserParser.SetThingContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced by thesetThinglabeled alternative inQDLParserParser.expression().- Specified by:
exitSetThingin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterEpsilon
public void enterEpsilon(QDLParserParser.EpsilonContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by theepsilonlabeled alternative inQDLParserParser.expression().- Specified by:
enterEpsilonin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitEpsilon
public void exitEpsilon(QDLParserParser.EpsilonContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced by theepsilonlabeled alternative inQDLParserParser.expression().- Specified by:
exitEpsilonin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterLocalStatement
public void enterLocalStatement(QDLParserParser.LocalStatementContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced byQDLParserParser.localStatement().- Specified by:
enterLocalStatementin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitLocalStatement
public void exitLocalStatement(QDLParserParser.LocalStatementContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced byQDLParserParser.localStatement().- Specified by:
exitLocalStatementin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterIntersectionOrUnion
public void enterIntersectionOrUnion(QDLParserParser.IntersectionOrUnionContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by theintersectionOrUnionlabeled alternative inQDLParserParser.expression().- Specified by:
enterIntersectionOrUnionin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitIntersectionOrUnion
public void exitIntersectionOrUnion(QDLParserParser.IntersectionOrUnionContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced by theintersectionOrUnionlabeled alternative inQDLParserParser.expression().- Specified by:
exitIntersectionOrUnionin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterToSet
public void enterToSet(QDLParserParser.ToSetContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by thetoSetlabeled alternative inQDLParserParser.expression().- Specified by:
enterToSetin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitToSet
public void exitToSet(QDLParserParser.ToSetContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced by thetoSetlabeled alternative inQDLParserParser.expression().- Specified by:
exitToSetin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterIs_a
public void enterIs_a(QDLParserParser.Is_aContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by theis_alabeled alternative inQDLParserParser.expression().- Specified by:
enterIs_ain interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitIs_a
public void exitIs_a(QDLParserParser.Is_aContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced by theis_alabeled alternative inQDLParserParser.expression().- Specified by:
exitIs_ain interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterIsDefinedExpression
public void enterIsDefinedExpression(QDLParserParser.IsDefinedExpressionContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by theisDefinedExpressionlabeled alternative inQDLParserParser.expression().- Specified by:
enterIsDefinedExpressionin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitIsDefinedExpression
public void exitIsDefinedExpression(QDLParserParser.IsDefinedExpressionContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced by theisDefinedExpressionlabeled alternative inQDLParserParser.expression().- Specified by:
exitIsDefinedExpressionin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterIsDefinedDyadicExpression
public void enterIsDefinedDyadicExpression(QDLParserParser.IsDefinedDyadicExpressionContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by theisDefinedDyadicExpressionlabeled alternative inQDLParserParser.expression().- Specified by:
enterIsDefinedDyadicExpressionin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitIsDefinedDyadicExpression
public void exitIsDefinedDyadicExpression(QDLParserParser.IsDefinedDyadicExpressionContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced by theisDefinedDyadicExpressionlabeled alternative inQDLParserParser.expression().- Specified by:
exitIsDefinedDyadicExpressionin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterContainsKey
public void enterContainsKey(QDLParserParser.ContainsKeyContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by thecontainsKeylabeled alternative inQDLParserParser.expression().- Specified by:
enterContainsKeyin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitContainsKey
public void exitContainsKey(QDLParserParser.ContainsKeyContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced by thecontainsKeylabeled alternative inQDLParserParser.expression().- Specified by:
exitContainsKeyin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterForAll
public void enterForAll(QDLParserParser.ForAllContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by theforAlllabeled alternative inQDLParserParser.expression().- Specified by:
enterForAllin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitForAll
public void exitForAll(QDLParserParser.ForAllContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced by theforAlllabeled alternative inQDLParserParser.expression().- Specified by:
exitForAllin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
checkLexer
protected void checkLexer(org.antlr.v4.runtime.ParserRuleContext pre)
First cut of catching lexer exceptions and handling them- Parameters:
pre-
-
enterExpressionDyadicOps
public void enterExpressionDyadicOps(QDLParserParser.ExpressionDyadicOpsContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by theexpressionDyadicOpslabeled alternative inQDLParserParser.expression().- Specified by:
enterExpressionDyadicOpsin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitExpressionDyadicOps
public void exitExpressionDyadicOps(QDLParserParser.ExpressionDyadicOpsContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced by theexpressionDyadicOpslabeled alternative inQDLParserParser.expression().- Specified by:
exitExpressionDyadicOpsin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitDyadicOps
protected void exitDyadicOps(org.antlr.v4.runtime.ParserRuleContext ctx)
-
enterFrefDyadicOps
public void enterFrefDyadicOps(QDLParserParser.FrefDyadicOpsContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by thefrefDyadicOpslabeled alternative inQDLParserParser.expression().- Specified by:
enterFrefDyadicOpsin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitFrefDyadicOps
public void exitFrefDyadicOps(QDLParserParser.FrefDyadicOpsContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced by thefrefDyadicOpslabeled alternative inQDLParserParser.expression().- Specified by:
exitFrefDyadicOpsin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterUnaryTransposeExpression
public void enterUnaryTransposeExpression(QDLParserParser.UnaryTransposeExpressionContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by theunaryTransposeExpressionlabeled alternative inQDLParserParser.expression().- Specified by:
enterUnaryTransposeExpressionin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitUnaryTransposeExpression
public void exitUnaryTransposeExpression(QDLParserParser.UnaryTransposeExpressionContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced by theunaryTransposeExpressionlabeled alternative inQDLParserParser.expression().- Specified by:
exitUnaryTransposeExpressionin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterTransposeOperator
public void enterTransposeOperator(QDLParserParser.TransposeOperatorContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by thetransposeOperatorlabeled alternative inQDLParserParser.expression().- Specified by:
enterTransposeOperatorin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitTransposeOperator
public void exitTransposeOperator(QDLParserParser.TransposeOperatorContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced by thetransposeOperatorlabeled alternative inQDLParserParser.expression().- Specified by:
exitTransposeOperatorin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
getOpEvaluator
public OpEvaluator getOpEvaluator()
Only need this for type lookup. Don't use for anything else- Returns:
-
enterSwitchExpression
public void enterSwitchExpression(QDLParserParser.SwitchExpressionContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by theswitchExpressionlabeled alternative inQDLParserParser.expression().- Specified by:
enterSwitchExpressionin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitSwitchExpression
public void exitSwitchExpression(QDLParserParser.SwitchExpressionContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced by theswitchExpressionlabeled alternative inQDLParserParser.expression().- Specified by:
exitSwitchExpressionin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterUnaryApplyExpression
public void enterUnaryApplyExpression(QDLParserParser.UnaryApplyExpressionContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by theunaryApplyExpressionlabeled alternative inQDLParserParser.expression().- Specified by:
enterUnaryApplyExpressionin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitUnaryApplyExpression
public void exitUnaryApplyExpression(QDLParserParser.UnaryApplyExpressionContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced by theunaryApplyExpressionlabeled alternative inQDLParserParser.expression().- Specified by:
exitUnaryApplyExpressionin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterAppliesOperator
public void enterAppliesOperator(QDLParserParser.AppliesOperatorContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by theappliesOperatorlabeled alternative inQDLParserParser.expression().- Specified by:
enterAppliesOperatorin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitAppliesOperator
public void exitAppliesOperator(QDLParserParser.AppliesOperatorContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced by theappliesOperatorlabeled alternative inQDLParserParser.expression().- Specified by:
exitAppliesOperatorin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterFunctionReference
public void enterFunctionReference(QDLParserParser.FunctionReferenceContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by thefunctionReferencelabeled alternative inQDLParserParser.expression().- Specified by:
enterFunctionReferencein interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterOp_ref
public void enterOp_ref(QDLParserParser.Op_refContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced byQDLParserParser.op_ref().- Specified by:
enterOp_refin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitOp_ref
public void exitOp_ref(QDLParserParser.Op_refContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced byQDLParserParser.op_ref().- Specified by:
exitOp_refin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterOperatorReference
public void enterOperatorReference(QDLParserParser.OperatorReferenceContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by theoperatorReferencelabeled alternative inQDLParserParser.expression().- Specified by:
enterOperatorReferencein interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitOperatorReference
public void exitOperatorReference(QDLParserParser.OperatorReferenceContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced by theoperatorReferencelabeled alternative inQDLParserParser.expression().- Specified by:
exitOperatorReferencein interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitFunctionReference
public void exitFunctionReference(QDLParserParser.FunctionReferenceContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced by thefunctionReferencelabeled alternative inQDLParserParser.expression().- Specified by:
exitFunctionReferencein interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterDyadicFunctionRefernce
public void enterDyadicFunctionRefernce(QDLParserParser.DyadicFunctionRefernceContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by thedyadicFunctionReferncelabeled alternative inQDLParserParser.expression().- Specified by:
enterDyadicFunctionReferncein interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitDyadicFunctionRefernce
public void exitDyadicFunctionRefernce(QDLParserParser.DyadicFunctionRefernceContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced by thedyadicFunctionReferncelabeled alternative inQDLParserParser.expression().- Specified by:
exitDyadicFunctionReferncein interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterAxis
public void enterAxis(QDLParserParser.AxisContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by theaxislabeled alternative inQDLParserParser.expression().- Specified by:
enterAxisin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitAxis
public void exitAxis(QDLParserParser.AxisContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced by theaxislabeled alternative inQDLParserParser.expression().- Specified by:
exitAxisin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterExcise
public void enterExcise(QDLParserParser.ExciseContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by theexciselabeled alternative inQDLParserParser.expression().- Specified by:
enterExcisein interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitExcise
public void exitExcise(QDLParserParser.ExciseContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced by theexciselabeled alternative inQDLParserParser.expression().- Specified by:
exitExcisein interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterNotTildeExpression
public void enterNotTildeExpression(QDLParserParser.NotTildeExpressionContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by thenotTildeExpressionlabeled alternative inQDLParserParser.expression().- Specified by:
enterNotTildeExpressionin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitNotTildeExpression
public void exitNotTildeExpression(QDLParserParser.NotTildeExpressionContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced by thenotTildeExpressionlabeled alternative inQDLParserParser.expression().- Specified by:
exitNotTildeExpressionin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterMy_integer
public void enterMy_integer(QDLParserParser.My_integerContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced byQDLParserParser.my_integer().- Specified by:
enterMy_integerin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitMy_integer
public void exitMy_integer(QDLParserParser.My_integerContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced byQDLParserParser.my_integer().- Specified by:
exitMy_integerin interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterDecimalNumber2
public void enterDecimalNumber2(QDLParserParser.DecimalNumber2Context ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by thedecimalNumber2labeled alternative inQDLParserParser.expression().- Specified by:
enterDecimalNumber2in interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitDecimalNumber2
public void exitDecimalNumber2(QDLParserParser.DecimalNumber2Context ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced by thedecimalNumber2labeled alternative inQDLParserParser.expression().- Specified by:
exitDecimalNumber2in interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
enterStemDefaultValue
public void enterStemDefaultValue(QDLParserParser.StemDefaultValueContext ctx)
Description copied from interface:QDLParserListenerEnter a parse tree produced by thestemDefaultValuelabeled alternative inQDLParserParser.expression().- Specified by:
enterStemDefaultValuein interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
exitStemDefaultValue
public void exitStemDefaultValue(QDLParserParser.StemDefaultValueContext ctx)
Description copied from interface:QDLParserListenerExit a parse tree produced by thestemDefaultValuelabeled alternative inQDLParserParser.expression().- Specified by:
exitStemDefaultValuein interfaceQDLParserListener- Parameters:
ctx- the parse tree
-
-