code: def p_type_def(self, p):
          '''type_def : IDENT COLON OBJECT SEMI
                      | IDENT COLON LCURLY enum_list RCURLY SEMI'''
          if len(p) == 5:
              p[0] = (p[1], p[3])
          elif len(p) == 7:
              p[0] = (p[1], p[4]f p_type_def(self, p):
          '''type_def : IDENT COLON OBJECT SEMI
                      | IDENT COLON LCURLY enum_list RCURLY SEMI'''
          if len(p) == 5:
              p[0] = (p[1], p[3])
          elif len(p) == 7:
              p[0] = (p[1], p[4])
docs: type_def : IDENT COLON OBJECT SEMI
                      | IDENT COLON LCURLY enum_list RCURLY SEMI