libdap++  Updated for version 3.13.3
parser.h File Reference
#include "Error.h"
Include dependency graph for parser.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  libdap::parser_arg
 Pass parameters by reference to a parser. More...
 

Namespaces

 libdap
 

Macros

#define FALSE   0
 
#define ID_MAX   256
 
#define TRUE   1
 
#define YY_NO_UNPUT   1
 
#define YYDEBUG   1
 

Functions

int libdap::check_byte (const char *val)
 Is the value a valid byte? More...
 
int libdap::check_float32 (const char *val)
 Is the value a valid float? More...
 
int libdap::check_float64 (const char *val)
 
int libdap::check_int16 (const char *val)
 Is the value a valid integer? More...
 
int libdap::check_int32 (const char *val)
 
int libdap::check_uint16 (const char *val)
 
int libdap::check_uint32 (const char *val)
 
int libdap::check_url (const char *val)
 Is the value a valid URL? More...
 
bool libdap::is_keyword (string id, const string &keyword)
 
void libdap::save_str (char *dst, const char *src, const int line_num)
 Save a string to a temporary variable during the parse. More...
 
void libdap::save_str (string &dst, const char *src, const int)
 
parse_error

Generate error messages for the various parsers.

parser_error() generates error messages for the various parsers used by libdap. There are two versions of the function, one which takes a const char *message and a const int line_num and writes the message and line number too stderr and a second which takes an additional parser_arg arg parameter and writes the error message into an Error object which is returned to the caller via the arg parameter.

Note
{The second version of this function also accepts a third parameter (const char *context) which can be used to provide an additional line of information beyond what is in the string message.}
Returns
void
void libdap::parse_error (parser_arg *arg, const char *msg, const int line_num, const char *context)
 
void libdap::parse_error (const string &msg, const int line_num, const char *context)
 

Macro Definition Documentation

#define ID_MAX   256

Definition at line 47 of file parser.h.

Referenced by libdap::save_str().

#define YY_NO_UNPUT   1

Definition at line 45 of file parser.h.

#define YYDEBUG   1

Definition at line 43 of file parser.h.