# Generated from C:/Users/1379fgh/Documents/Compiler/Assignment4\Threecode.g4 by ANTLR 4.9.1
from antlr4 import *

# This class defines a complete listener for a parse tree produced by ThreecodeParser.
class ThreecodeListener(ParseTreeListener):

    # Enter a parse tree produced by ThreecodeParser#program.
    def enterProgram(self, ctx):
        pass

    # Exit a parse tree produced by ThreecodeParser#program.
    def exitProgram(self, ctx):
        pass


    # Enter a parse tree produced by ThreecodeParser#mainClass.
    def enterMainClass(self, ctx):
        pass

    # Exit a parse tree produced by ThreecodeParser#mainClass.
    def exitMainClass(self, ctx):
        pass


    # Enter a parse tree produced by ThreecodeParser#mainClassDeclare.
    def enterMainClassDeclare(self, ctx):
        pass

    # Exit a parse tree produced by ThreecodeParser#mainClassDeclare.
    def exitMainClassDeclare(self, ctx):
        pass


    # Enter a parse tree produced by ThreecodeParser#mainMethodDecl.
    def enterMainMethodDecl(self, ctx):
        pass

    # Exit a parse tree produced by ThreecodeParser#mainMethodDecl.
    def exitMainMethodDecl(self, ctx):
        pass


    # Enter a parse tree produced by ThreecodeParser#mainMethodBody.
    def enterMainMethodBody(self, ctx):
        pass

    # Exit a parse tree produced by ThreecodeParser#mainMethodBody.
    def exitMainMethodBody(self, ctx):
        pass


    # Enter a parse tree produced by ThreecodeParser#classDeclare.
    def enterClassDeclare(self, ctx):
        pass

    # Exit a parse tree produced by ThreecodeParser#classDeclare.
    def exitClassDeclare(self, ctx):
        pass


    # Enter a parse tree produced by ThreecodeParser#varDeclation.
    def enterVarDeclation(self, ctx):
        pass

    # Exit a parse tree produced by ThreecodeParser#varDeclation.
    def exitVarDeclation(self, ctx):
        pass


    # Enter a parse tree produced by ThreecodeParser#methodDecl.
    def enterMethodDecl(self, ctx):
        pass

    # Exit a parse tree produced by ThreecodeParser#methodDecl.
    def exitMethodDecl(self, ctx):
        pass


    # Enter a parse tree produced by ThreecodeParser#methodBody.
    def enterMethodBody(self, ctx):
        pass

    # Exit a parse tree produced by ThreecodeParser#methodBody.
    def exitMethodBody(self, ctx):
        pass


    # Enter a parse tree produced by ThreecodeParser#type.
    def enterType(self, ctx):
        pass

    # Exit a parse tree produced by ThreecodeParser#type.
    def exitType(self, ctx):
        pass


    # Enter a parse tree produced by ThreecodeParser#statement_if.
    def enterStatement_if(self, ctx):
        pass

    # Exit a parse tree produced by ThreecodeParser#statement_if.
    def exitStatement_if(self, ctx):
        pass


    # Enter a parse tree produced by ThreecodeParser#statement_lb.
    def enterStatement_lb(self, ctx):
        pass

    # Exit a parse tree produced by ThreecodeParser#statement_lb.
    def exitStatement_lb(self, ctx):
        pass


    # Enter a parse tree produced by ThreecodeParser#statement_while.
    def enterStatement_while(self, ctx):
        pass

    # Exit a parse tree produced by ThreecodeParser#statement_while.
    def exitStatement_while(self, ctx):
        pass


    # Enter a parse tree produced by ThreecodeParser#statement_system.
    def enterStatement_system(self, ctx):
        pass

    # Exit a parse tree produced by ThreecodeParser#statement_system.
    def exitStatement_system(self, ctx):
        pass


    # Enter a parse tree produced by ThreecodeParser#statement_equalwithbra.
    def enterStatement_equalwithbra(self, ctx):
        pass

    # Exit a parse tree produced by ThreecodeParser#statement_equalwithbra.
    def exitStatement_equalwithbra(self, ctx):
        pass


    # Enter a parse tree produced by ThreecodeParser#statement_equal.
    def enterStatement_equal(self, ctx):
        pass

    # Exit a parse tree produced by ThreecodeParser#statement_equal.
    def exitStatement_equal(self, ctx):
        pass


    # Enter a parse tree produced by ThreecodeParser#ifst.
    def enterIfst(self, ctx):
        pass

    # Exit a parse tree produced by ThreecodeParser#ifst.
    def exitIfst(self, ctx):
        pass


    # Enter a parse tree produced by ThreecodeParser#exp.
    def enterExp(self, ctx):
        pass

    # Exit a parse tree produced by ThreecodeParser#exp.
    def exitExp(self, ctx):
        pass


    # Enter a parse tree produced by ThreecodeParser#identifier.
    def enterIdentifier(self, ctx):
        pass

    # Exit a parse tree produced by ThreecodeParser#identifier.
    def exitIdentifier(self, ctx):
        pass


    # Enter a parse tree produced by ThreecodeParser#binOperator.
    def enterBinOperator(self, ctx):
        pass

    # Exit a parse tree produced by ThreecodeParser#binOperator.
    def exitBinOperator(self, ctx):
        pass



# Generated from C:/Users/1379fgh/Documents/Compiler/Assignment4\Threecode.g4 by ANTLR 4.9.1
from antlr4 import *

# This class defines a complete listener for a parse tree produced by ThreecodeParser.
class ThreecodeListener(ParseTreeListener):

    # Enter a parse tree produced by ThreecodeParser#program.
    def enterProgram(self, ctx):
        pass

    # Exit a parse tree produced by ThreecodeParser#program.
    def exitProgram(self, ctx):
        pass


    # Enter a parse tree produced by ThreecodeParser#mainClass.
    def enterMainClass(self, ctx):
        pass

    # Exit a parse tree produced by ThreecodeParser#mainClass.
    def exitMainClass(self, ctx):
        pass


    # Enter a parse tree produced by ThreecodeParser#mainClassDeclare.
    def enterMainClassDeclare(self, ctx):
        pass

    # Exit a parse tree produced by ThreecodeParser#mainClassDeclare.
    def exitMainClassDeclare(self, ctx):
        pass


    # Enter a parse tree produced by ThreecodeParser#mainMethodDecl.
    def enterMainMethodDecl(self, ctx):
        pass

    # Exit a parse tree produced by ThreecodeParser#mainMethodDecl.
    def exitMainMethodDecl(self, ctx):
        pass


    # Enter a parse tree produced by ThreecodeParser#mainMethodBody.
    def enterMainMethodBody(self, ctx):
        pass

    # Exit a parse tree produced by ThreecodeParser#mainMethodBody.
    def exitMainMethodBody(self, ctx):
        pass


    # Enter a parse tree produced by ThreecodeParser#classDeclare.
    def enterClassDeclare(self, ctx):
        pass

    # Exit a parse tree produced by ThreecodeParser#classDeclare.
    def exitClassDeclare(self, ctx):
        pass


    # Enter a parse tree produced by ThreecodeParser#varDeclation.
    def enterVarDeclation(self, ctx):
        pass

    # Exit a parse tree produced by ThreecodeParser#varDeclation.
    def exitVarDeclation(self, ctx):
        pass


    # Enter a parse tree produced by ThreecodeParser#methodDecl.
    def enterMethodDecl(self, ctx):
        pass

    # Exit a parse tree produced by ThreecodeParser#methodDecl.
    def exitMethodDecl(self, ctx):
        pass


    # Enter a parse tree produced by ThreecodeParser#methodBody.
    def enterMethodBody(self, ctx):
        pass

    # Exit a parse tree produced by ThreecodeParser#methodBody.
    def exitMethodBody(self, ctx):
        pass


    # Enter a parse tree produced by ThreecodeParser#type.
    def enterType(self, ctx):
        pass

    # Exit a parse tree produced by ThreecodeParser#type.
    def exitType(self, ctx):
        pass


    # Enter a parse tree produced by ThreecodeParser#statement_if.
    def enterStatement_if(self, ctx):
        pass

    # Exit a parse tree produced by ThreecodeParser#statement_if.
    def exitStatement_if(self, ctx):
        pass


    # Enter a parse tree produced by ThreecodeParser#statement_lb.
    def enterStatement_lb(self, ctx):
        pass

    # Exit a parse tree produced by ThreecodeParser#statement_lb.
    def exitStatement_lb(self, ctx):
        pass


    # Enter a parse tree produced by ThreecodeParser#statement_while.
    def enterStatement_while(self, ctx):
        pass

    # Exit a parse tree produced by ThreecodeParser#statement_while.
    def exitStatement_while(self, ctx):
        pass


    # Enter a parse tree produced by ThreecodeParser#statement_system.
    def enterStatement_system(self, ctx):
        pass

    # Exit a parse tree produced by ThreecodeParser#statement_system.
    def exitStatement_system(self, ctx):
        pass


    # Enter a parse tree produced by ThreecodeParser#statement_equalwithbra.
    def enterStatement_equalwithbra(self, ctx):
        pass

    # Exit a parse tree produced by ThreecodeParser#statement_equalwithbra.
    def exitStatement_equalwithbra(self, ctx):
        pass


    # Enter a parse tree produced by ThreecodeParser#statement_equal.
    def enterStatement_equal(self, ctx):
        pass

    # Exit a parse tree produced by ThreecodeParser#statement_equal.
    def exitStatement_equal(self, ctx):
        pass


    # Enter a parse tree produced by ThreecodeParser#ifst.
    def enterIfst(self, ctx):
        pass

    # Exit a parse tree produced by ThreecodeParser#ifst.
    def exitIfst(self, ctx):
        pass


    # Enter a parse tree produced by ThreecodeParser#exp.
    def enterExp(self, ctx):
        pass

    # Exit a parse tree produced by ThreecodeParser#exp.
    def exitExp(self, ctx):
        pass


    # Enter a parse tree produced by ThreecodeParser#identifier.
    def enterIdentifier(self, ctx):
        pass

    # Exit a parse tree produced by ThreecodeParser#identifier.
    def exitIdentifier(self, ctx):
        pass


    # Enter a parse tree produced by ThreecodeParser#binOperator.
    def enterBinOperator(self, ctx):
        pass

    # Exit a parse tree produced by ThreecodeParser#binOperator.
    def exitBinOperator(self, ctx):
        pass



# Generated from C:/Users/1379fgh/Documents/Compiler/Assignment4\Threecode.g4 by ANTLR 4.9.1 # This class defines a complete listener for a parse tree produced by ThreecodeParser. # Enter a parse tree produced by ThreecodeParser#program. # Exit a parse tree produced by ThreecodeParser#program. # Enter a parse tree produced by ThreecodeParser#mainClass. # Exit a parse tree produced by ThreecodeParser#mainClass. # Enter a parse tree produced by ThreecodeParser#mainClassDeclare. # Exit a parse tree produced by ThreecodeParser#mainClassDeclare. # Enter a parse tree produced by ThreecodeParser#mainMethodDecl. # Exit a parse tree produced by ThreecodeParser#mainMethodDecl. # Enter a parse tree produced by ThreecodeParser#mainMethodBody. # Exit a parse tree produced by ThreecodeParser#mainMethodBody. # Enter a parse tree produced by ThreecodeParser#classDeclare. # Exit a parse tree produced by ThreecodeParser#classDeclare. # Enter a parse tree produced by ThreecodeParser#varDeclation. # Exit a parse tree produced by ThreecodeParser#varDeclation. # Enter a parse tree produced by ThreecodeParser#methodDecl. # Exit a parse tree produced by ThreecodeParser#methodDecl. # Enter a parse tree produced by ThreecodeParser#methodBody. # Exit a parse tree produced by ThreecodeParser#methodBody. # Enter a parse tree produced by ThreecodeParser#type. # Exit a parse tree produced by ThreecodeParser#type. # Enter a parse tree produced by ThreecodeParser#statement_if. # Exit a parse tree produced by ThreecodeParser#statement_if. # Enter a parse tree produced by ThreecodeParser#statement_lb. # Exit a parse tree produced by ThreecodeParser#statement_lb. # Enter a parse tree produced by ThreecodeParser#statement_while. # Exit a parse tree produced by ThreecodeParser#statement_while. # Enter a parse tree produced by ThreecodeParser#statement_system. # Exit a parse tree produced by ThreecodeParser#statement_system. # Enter a parse tree produced by ThreecodeParser#statement_equalwithbra. # Exit a parse tree produced by ThreecodeParser#statement_equalwithbra. # Enter a parse tree produced by ThreecodeParser#statement_equal. # Exit a parse tree produced by ThreecodeParser#statement_equal. # Enter a parse tree produced by ThreecodeParser#ifst. # Exit a parse tree produced by ThreecodeParser#ifst. # Enter a parse tree produced by ThreecodeParser#exp. # Exit a parse tree produced by ThreecodeParser#exp. # Enter a parse tree produced by ThreecodeParser#identifier. # Exit a parse tree produced by ThreecodeParser#identifier. # Enter a parse tree produced by ThreecodeParser#binOperator. # Exit a parse tree produced by ThreecodeParser#binOperator.