Next: , Previous: x1f4_slip_program, Up: Imperative Language Interpreter Functions


4.8.3.16 x1f4_stat_program

extern int x1f4_stat_program
    (void *data, int (*this) (void *, const char *, unsigned),
     const char *program, struct x1f4_c1record_type *c1record,
     struct x1f4_c1lookup_type *c1lookup);

The x1f4_stat_program function details the syntax error that prevented successful program parsing.

See Error Reporting.

The text describing the encountered error is output via the this method called with the error reporting data context as its first argument and the address and the length of the string for each of the strings making up the error report as its second and third arguments. The data and this arguments are not further interpreted.

The program program textual representation is used for building the error message (which may include determining the line number on which the program parsing failed).

The error record c1record is expected to have been setup by the failed program parsing function call.

See struct x1f4_c1record_type.

Extra information required to format the error report is collected from the parsing context description c1lookup argument.

See struct x1f4_c1lookup_type.

The extra information that may be required for formatting the error report is: