This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def Analyse(obj): | |
""" Dynamic Dispatch based on object's class type. | |
This will call the AnalyseClassName | |
Example: if obj is of type Let, then call AnalyseLet, | |
if it is of type IfElse call AnalyseIfElse | |
""" | |
# Get obj's class name | |
class_name = obj.__class__.__name__ | |
# Create the function name as a string |