예제 #1
0
파일: ast.py 프로젝트: abrown/tiger-rpython
 def to_string(self):
     return '%s(condition=%s, body_if_true=%s, body_if_false=%s)' % (
         self.__class__.__name__, self.condition.to_string(),
         self.body_if_true.to_string(),
         nullable_to_string(self.body_if_false))
예제 #2
0
파일: ast.py 프로젝트: abrown/tiger-rpython
 def to_string(self):
     return '%s(exp=%s, next=%s)' % (self.__class__.__name__,
                                     self.expression.to_string(),
                                     nullable_to_string(self.next))
예제 #3
0
파일: ast.py 프로젝트: abrown/tiger-rpython
 def to_string(self):
     return '%s(name=%s, next=%s, declaration=%s)' % (
         self.__class__.__name__, self.name, nullable_to_string(
             self.next), nullable_to_string(self.declaration))
예제 #4
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))
예제 #5
0
파일: ast.py 프로젝트: abrown/tiger-rpython
 def to_string(self):
     return '%s(name=%s, type=%s)' % (self.__class__.__name__, self.name,
                                      nullable_to_string(self.type))
예제 #6
0
파일: ast.py 프로젝트: abrown/tiger-rpython
 def to_string(self):
     return '%s(name=%s, type=%s, expression=%s)' % (
         self.__class__.__name__, self.name, nullable_to_string(
             self.type), self.expression.to_string())