From 2824d28a6fd65e0a1f70a1f8b149a198e7e7fa8d Mon Sep 17 00:00:00 2001 From: Erik Oosting Date: Mon, 11 Dec 2023 16:04:26 +0100 Subject: added labels to each rule --- gen/ANFListener.py | 96 +++++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 84 insertions(+), 12 deletions(-) (limited to 'gen/ANFListener.py') diff --git a/gen/ANFListener.py b/gen/ANFListener.py index cbceaab..81322bb 100644 --- a/gen/ANFListener.py +++ b/gen/ANFListener.py @@ -8,30 +8,102 @@ else: # This class defines a complete listener for a parse tree produced by ANFParser. class ANFListener(ParseTreeListener): - # Enter a parse tree produced by ANFParser#aexp. - def enterAexp(self, ctx:ANFParser.AexpContext): + # Enter a parse tree produced by ANFParser#var. + def enterVar(self, ctx:ANFParser.VarContext): pass - # Exit a parse tree produced by ANFParser#aexp. - def exitAexp(self, ctx:ANFParser.AexpContext): + # Exit a parse tree produced by ANFParser#var. + def exitVar(self, ctx:ANFParser.VarContext): pass - # Enter a parse tree produced by ANFParser#funcall. - def enterFuncall(self, ctx:ANFParser.FuncallContext): + # Enter a parse tree produced by ANFParser#num. + def enterNum(self, ctx:ANFParser.NumContext): pass - # Exit a parse tree produced by ANFParser#funcall. - def exitFuncall(self, ctx:ANFParser.FuncallContext): + # Exit a parse tree produced by ANFParser#num. + def exitNum(self, ctx:ANFParser.NumContext): pass - # Enter a parse tree produced by ANFParser#cexp. - def enterCexp(self, ctx:ANFParser.CexpContext): + # Enter a parse tree produced by ANFParser#add. + def enterAdd(self, ctx:ANFParser.AddContext): pass - # Exit a parse tree produced by ANFParser#cexp. - def exitCexp(self, ctx:ANFParser.CexpContext): + # Exit a parse tree produced by ANFParser#add. + def exitAdd(self, ctx:ANFParser.AddContext): + pass + + + # Enter a parse tree produced by ANFParser#sub. + def enterSub(self, ctx:ANFParser.SubContext): + pass + + # Exit a parse tree produced by ANFParser#sub. + def exitSub(self, ctx:ANFParser.SubContext): + pass + + + # Enter a parse tree produced by ANFParser#mul. + def enterMul(self, ctx:ANFParser.MulContext): + pass + + # Exit a parse tree produced by ANFParser#mul. + def exitMul(self, ctx:ANFParser.MulContext): + pass + + + # Enter a parse tree produced by ANFParser#div. + def enterDiv(self, ctx:ANFParser.DivContext): + pass + + # Exit a parse tree produced by ANFParser#div. + def exitDiv(self, ctx:ANFParser.DivContext): + pass + + + # Enter a parse tree produced by ANFParser#lam. + def enterLam(self, ctx:ANFParser.LamContext): + pass + + # Exit a parse tree produced by ANFParser#lam. + def exitLam(self, ctx:ANFParser.LamContext): + pass + + + # Enter a parse tree produced by ANFParser#call. + def enterCall(self, ctx:ANFParser.CallContext): + pass + + # Exit a parse tree produced by ANFParser#call. + def exitCall(self, ctx:ANFParser.CallContext): + pass + + + # Enter a parse tree produced by ANFParser#atom. + def enterAtom(self, ctx:ANFParser.AtomContext): + pass + + # Exit a parse tree produced by ANFParser#atom. + def exitAtom(self, ctx:ANFParser.AtomContext): + pass + + + # Enter a parse tree produced by ANFParser#let. + def enterLet(self, ctx:ANFParser.LetContext): + pass + + # Exit a parse tree produced by ANFParser#let. + def exitLet(self, ctx:ANFParser.LetContext): + pass + + + # Enter a parse tree produced by ANFParser#fc. + def enterFc(self, ctx:ANFParser.FcContext): + pass + + # Exit a parse tree produced by ANFParser#fc. + def exitFc(self, ctx:ANFParser.FcContext): pass -- cgit 1.4.1-2-gfad0