final public void entity_declaration(Context c) throws ParseException {
        String id;
        Graph entity = new Graph(library);
    jj_consume_token(ENTITY);
    id = identifier();
    jj_consume_token(IS);
            c.addAsEntity(id, entity);
    entity_header(entity);
    jj_consume_token(END);
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case ENTITY:
      jj_consume_token(ENTITY);
      break;
    default:
      jj_la1[7] = jj_gen;
      ;
    }
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case basic_identifier:
    case extended_identifier:
      identifier();
      break;
    default:
      jj_la1[8] = jj_gen;
      ;
    }
    jj_consume_token(SEMICOLON);
  }