#include <grammar.h>
Data Fields | |
isc_mem_t * | mctx |
isc_log_t * | lctx |
isc_lex_t * | lexer |
unsigned int | errors |
unsigned int | warnings |
isc_token_t | token |
isc_boolean_t | seen_eof |
We are at the end of all input. | |
isc_boolean_t | ungotten |
The current token has been pushed back. | |
cfg_obj_t * | open_files |
The stack of currently active files, represented as a configuration list of configuration strings. The head is the top-level file, subsequent elements (if any) are the nested include files, and the last element is the file currently being parsed. | |
cfg_obj_t * | closed_files |
Names of files that we have parsed and closed and were previously on the open_file list. We keep these objects around after closing the files because the file names may still be referenced from other configuration objects for use in reporting semantic errors after parsing is complete. | |
unsigned int | line |
Current line number. We maintain our own copy of this so that it is available even when a file has just been closed. | |
unsigned int | flags |
Parser context flags, used for maintaining state from one token to the next. | |
isc_refcount_t | references |
cfg_parsecallback_t | callback |
void * | callbackarg |
Definition at line 180 of file grammar.h.
Definition at line 181 of file grammar.h.
Referenced by cfg_create_obj(), cfg_create_tuple(), cfg_obj_destroy(), cfg_parse_listelt(), cfg_parse_mapbody(), cfg_parser_create(), cfg_parser_destroy(), create_listelt(), create_map(), create_string(), delete_zoneconf(), free_listelt(), free_string(), free_tuple(), parse_token(), and parse_updatepolicy().
Definition at line 183 of file grammar.h.
Referenced by cfg_gettoken(), cfg_parse_buffer(), cfg_parser_create(), cfg_parser_destroy(), cfg_parser_reset(), cfg_ungettoken(), parse_token(), parser_complain(), and parser_openfile().
unsigned int cfg_parser::errors |
Definition at line 184 of file grammar.h.
Referenced by cfg_parser_create(), cfg_parser_error(), cfg_parser_reset(), and parse2().
unsigned int cfg_parser::warnings |
Definition at line 185 of file grammar.h.
Referenced by cfg_parser_create(), cfg_parser_reset(), and cfg_parser_warning().
Definition at line 186 of file grammar.h.
Referenced by cfg_getstringtoken(), cfg_gettoken(), cfg_parse_boolean(), cfg_parse_dscp(), cfg_parse_kv_tuple(), cfg_parse_mapbody(), cfg_parse_netprefix(), cfg_parse_qstring(), cfg_parse_rawport(), cfg_parse_spacelist(), cfg_parse_special(), cfg_parse_uint32(), cfg_parser_create(), cfg_ungettoken(), parse_addrmatchelt(), parse_boolorauto(), parse_enum_or_other(), parse_eof(), parse_list(), parse_logfile(), parse_logseverity(), parse_masterselement(), parse_matchtype(), parse_maybe_optional_keyvalue(), parse_optional_class(), parse_optional_facility(), parse_optional_uint32(), parse_portrange(), parse_qstringornone(), parse_querysource(), parse_semicolon(), parse_server_key_kludge(), parse_serverid(), parse_sizeval(), parse_sockaddrnameport(), parse_sockaddrsub(), parse_token(), parse_ttlval(), parse_unsupported(), parse_updatepolicy(), parse_ustring(), parser_complain(), and token_addr().
We are at the end of all input.
Definition at line 189 of file grammar.h.
Referenced by cfg_gettoken(), cfg_parser_create(), cfg_parser_reset(), and cfg_ungettoken().
The current token has been pushed back.
Definition at line 192 of file grammar.h.
Referenced by cfg_gettoken(), cfg_parser_create(), cfg_parser_reset(), cfg_ungettoken(), and parser_complain().
The stack of currently active files, represented as a configuration list of configuration strings. The head is the top-level file, subsequent elements (if any) are the nested include files, and the last element is the file currently being parsed.
Definition at line 201 of file grammar.h.
Referenced by cfg_gettoken(), cfg_parser_create(), cfg_parser_destroy(), current_file(), have_current_file(), and parser_openfile().
Names of files that we have parsed and closed and were previously on the open_file list. We keep these objects around after closing the files because the file names may still be referenced from other configuration objects for use in reporting semantic errors after parsing is complete.
Definition at line 212 of file grammar.h.
Referenced by cfg_gettoken(), cfg_parser_create(), and cfg_parser_destroy().
unsigned int cfg_parser::line |
Current line number. We maintain our own copy of this so that it is available even when a file has just been closed.
Definition at line 219 of file grammar.h.
Referenced by cfg_create_obj(), cfg_gettoken(), cfg_parser_create(), cfg_parser_reset(), and parser_complain().
unsigned int cfg_parser::flags |
Parser context flags, used for maintaining state from one token to the next.
Reference counter
Definition at line 227 of file grammar.h.
Referenced by cfg_parser_create(), parse_matchname(), and parse_matchtype().
Definition at line 228 of file grammar.h.
Referenced by cfg_parser_attach(), cfg_parser_create(), and cfg_parser_destroy().
Definition at line 230 of file grammar.h.
Referenced by cfg_parser_create(), cfg_parser_setcallback(), and parse_symtab_elt().
void* cfg_parser::callbackarg |
Definition at line 231 of file grammar.h.
Referenced by cfg_parser_create(), cfg_parser_setcallback(), and parse_symtab_elt().