code: def p_type_def_2(t):
      
      id = t[2]
      body = t[3]
      lineno = t.lineno(1)
      sortno = t.lineno(4) + 0.5
      if id_unique(id, 'enum', lineno):
          name_dict[id] = enum_info(id, body, lineno, sortno)
docs: type_def : ENUM ID enum_body SEMI