def __repr__(self):
        if self.type > token.NT_OFFSET:
            res = "(%s" % symbol.sym_name[self.type]
        else:
            res = "(%s" % token.tok_name[self.type]
        if self.value:
            res += ", %s" % repr(self.value)
        if self.children:
            res += ", [%s]" % ', '.join(map(str, self.children))
        return res + ")"
dataset/ETHPy150Open anandology/pyjamas/pgen/lib2to3/pgen2/parse.py/Node.__repr__/original