Up: Recording Procedural Program Parse Errors   [Index]


6.5.1.1 Recording Procedural Program Parse Errors Example

Some struct x1f4_a1record_type record must be declared.

    struct x1f4_a1record_type a1record;

The error collector must be linked into the parsing context.

    struct x1f4_a1_type attributes;

    a1.bcollect_set.eerecord_data = &a1record;

Finally, the program parser must be indicated that it should record errors.

    status = x1f4_init_shuffle(..., ..., X1f4_A1_BCOLLECT | ..., ...);