summary refs log tree commit diff
path: root/gen/ANFVisitor.py
blob: 6c6c6a4b442ca7ad150feffd1787eca9fdce139b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
# Generated from /home/erik/PycharmProjects/pythonProject/grammar/ANF.g4 by ANTLR 4.13.1
from antlr4 import *
if "." in __name__:
    from .ANFParser import ANFParser
else:
    from ANFParser import ANFParser

# This class defines a complete generic visitor for a parse tree produced by ANFParser.

class ANFVisitor(ParseTreeVisitor):

    # Visit a parse tree produced by ANFParser#prog.
    def visitProg(self, ctx:ANFParser.ProgContext):
        return self.visitChildren(ctx)


    # Visit a parse tree produced by ANFParser#def.
    def visitDef(self, ctx:ANFParser.DefContext):
        return self.visitChildren(ctx)


    # Visit a parse tree produced by ANFParser#true.
    def visitTrue(self, ctx:ANFParser.TrueContext):
        return self.visitChildren(ctx)


    # Visit a parse tree produced by ANFParser#false.
    def visitFalse(self, ctx:ANFParser.FalseContext):
        return self.visitChildren(ctx)


    # Visit a parse tree produced by ANFParser#var.
    def visitVar(self, ctx:ANFParser.VarContext):
        return self.visitChildren(ctx)


    # Visit a parse tree produced by ANFParser#num.
    def visitNum(self, ctx:ANFParser.NumContext):
        return self.visitChildren(ctx)


    # Visit a parse tree produced by ANFParser#str.
    def visitStr(self, ctx:ANFParser.StrContext):
        return self.visitChildren(ctx)


    # Visit a parse tree produced by ANFParser#add.
    def visitAdd(self, ctx:ANFParser.AddContext):
        return self.visitChildren(ctx)


    # Visit a parse tree produced by ANFParser#sub.
    def visitSub(self, ctx:ANFParser.SubContext):
        return self.visitChildren(ctx)


    # Visit a parse tree produced by ANFParser#mul.
    def visitMul(self, ctx:ANFParser.MulContext):
        return self.visitChildren(ctx)


    # Visit a parse tree produced by ANFParser#div.
    def visitDiv(self, ctx:ANFParser.DivContext):
        return self.visitChildren(ctx)


    # Visit a parse tree produced by ANFParser#gt.
    def visitGt(self, ctx:ANFParser.GtContext):
        return self.visitChildren(ctx)


    # Visit a parse tree produced by ANFParser#lt.
    def visitLt(self, ctx:ANFParser.LtContext):
        return self.visitChildren(ctx)


    # Visit a parse tree produced by ANFParser#eq.
    def visitEq(self, ctx:ANFParser.EqContext):
        return self.visitChildren(ctx)


    # Visit a parse tree produced by ANFParser#bsl.
    def visitBsl(self, ctx:ANFParser.BslContext):
        return self.visitChildren(ctx)


    # Visit a parse tree produced by ANFParser#bsr.
    def visitBsr(self, ctx:ANFParser.BsrContext):
        return self.visitChildren(ctx)


    # Visit a parse tree produced by ANFParser#and.
    def visitAnd(self, ctx:ANFParser.AndContext):
        return self.visitChildren(ctx)


    # Visit a parse tree produced by ANFParser#or.
    def visitOr(self, ctx:ANFParser.OrContext):
        return self.visitChildren(ctx)


    # Visit a parse tree produced by ANFParser#xor.
    def visitXor(self, ctx:ANFParser.XorContext):
        return self.visitChildren(ctx)


    # Visit a parse tree produced by ANFParser#lam.
    def visitLam(self, ctx:ANFParser.LamContext):
        return self.visitChildren(ctx)


    # Visit a parse tree produced by ANFParser#call.
    def visitCall(self, ctx:ANFParser.CallContext):
        return self.visitChildren(ctx)


    # Visit a parse tree produced by ANFParser#atom.
    def visitAtom(self, ctx:ANFParser.AtomContext):
        return self.visitChildren(ctx)


    # Visit a parse tree produced by ANFParser#let.
    def visitLet(self, ctx:ANFParser.LetContext):
        return self.visitChildren(ctx)


    # Visit a parse tree produced by ANFParser#if.
    def visitIf(self, ctx:ANFParser.IfContext):
        return self.visitChildren(ctx)


    # Visit a parse tree produced by ANFParser#fc.
    def visitFc(self, ctx:ANFParser.FcContext):
        return self.visitChildren(ctx)



del ANFParser