예제 #1
0
파일: ast.py 프로젝트: abrown/tiger-rpython
 def to_string(self):
     return '%s(name=%s, args=%s)' % (self.__class__.__name__, self.name,
                                      list_to_string(self.arguments))
예제 #2
0
파일: ast.py 프로젝트: abrown/tiger-rpython
 def to_string(self):
     return '%s(declarations=%s, expressions=%s)' % (
         self.__class__.__name__, list_to_string(
             self.declarations), list_to_string(self.expressions))
예제 #3
0
파일: ast.py 프로젝트: abrown/tiger-rpython
 def to_string(self):
     return '%s(length=%d, array=%s)' % (
         self.__class__.__name__, self.length, list_to_string(self.array))
예제 #4
0
파일: ast.py 프로젝트: abrown/tiger-rpython
 def to_string(self):
     return '%s(type=%s, values=%s)' % (self.__class__.__name__,
                                        self.type.to_string(),
                                        list_to_string(self.values))
예제 #5
0
파일: ast.py 프로젝트: abrown/tiger-rpython
 def to_string(self):
     return '%s(name=%s, parameters=%s, return_type=%s)' % (
         self.__class__.__name__, self.name, list_to_string(
             self.parameters), nullable_to_string(self.return_type))