#include <parser.h>
Collaboration diagram for parser_arg:
Public Member Functions | |
Error * | error () |
void * | object () |
parser_arg (void *obj) | |
parser_arg () | |
void | set_error (Error *obj) |
void | set_object (void *obj) |
void | set_status (int val=0) |
int | status () |
virtual | ~parser_arg () |
Public Attributes | |
Error * | _error |
void * | _object |
int | _status |
parser_arg
is used to pass parameters to the bison parsers and get error codes and objects in return. If status()
is true, then the object()
returns a pointer to the object built during the parse process. If status()
is false, then the error()
returns a pointer to an Error object.
Note that the object()
mfunc returns a void pointer.
Definition at line 65 of file parser.h.
virtual parser_arg::~parser_arg | ( | ) | [inline, virtual] |
void parser_arg::set_error | ( | Error * | obj | ) | [inline] |
void parser_arg::set_object | ( | void * | obj | ) | [inline] |
void parser_arg::set_status | ( | int | val = 0 |
) | [inline] |
int parser_arg::status | ( | ) | [inline] |
void* parser_arg::_object |