new_contents: #[ // SPDX-License-Identifier: Apache-2.0
  #[ // Copyright 2019 Eotvos Lorand University, Budapest, Hungary
  
  from utils.codegen import format_type
  from compiler_common import unique_everseen
  
  #[ #pragma once
  
  #[ #include <stdbool.h>
  #[ #include <stdint.h>
  
  def short_name(name):
      return name[:-2] if name.endswith('_t') else name
  
  
  for ee in hlir.errors + hlir.enums:
      name = short_name(ee.c_name)
      #[ #define T4P4S_TYPE_${name}
  
  for data in hlir.news.data:
      #[ #define T4P4S_TYPE_${data.name}
  
  
  for ee in hlir.errors + hlir.enums:
      kind = 'enum' if ee.node_type == 'Type_Enum' else 'error'
      name = short_name(ee.c_name)
      #{ typedef enum {
      for m in ee.members:
          #[     ${m.c_name},
      #} } ${name}_t;
      #[
      #[ extern const char* ${kind}_value_names_${ee.name}[${len(ee.members)}];
      #[
  #[
  
subject: Add enum header