Lines Matching refs:format
49 return 'Module({0.name}, {0.dfns})'.format(self)
57 return 'Type({0.name}, {0.value})'.format(self)
65 return 'Constructor({0.name}, {0.fields})'.format(self)
82 return "{}{} {}".format(self.type, extra, self.name)
92 return 'Field({0.type}{1})'.format(self, extra)
94 return 'Field({0.type}, {0.name}{1})'.format(self, extra)
103 return 'Sum({0.types}, {0.attributes})'.format(self)
105 return 'Sum({0.types})'.format(self)
114 return 'Product({0.fields}, {0.attributes})'.format(self)
116 return 'Product({0.fields})'.format(self)
171 print('Redefinition of constructor {}'.format(key))
172 print('Defined in {} and {}'.format(conflict, name))
199 print('Undefined type {}, used in {}'.format(t, uses))
229 return 'Syntax error on line {0.lineno}: {0.msg}'.format(self)
276 'Expected "module" (found {})'.format(self.cur_token.value),
380 'Unmatched {} (found {})'.format(kind, self.cur_token.kind),