semanalyser.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:PyCOOLC 作者: aalhour 项目源码 文件源码
def __init__(self):
        """
        TODO
        :param program_ast: TODO
        :return: None
        """
        super(PyCoolSemanticAnalyser, self).__init__()

        # Initialize the internal program ast instance.
        self._program_ast = None

        # Classes Map: maps each class name (key: String) to its class instance (value: AST.Class).
        # Dict[AnyStr, AST.Class]
        self._classes_map = dict()

        # Class Inheritance Graph: maps a parent class (key: String) to a unique collection of its 
        #   children classes (value: set).
        # Dict[AnyStr, Set]
        self._inheritance_graph = defaultdict(set)

    # #########################################################################
    #                                PUBLIC                                   #
    # #########################################################################
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号