Package edu.uiuc.ncsa.qdl.parsing
Class QDLListener
- java.lang.Object
-
- edu.uiuc.ncsa.qdl.parsing.QDLListener
-
- All Implemented Interfaces:
QDLParserListener
,org.antlr.v4.runtime.tree.ParseTreeListener
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 types 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 types 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:QDLParserListener
Enter a parse tree produced byQDLParserParser.elements()
.- Specified by:
enterElements
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitElements
public void exitElements(QDLParserParser.ElementsContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced byQDLParserParser.elements()
.- Specified by:
exitElements
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterVariable
public void enterVariable(QDLParserParser.VariableContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced byQDLParserParser.variable()
.- Specified by:
enterVariable
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitVariable
public void exitVariable(QDLParserParser.VariableContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced byQDLParserParser.variable()
.- Specified by:
exitVariable
in 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:QDLParserListener
Enter a parse tree produced by theassignment
labeled alternative inQDLParserParser.expression()
.- Specified by:
enterAssignment
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitAssignment
public void exitAssignment(QDLParserParser.AssignmentContext assignmentContext)
Description copied from interface:QDLParserListener
Exit a parse tree produced by theassignment
labeled alternative inQDLParserParser.expression()
.- Specified by:
exitAssignment
in interfaceQDLParserListener
- Parameters:
assignmentContext
- the parse tree
-
exitAssignmentANode
public void exitAssignmentANode(QDLParserParser.AssignmentContext assignmentContext)
-
enterFunction
public void enterFunction(QDLParserParser.FunctionContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced byQDLParserParser.function()
.- Specified by:
enterFunction
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitFunction
public void exitFunction(QDLParserParser.FunctionContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced byQDLParserParser.function()
.- Specified by:
exitFunction
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterVariables
public void enterVariables(QDLParserParser.VariablesContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced by thevariables
labeled alternative inQDLParserParser.expression()
.- Specified by:
enterVariables
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitVariables
public void exitVariables(QDLParserParser.VariablesContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced by thevariables
labeled alternative inQDLParserParser.expression()
.- Specified by:
exitVariables
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterFunctions
public void enterFunctions(QDLParserParser.FunctionsContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced by thefunctions
labeled alternative inQDLParserParser.expression()
.- Specified by:
enterFunctions
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitFunctions
public void exitFunctions(QDLParserParser.FunctionsContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced by thefunctions
labeled alternative inQDLParserParser.expression()
.- Specified by:
exitFunctions
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterPrefix
public void enterPrefix(QDLParserParser.PrefixContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced by theprefix
labeled alternative inQDLParserParser.expression()
.- Specified by:
enterPrefix
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitPrefix
public void exitPrefix(QDLParserParser.PrefixContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced by theprefix
labeled alternative inQDLParserParser.expression()
.- Specified by:
exitPrefix
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterNumber
public void enterNumber(QDLParserParser.NumberContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced byQDLParserParser.number()
.- Specified by:
enterNumber
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitNumber
public void exitNumber(QDLParserParser.NumberContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced byQDLParserParser.number()
.- Specified by:
exitNumber
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterNumbers
public void enterNumbers(QDLParserParser.NumbersContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced by thenumbers
labeled alternative inQDLParserParser.expression()
.- Specified by:
enterNumbers
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitNumbers
public void exitNumbers(QDLParserParser.NumbersContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced by thenumbers
labeled alternative inQDLParserParser.expression()
.- Specified by:
exitNumbers
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterAssociation
public void enterAssociation(QDLParserParser.AssociationContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced by theassociation
labeled alternative inQDLParserParser.expression()
.- Specified by:
enterAssociation
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitAssociation
public void exitAssociation(QDLParserParser.AssociationContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced by theassociation
labeled alternative inQDLParserParser.expression()
.- Specified by:
exitAssociation
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterNotExpression
public void enterNotExpression(QDLParserParser.NotExpressionContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced by thenotExpression
labeled alternative inQDLParserParser.expression()
.- Specified by:
enterNotExpression
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitNotExpression
public void exitNotExpression(QDLParserParser.NotExpressionContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced by thenotExpression
labeled alternative inQDLParserParser.expression()
.- Specified by:
exitNotExpression
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterLogical
public void enterLogical(QDLParserParser.LogicalContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced by thelogical
labeled alternative inQDLParserParser.expression()
.- Specified by:
enterLogical
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitLogical
public void exitLogical(QDLParserParser.LogicalContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced by thelogical
labeled alternative inQDLParserParser.expression()
.- Specified by:
exitLogical
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterOrExpression
public void enterOrExpression(QDLParserParser.OrExpressionContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced by theorExpression
labeled alternative inQDLParserParser.expression()
.- Specified by:
enterOrExpression
in 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:QDLParserListener
Exit a parse tree produced by theorExpression
labeled alternative inQDLParserParser.expression()
.- Specified by:
exitOrExpression
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterUnaryMinusExpression
public void enterUnaryMinusExpression(QDLParserParser.UnaryMinusExpressionContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced by theunaryMinusExpression
labeled alternative inQDLParserParser.expression()
.- Specified by:
enterUnaryMinusExpression
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitUnaryMinusExpression
public void exitUnaryMinusExpression(QDLParserParser.UnaryMinusExpressionContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced by theunaryMinusExpression
labeled alternative inQDLParserParser.expression()
.- Specified by:
exitUnaryMinusExpression
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterEqExpression
public void enterEqExpression(QDLParserParser.EqExpressionContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced by theeqExpression
labeled alternative inQDLParserParser.expression()
.- Specified by:
enterEqExpression
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitEqExpression
public void exitEqExpression(QDLParserParser.EqExpressionContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced by theeqExpression
labeled alternative inQDLParserParser.expression()
.- Specified by:
exitEqExpression
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterAndExpression
public void enterAndExpression(QDLParserParser.AndExpressionContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced by theandExpression
labeled alternative inQDLParserParser.expression()
.- Specified by:
enterAndExpression
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitAndExpression
public void exitAndExpression(QDLParserParser.AndExpressionContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced by theandExpression
labeled alternative inQDLParserParser.expression()
.- Specified by:
exitAndExpression
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterPowerExpression
public void enterPowerExpression(QDLParserParser.PowerExpressionContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced by thepowerExpression
labeled alternative inQDLParserParser.expression()
.- Specified by:
enterPowerExpression
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitPowerExpression
public void exitPowerExpression(QDLParserParser.PowerExpressionContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced by thepowerExpression
labeled alternative inQDLParserParser.expression()
.- Specified by:
exitPowerExpression
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterMultiplyExpression
public void enterMultiplyExpression(QDLParserParser.MultiplyExpressionContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced by themultiplyExpression
labeled alternative inQDLParserParser.expression()
.- Specified by:
enterMultiplyExpression
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitMultiplyExpression
public void exitMultiplyExpression(QDLParserParser.MultiplyExpressionContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced by themultiplyExpression
labeled alternative inQDLParserParser.expression()
.- Specified by:
exitMultiplyExpression
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterNull
public void enterNull(QDLParserParser.NullContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced by thenull
labeled alternative inQDLParserParser.expression()
.- Specified by:
enterNull
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitNull
public void exitNull(QDLParserParser.NullContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced by thenull
labeled alternative inQDLParserParser.expression()
.- Specified by:
exitNull
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterStrings
public void enterStrings(QDLParserParser.StringsContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced by thestrings
labeled alternative inQDLParserParser.expression()
.- Specified by:
enterStrings
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitStrings
public void exitStrings(QDLParserParser.StringsContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced by thestrings
labeled alternative inQDLParserParser.expression()
.- Specified by:
exitStrings
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterAddExpression
public void enterAddExpression(QDLParserParser.AddExpressionContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced by theaddExpression
labeled alternative inQDLParserParser.expression()
.- Specified by:
enterAddExpression
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitAddExpression
public void exitAddExpression(QDLParserParser.AddExpressionContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced by theaddExpression
labeled alternative inQDLParserParser.expression()
.- Specified by:
exitAddExpression
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterCompExpression
public void enterCompExpression(QDLParserParser.CompExpressionContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced by thecompExpression
labeled alternative inQDLParserParser.expression()
.- Specified by:
enterCompExpression
in 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:QDLParserListener
Exit a parse tree produced by thecompExpression
labeled alternative inQDLParserParser.expression()
.- Specified by:
exitCompExpression
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterPostfix
public void enterPostfix(QDLParserParser.PostfixContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced by thepostfix
labeled alternative inQDLParserParser.expression()
.- Specified by:
enterPostfix
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitPostfix
public void exitPostfix(QDLParserParser.PostfixContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced by thepostfix
labeled alternative inQDLParserParser.expression()
.- Specified by:
exitPostfix
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterElement
public void enterElement(QDLParserParser.ElementContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced byQDLParserParser.element()
.- Specified by:
enterElement
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitElement
public void exitElement(QDLParserParser.ElementContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced byQDLParserParser.element()
.- Specified by:
exitElement
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterStatement
public void enterStatement(QDLParserParser.StatementContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced byQDLParserParser.statement()
.- Specified by:
enterStatement
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitStatement
public void exitStatement(QDLParserParser.StatementContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced byQDLParserParser.statement()
.- Specified by:
exitStatement
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterIfStatement
public void enterIfStatement(QDLParserParser.IfStatementContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced byQDLParserParser.ifStatement()
.- Specified by:
enterIfStatement
in 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:QDLParserListener
Exit a parse tree produced byQDLParserParser.ifStatement()
.- Specified by:
exitIfStatement
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterIfElseStatement
public void enterIfElseStatement(QDLParserParser.IfElseStatementContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced byQDLParserParser.ifElseStatement()
.- Specified by:
enterIfElseStatement
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitIfElseStatement
public void exitIfElseStatement(QDLParserParser.IfElseStatementContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced byQDLParserParser.ifElseStatement()
.- Specified by:
exitIfElseStatement
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterConditionalStatement
public void enterConditionalStatement(QDLParserParser.ConditionalStatementContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced byQDLParserParser.conditionalStatement()
.- Specified by:
enterConditionalStatement
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitConditionalStatement
public void exitConditionalStatement(QDLParserParser.ConditionalStatementContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced byQDLParserParser.conditionalStatement()
.- Specified by:
exitConditionalStatement
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterLoopStatement
public void enterLoopStatement(QDLParserParser.LoopStatementContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced byQDLParserParser.loopStatement()
.- Specified by:
enterLoopStatement
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitLoopStatement
public void exitLoopStatement(QDLParserParser.LoopStatementContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced byQDLParserParser.loopStatement()
.- Specified by:
exitLoopStatement
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
doLoop
protected void doLoop(QDLParserParser.LoopStatementContext ctx)
-
enterSwitchStatement
public void enterSwitchStatement(QDLParserParser.SwitchStatementContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced byQDLParserParser.switchStatement()
.- Specified by:
enterSwitchStatement
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitSwitchStatement
public void exitSwitchStatement(QDLParserParser.SwitchStatementContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced byQDLParserParser.switchStatement()
.- Specified by:
exitSwitchStatement
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterFdoc
public void enterFdoc(QDLParserParser.FdocContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced byQDLParserParser.fdoc()
.- Specified by:
enterFdoc
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitFdoc
public void exitFdoc(QDLParserParser.FdocContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced byQDLParserParser.fdoc()
.- Specified by:
exitFdoc
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterDefineStatement
public void enterDefineStatement(QDLParserParser.DefineStatementContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced byQDLParserParser.defineStatement()
.- Specified by:
enterDefineStatement
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
doDefine2
protected void doDefine2(QDLParserParser.DefineStatementContext defineContext)
-
exitDefineStatement
public void exitDefineStatement(QDLParserParser.DefineStatementContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced byQDLParserParser.defineStatement()
.- Specified by:
exitDefineStatement
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterLambdaStatement
public void enterLambdaStatement(QDLParserParser.LambdaStatementContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced byQDLParserParser.lambdaStatement()
.- Specified by:
enterLambdaStatement
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitLambdaStatement
public void exitLambdaStatement(QDLParserParser.LambdaStatementContext lambdaContext)
Description copied from interface:QDLParserListener
Exit a parse tree produced byQDLParserParser.lambdaStatement()
.- Specified by:
exitLambdaStatement
in 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:
visitTerminal
in interfaceorg.antlr.v4.runtime.tree.ParseTreeListener
-
visitErrorNode
public void visitErrorNode(org.antlr.v4.runtime.tree.ErrorNode errorNode)
- Specified by:
visitErrorNode
in interfaceorg.antlr.v4.runtime.tree.ParseTreeListener
-
enterEveryRule
public void enterEveryRule(org.antlr.v4.runtime.ParserRuleContext parserRuleContext)
- Specified by:
enterEveryRule
in interfaceorg.antlr.v4.runtime.tree.ParseTreeListener
-
exitEveryRule
public void exitEveryRule(org.antlr.v4.runtime.ParserRuleContext parserRuleContext)
- Specified by:
exitEveryRule
in interfaceorg.antlr.v4.runtime.tree.ParseTreeListener
-
enterModuleStatement
public void enterModuleStatement(QDLParserParser.ModuleStatementContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced byQDLParserParser.moduleStatement()
.- Specified by:
enterModuleStatement
in 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:QDLParserListener
Exit a parse tree produced byQDLParserParser.moduleStatement()
.- Specified by:
exitModuleStatement
in interfaceQDLParserListener
- Parameters:
moduleContext
- the parse tree
-
enterTryCatchStatement
public void enterTryCatchStatement(QDLParserParser.TryCatchStatementContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced byQDLParserParser.tryCatchStatement()
.- Specified by:
enterTryCatchStatement
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitTryCatchStatement
public void exitTryCatchStatement(QDLParserParser.TryCatchStatementContext tcContext)
Description copied from interface:QDLParserListener
Exit a parse tree produced byQDLParserParser.tryCatchStatement()
.- Specified by:
exitTryCatchStatement
in interfaceQDLParserListener
- Parameters:
tcContext
- the parse tree
-
enterStemVariable
public void enterStemVariable(QDLParserParser.StemVariableContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced byQDLParserParser.stemVariable()
.- Specified by:
enterStemVariable
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitStemVariable
public void exitStemVariable(QDLParserParser.StemVariableContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced byQDLParserParser.stemVariable()
.- Specified by:
exitStemVariable
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterStemEntry
public void enterStemEntry(QDLParserParser.StemEntryContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced byQDLParserParser.stemEntry()
.- Specified by:
enterStemEntry
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitStemEntry
public void exitStemEntry(QDLParserParser.StemEntryContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced byQDLParserParser.stemEntry()
.- Specified by:
exitStemEntry
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterStemList
public void enterStemList(QDLParserParser.StemListContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced byQDLParserParser.stemList()
.- Specified by:
enterStemList
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitStemList
public void exitStemList(QDLParserParser.StemListContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced byQDLParserParser.stemList()
.- Specified by:
exitStemList
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterStemValue
public void enterStemValue(QDLParserParser.StemValueContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced byQDLParserParser.stemValue()
.- Specified by:
enterStemValue
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitStemValue
public void exitStemValue(QDLParserParser.StemValueContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced byQDLParserParser.stemValue()
.- Specified by:
exitStemValue
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterStemLi
public void enterStemLi(QDLParserParser.StemLiContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced by thestemLi
labeled alternative inQDLParserParser.expression()
.- Specified by:
enterStemLi
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitStemLi
public void exitStemLi(QDLParserParser.StemLiContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced by thestemLi
labeled alternative inQDLParserParser.expression()
.- Specified by:
exitStemLi
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterStemVar
public void enterStemVar(QDLParserParser.StemVarContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced by thestemVar
labeled alternative inQDLParserParser.expression()
.- Specified by:
enterStemVar
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitStemVar
public void exitStemVar(QDLParserParser.StemVarContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced by thestemVar
labeled alternative inQDLParserParser.expression()
.- Specified by:
exitStemVar
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterTildeExpression
public void enterTildeExpression(QDLParserParser.TildeExpressionContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced by thetildeExpression
labeled alternative inQDLParserParser.expression()
.- Specified by:
enterTildeExpression
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitTildeExpression
public void exitTildeExpression(QDLParserParser.TildeExpressionContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced by thetildeExpression
labeled alternative inQDLParserParser.expression()
.- Specified by:
exitTildeExpression
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterDotOp
public void enterDotOp(QDLParserParser.DotOpContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced by thedotOp
labeled alternative inQDLParserParser.expression()
.- Specified by:
enterDotOp
in 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:
exitDotOp
in interfaceQDLParserListener
- Parameters:
dotOpContext
-
-
enterInteger
public void enterInteger(QDLParserParser.IntegerContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced byQDLParserParser.integer()
.- Specified by:
enterInteger
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitInteger
public void exitInteger(QDLParserParser.IntegerContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced byQDLParserParser.integer()
.- Specified by:
exitInteger
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterIntegers
public void enterIntegers(QDLParserParser.IntegersContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced by theintegers
labeled alternative inQDLParserParser.expression()
.- Specified by:
enterIntegers
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitIntegers
public void exitIntegers(QDLParserParser.IntegersContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced by theintegers
labeled alternative inQDLParserParser.expression()
.- Specified by:
exitIntegers
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterF_args
public void enterF_args(QDLParserParser.F_argsContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced byQDLParserParser.f_args()
.- Specified by:
enterF_args
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitF_args
public void exitF_args(QDLParserParser.F_argsContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced byQDLParserParser.f_args()
.- Specified by:
exitF_args
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterRegexMatches
public void enterRegexMatches(QDLParserParser.RegexMatchesContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced by theregexMatches
labeled alternative inQDLParserParser.expression()
.- Specified by:
enterRegexMatches
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitRegexMatches
public void exitRegexMatches(QDLParserParser.RegexMatchesContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced by theregexMatches
labeled alternative inQDLParserParser.expression()
.- Specified by:
exitRegexMatches
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterAltIFExpression
public void enterAltIFExpression(QDLParserParser.AltIFExpressionContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced by thealtIFExpression
labeled alternative inQDLParserParser.expression()
.- Specified by:
enterAltIFExpression
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitAltIFExpression
public void exitAltIFExpression(QDLParserParser.AltIFExpressionContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced by thealtIFExpression
labeled alternative inQDLParserParser.expression()
.- Specified by:
exitAltIFExpression
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterExpressionBlock
public void enterExpressionBlock(QDLParserParser.ExpressionBlockContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced byQDLParserParser.expressionBlock()
.- Specified by:
enterExpressionBlock
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitExpressionBlock
public void exitExpressionBlock(QDLParserParser.ExpressionBlockContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced byQDLParserParser.expressionBlock()
.- Specified by:
exitExpressionBlock
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterConditionalBlock
public void enterConditionalBlock(QDLParserParser.ConditionalBlockContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced byQDLParserParser.conditionalBlock()
.- Specified by:
enterConditionalBlock
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitConditionalBlock
public void exitConditionalBlock(QDLParserParser.ConditionalBlockContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced byQDLParserParser.conditionalBlock()
.- Specified by:
exitConditionalBlock
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterRealInterval
public void enterRealInterval(QDLParserParser.RealIntervalContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced by therealInterval
labeled alternative inQDLParserParser.expression()
.- Specified by:
enterRealInterval
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitRealInterval
public void exitRealInterval(QDLParserParser.RealIntervalContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced by therealInterval
labeled alternative inQDLParserParser.expression()
.- Specified by:
exitRealInterval
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterIntInterval
public void enterIntInterval(QDLParserParser.IntIntervalContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced by theintInterval
labeled alternative inQDLParserParser.expression()
.- Specified by:
enterIntInterval
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitIntInterval
public void exitIntInterval(QDLParserParser.IntIntervalContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced by theintInterval
labeled alternative inQDLParserParser.expression()
.- Specified by:
exitIntInterval
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterStatementBlock
public void enterStatementBlock(QDLParserParser.StatementBlockContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced byQDLParserParser.statementBlock()
.- Specified by:
enterStatementBlock
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitStatementBlock
public void exitStatementBlock(QDLParserParser.StatementBlockContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced byQDLParserParser.statementBlock()
.- Specified by:
exitStatementBlock
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterDocStatementBlock
public void enterDocStatementBlock(QDLParserParser.DocStatementBlockContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced byQDLParserParser.docStatementBlock()
.- Specified by:
enterDocStatementBlock
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitDocStatementBlock
public void exitDocStatementBlock(QDLParserParser.DocStatementBlockContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced byQDLParserParser.docStatementBlock()
.- Specified by:
exitDocStatementBlock
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterIInterval
public void enterIInterval(QDLParserParser.IIntervalContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced byQDLParserParser.iInterval()
.- Specified by:
enterIInterval
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitIInterval
public void exitIInterval(QDLParserParser.IIntervalContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced byQDLParserParser.iInterval()
.- Specified by:
exitIInterval
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterRInterval
public void enterRInterval(QDLParserParser.RIntervalContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced byQDLParserParser.rInterval()
.- Specified by:
enterRInterval
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitRInterval
public void exitRInterval(QDLParserParser.RIntervalContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced byQDLParserParser.rInterval()
.- Specified by:
exitRInterval
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterKeywords
public void enterKeywords(QDLParserParser.KeywordsContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced by thekeywords
labeled alternative inQDLParserParser.expression()
.- Specified by:
enterKeywords
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitKeywords
public void exitKeywords(QDLParserParser.KeywordsContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced by thekeywords
labeled alternative inQDLParserParser.expression()
.- Specified by:
exitKeywords
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterKeyword
public void enterKeyword(QDLParserParser.KeywordContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced byQDLParserParser.keyword()
.- Specified by:
enterKeyword
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitKeyword
public void exitKeyword(QDLParserParser.KeywordContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced byQDLParserParser.keyword()
.- Specified by:
exitKeyword
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterAssertStatement
public void enterAssertStatement(QDLParserParser.AssertStatementContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced byQDLParserParser.assertStatement()
.- Specified by:
enterAssertStatement
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitAssertStatement
public void exitAssertStatement(QDLParserParser.AssertStatementContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced byQDLParserParser.assertStatement()
.- Specified by:
exitAssertStatement
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterAssertStatement2
public void enterAssertStatement2(QDLParserParser.AssertStatement2Context ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced byQDLParserParser.assertStatement2()
.- Specified by:
enterAssertStatement2
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitAssertStatement2
public void exitAssertStatement2(QDLParserParser.AssertStatement2Context ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced byQDLParserParser.assertStatement2()
.- Specified by:
exitAssertStatement2
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterExtract
public void enterExtract(QDLParserParser.ExtractContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced by theextract
labeled alternative inQDLParserParser.expression()
.- Specified by:
enterExtract
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitExtract
public void exitExtract(QDLParserParser.ExtractContext extractContext)
Description copied from interface:QDLParserListener
Exit a parse tree produced by theextract
labeled alternative inQDLParserParser.expression()
.- Specified by:
exitExtract
in interfaceQDLParserListener
- Parameters:
extractContext
- the parse tree
-
enterExtract2
public void enterExtract2(QDLParserParser.Extract2Context ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced by theextract2
labeled alternative inQDLParserParser.expression()
.- Specified by:
enterExtract2
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitExtract2
public void exitExtract2(QDLParserParser.Extract2Context ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced by theextract2
labeled alternative inQDLParserParser.expression()
.- Specified by:
exitExtract2
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterExtract3
public void enterExtract3(QDLParserParser.Extract3Context ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced by theextract3
labeled alternative inQDLParserParser.expression()
.- Specified by:
enterExtract3
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitExtract3
public void exitExtract3(QDLParserParser.Extract3Context ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced by theextract3
labeled alternative inQDLParserParser.expression()
.- Specified by:
exitExtract3
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterExtract4
public void enterExtract4(QDLParserParser.Extract4Context ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced by theextract4
labeled alternative inQDLParserParser.expression()
.- Specified by:
enterExtract4
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitExtract4
public void exitExtract4(QDLParserParser.Extract4Context ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced by theextract4
labeled alternative inQDLParserParser.expression()
.- Specified by:
exitExtract4
in 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:QDLParserListener
Enter a parse tree produced by thedotOp2
labeled alternative inQDLParserParser.expression()
.- Specified by:
enterDotOp2
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitDotOp2
public void exitDotOp2(QDLParserParser.DotOp2Context ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced by thedotOp2
labeled alternative inQDLParserParser.expression()
.- Specified by:
exitDotOp2
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterLambdaDef
public void enterLambdaDef(QDLParserParser.LambdaDefContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced by thelambdaDef
labeled alternative inQDLParserParser.expression()
.- Specified by:
enterLambdaDef
in 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:
exitLambdaDef
in interfaceQDLParserListener
- Parameters:
lambdaContext
-
-
enterBlockStatement
public void enterBlockStatement(QDLParserParser.BlockStatementContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced byQDLParserParser.blockStatement()
.- Specified by:
enterBlockStatement
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitBlockStatement
public void exitBlockStatement(QDLParserParser.BlockStatementContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced byQDLParserParser.blockStatement()
.- Specified by:
exitBlockStatement
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterFloorOrCeilingExpression
public void enterFloorOrCeilingExpression(QDLParserParser.FloorOrCeilingExpressionContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced by thefloorOrCeilingExpression
labeled alternative inQDLParserParser.expression()
.- Specified by:
enterFloorOrCeilingExpression
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitFloorOrCeilingExpression
public void exitFloorOrCeilingExpression(QDLParserParser.FloorOrCeilingExpressionContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced by thefloorOrCeilingExpression
labeled alternative inQDLParserParser.expression()
.- Specified by:
exitFloorOrCeilingExpression
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterUnaryTildeExpression
public void enterUnaryTildeExpression(QDLParserParser.UnaryTildeExpressionContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced by theunaryTildeExpression
labeled alternative inQDLParserParser.expression()
.- Specified by:
enterUnaryTildeExpression
in 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:
exitUnaryTildeExpression
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterModuleExpression
public void enterModuleExpression(QDLParserParser.ModuleExpressionContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced by themoduleExpression
labeled alternative inQDLParserParser.expression()
.- Specified by:
enterModuleExpression
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitModuleExpression
public void exitModuleExpression(QDLParserParser.ModuleExpressionContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced by themoduleExpression
labeled alternative inQDLParserParser.expression()
.- Specified by:
exitModuleExpression
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterSet
public void enterSet(QDLParserParser.SetContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced byQDLParserParser.set()
.- Specified by:
enterSet
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitSet
public void exitSet(QDLParserParser.SetContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced byQDLParserParser.set()
.- Specified by:
exitSet
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterSetThing
public void enterSetThing(QDLParserParser.SetThingContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced by thesetThing
labeled alternative inQDLParserParser.expression()
.- Specified by:
enterSetThing
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitSetThing
public void exitSetThing(QDLParserParser.SetThingContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced by thesetThing
labeled alternative inQDLParserParser.expression()
.- Specified by:
exitSetThing
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterEpsilon
public void enterEpsilon(QDLParserParser.EpsilonContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced by theepsilon
labeled alternative inQDLParserParser.expression()
.- Specified by:
enterEpsilon
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitEpsilon
public void exitEpsilon(QDLParserParser.EpsilonContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced by theepsilon
labeled alternative inQDLParserParser.expression()
.- Specified by:
exitEpsilon
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterLocalStatement
public void enterLocalStatement(QDLParserParser.LocalStatementContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced byQDLParserParser.localStatement()
.- Specified by:
enterLocalStatement
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitLocalStatement
public void exitLocalStatement(QDLParserParser.LocalStatementContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced byQDLParserParser.localStatement()
.- Specified by:
exitLocalStatement
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterIntersectionOrUnion
public void enterIntersectionOrUnion(QDLParserParser.IntersectionOrUnionContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced by theintersectionOrUnion
labeled alternative inQDLParserParser.expression()
.- Specified by:
enterIntersectionOrUnion
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitIntersectionOrUnion
public void exitIntersectionOrUnion(QDLParserParser.IntersectionOrUnionContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced by theintersectionOrUnion
labeled alternative inQDLParserParser.expression()
.- Specified by:
exitIntersectionOrUnion
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterToSet
public void enterToSet(QDLParserParser.ToSetContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced by thetoSet
labeled alternative inQDLParserParser.expression()
.- Specified by:
enterToSet
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitToSet
public void exitToSet(QDLParserParser.ToSetContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced by thetoSet
labeled alternative inQDLParserParser.expression()
.- Specified by:
exitToSet
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterIs_a
public void enterIs_a(QDLParserParser.Is_aContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced by theis_a
labeled alternative inQDLParserParser.expression()
.- Specified by:
enterIs_a
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitIs_a
public void exitIs_a(QDLParserParser.Is_aContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced by theis_a
labeled alternative inQDLParserParser.expression()
.- Specified by:
exitIs_a
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterIsDefinedExpression
public void enterIsDefinedExpression(QDLParserParser.IsDefinedExpressionContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced by theisDefinedExpression
labeled alternative inQDLParserParser.expression()
.- Specified by:
enterIsDefinedExpression
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitIsDefinedExpression
public void exitIsDefinedExpression(QDLParserParser.IsDefinedExpressionContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced by theisDefinedExpression
labeled alternative inQDLParserParser.expression()
.- Specified by:
exitIsDefinedExpression
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterIsDefinedDyadicExpression
public void enterIsDefinedDyadicExpression(QDLParserParser.IsDefinedDyadicExpressionContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced by theisDefinedDyadicExpression
labeled alternative inQDLParserParser.expression()
.- Specified by:
enterIsDefinedDyadicExpression
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitIsDefinedDyadicExpression
public void exitIsDefinedDyadicExpression(QDLParserParser.IsDefinedDyadicExpressionContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced by theisDefinedDyadicExpression
labeled alternative inQDLParserParser.expression()
.- Specified by:
exitIsDefinedDyadicExpression
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterContainsKey
public void enterContainsKey(QDLParserParser.ContainsKeyContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced by thecontainsKey
labeled alternative inQDLParserParser.expression()
.- Specified by:
enterContainsKey
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitContainsKey
public void exitContainsKey(QDLParserParser.ContainsKeyContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced by thecontainsKey
labeled alternative inQDLParserParser.expression()
.- Specified by:
exitContainsKey
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterForAll
public void enterForAll(QDLParserParser.ForAllContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced by theforAll
labeled alternative inQDLParserParser.expression()
.- Specified by:
enterForAll
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitForAll
public void exitForAll(QDLParserParser.ForAllContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced by theforAll
labeled alternative inQDLParserParser.expression()
.- Specified by:
exitForAll
in 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:QDLParserListener
Enter a parse tree produced by theexpressionDyadicOps
labeled alternative inQDLParserParser.expression()
.- Specified by:
enterExpressionDyadicOps
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitExpressionDyadicOps
public void exitExpressionDyadicOps(QDLParserParser.ExpressionDyadicOpsContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced by theexpressionDyadicOps
labeled alternative inQDLParserParser.expression()
.- Specified by:
exitExpressionDyadicOps
in 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:QDLParserListener
Enter a parse tree produced by thefrefDyadicOps
labeled alternative inQDLParserParser.expression()
.- Specified by:
enterFrefDyadicOps
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitFrefDyadicOps
public void exitFrefDyadicOps(QDLParserParser.FrefDyadicOpsContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced by thefrefDyadicOps
labeled alternative inQDLParserParser.expression()
.- Specified by:
exitFrefDyadicOps
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterUnaryTransposeExpression
public void enterUnaryTransposeExpression(QDLParserParser.UnaryTransposeExpressionContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced by theunaryTransposeExpression
labeled alternative inQDLParserParser.expression()
.- Specified by:
enterUnaryTransposeExpression
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitUnaryTransposeExpression
public void exitUnaryTransposeExpression(QDLParserParser.UnaryTransposeExpressionContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced by theunaryTransposeExpression
labeled alternative inQDLParserParser.expression()
.- Specified by:
exitUnaryTransposeExpression
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterTransposeOperator
public void enterTransposeOperator(QDLParserParser.TransposeOperatorContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced by thetransposeOperator
labeled alternative inQDLParserParser.expression()
.- Specified by:
enterTransposeOperator
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitTransposeOperator
public void exitTransposeOperator(QDLParserParser.TransposeOperatorContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced by thetransposeOperator
labeled alternative inQDLParserParser.expression()
.- Specified by:
exitTransposeOperator
in 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:QDLParserListener
Enter a parse tree produced by theswitchExpression
labeled alternative inQDLParserParser.expression()
.- Specified by:
enterSwitchExpression
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitSwitchExpression
public void exitSwitchExpression(QDLParserParser.SwitchExpressionContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced by theswitchExpression
labeled alternative inQDLParserParser.expression()
.- Specified by:
exitSwitchExpression
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterUnaryApplyExpression
public void enterUnaryApplyExpression(QDLParserParser.UnaryApplyExpressionContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced by theunaryApplyExpression
labeled alternative inQDLParserParser.expression()
.- Specified by:
enterUnaryApplyExpression
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitUnaryApplyExpression
public void exitUnaryApplyExpression(QDLParserParser.UnaryApplyExpressionContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced by theunaryApplyExpression
labeled alternative inQDLParserParser.expression()
.- Specified by:
exitUnaryApplyExpression
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterAppliesOperator
public void enterAppliesOperator(QDLParserParser.AppliesOperatorContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced by theappliesOperator
labeled alternative inQDLParserParser.expression()
.- Specified by:
enterAppliesOperator
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitAppliesOperator
public void exitAppliesOperator(QDLParserParser.AppliesOperatorContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced by theappliesOperator
labeled alternative inQDLParserParser.expression()
.- Specified by:
exitAppliesOperator
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterFunctionReference
public void enterFunctionReference(QDLParserParser.FunctionReferenceContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced by thefunctionReference
labeled alternative inQDLParserParser.expression()
.- Specified by:
enterFunctionReference
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterOp_ref
public void enterOp_ref(QDLParserParser.Op_refContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced byQDLParserParser.op_ref()
.- Specified by:
enterOp_ref
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitOp_ref
public void exitOp_ref(QDLParserParser.Op_refContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced byQDLParserParser.op_ref()
.- Specified by:
exitOp_ref
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterOperatorReference
public void enterOperatorReference(QDLParserParser.OperatorReferenceContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced by theoperatorReference
labeled alternative inQDLParserParser.expression()
.- Specified by:
enterOperatorReference
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitOperatorReference
public void exitOperatorReference(QDLParserParser.OperatorReferenceContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced by theoperatorReference
labeled alternative inQDLParserParser.expression()
.- Specified by:
exitOperatorReference
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitFunctionReference
public void exitFunctionReference(QDLParserParser.FunctionReferenceContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced by thefunctionReference
labeled alternative inQDLParserParser.expression()
.- Specified by:
exitFunctionReference
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
enterDyadicFunctionRefernce
public void enterDyadicFunctionRefernce(QDLParserParser.DyadicFunctionRefernceContext ctx)
Description copied from interface:QDLParserListener
Enter a parse tree produced by thedyadicFunctionRefernce
labeled alternative inQDLParserParser.expression()
.- Specified by:
enterDyadicFunctionRefernce
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
exitDyadicFunctionRefernce
public void exitDyadicFunctionRefernce(QDLParserParser.DyadicFunctionRefernceContext ctx)
Description copied from interface:QDLParserListener
Exit a parse tree produced by thedyadicFunctionRefernce
labeled alternative inQDLParserParser.expression()
.- Specified by:
exitDyadicFunctionRefernce
in interfaceQDLParserListener
- Parameters:
ctx
- the parse tree
-
-