72 parser_arg() : _object(0), _error(0), _status(1) {}
73 parser_arg(
void *obj) : _object(obj), _error(0), _status(1) {}
81 void *object() {
return _object; }
82 void set_object(
void *obj) { _object = obj; }
83 Error *error() {
return _error; }
84 void set_error(
Error *obj) { _error = obj; }
85 int status() {
return _status; }
86 void set_status(
int val = 0) { _status = val; }
108void parse_error(
parser_arg *arg,
const char *s,
const int line_num = 0,
const char *context = 0);
109void parse_error(
const string &msg,
const int line_num,
const char *context = 0);
114#include "parser-util.h"
A class for error processing.
top level DAP object to house generic methods
Pass parameters by reference to a parser.