Annotation of parser3/src/include/pa_error.h, revision 1.1
1.1 ! paf 1: /*
! 2: $Id: pa_table.C,v 1.1 2001/01/29 15:56:04 paf Exp $
! 3: */
! 4:
! 5: #ifndef PA_ERROR_H
! 6: #define PA_ERROR_H
! 7:
! 8: #include <setjmp.h>
! 9:
! 10: #include "pa_types.h"
! 11: #include "pa_string.h"
! 12:
! 13: class Error {
! 14: public:
! 15:
! 16: Error() : valid(false) {}
! 17: static void die(char *acomment);
! 18: bool begin();
! 19: void raise(String *aproblem_source, char *comment_fmt, ...);
! 20:
! 21: String *problem_source();
! 22: char *comment();
! 23:
! 24: private:
! 25:
! 26: bool valid;
! 27:
! 28: // address for long jump to jump to
! 29: jmp_buf mark;
! 30:
! 31: String *fproblem_source;
! 32: char fcomment[MAX_STRING];
! 33: };
! 34:
! 35: #endif
E-mail: