Go to the source code of this file.
#define ASSERT_PARSE |
( |
|
test, |
|
|
|
print_err, |
|
|
|
err_value |
|
) |
| |
Value:do if (!(test)) { \
print_err; \
return err_value; \
} while(0)
#define ERR_BAD_NAME_BEGIN |
( |
|
read | ) |
|
Value:fprintf(stderr, \
"%s:%u: Names and types must begin with an alphanumeric character or '_'.", \
read.file_path().c_str(), \
(unsigned)(read.line()))
#define ERR_EMPTY_FIELD |
( |
|
read, |
|
|
|
type |
|
) |
| |
Value:fprintf(stderr, \
"%s:%u: syntax error: %s name must not be empty.\n", \
read.file_path().c_str(), \
(unsigned)(read.line()), \
type)
#define ERR_LOCATION |
( |
|
read | ) |
fprintf(stderr, "%s:%u: ", read.file_path().c_str(), (unsigned)(read.line())); |
#define VALID_NAME_BEGIN |
( |
|
token | ) |
((isalnum((token))) || ((token) == '_')) |
#define VALID_NAME_TOKEN |
( |
|
token | ) |
((isalnum((token))) || ((token) == '_')) |
#define VALID_VALUE_TOKEN |
( |
|
token | ) |
((isalnum((token))) || ((token) == '_') || ((token) == '.') || ((token) == '-')) |