![]() |
yumapro
21.10T-9
YumaPro SDK
|
YANG Language Parser. More...
![]() |
Modules | |
Parser Utilities | |
YANG Parser Control Block and General Access Functions. | |
Functions | |
status_t | yang_parse_from_filespec (const xmlChar *filespec, yang_pcb_t *pcb, yang_parsetype_t ptyp, boolean isyang) |
Parse a file as a YANG module. More... | |
YANG Language Parser.
YANG Language Parser Entry Function.
status_t yang_parse_from_filespec | ( | const xmlChar * | filespec, |
yang_pcb_t * | pcb, | ||
yang_parsetype_t | ptyp, | ||
boolean | isyang | ||
) |
Parse a file as a YANG module.
Error messages are printed by this function!!
On successful return: An ncx_module is filled out and validated as the file is parsed. If no errors:
TOP, IMPORT: the module is loaded into the definition registry with the ncx_add_to_registry function INCLUDE: the submodule is loaded into the top-level module, specified in the pcb
filespec | absolute path or relative path This string is used as-is without adjustment. |
pcb | parser control block used as very top-level struct |
ptyp | parser call type YANG_PT_TOP == called from top-level file YANG_PT_INCLUDE == called from an include-stmt in a file YANG_PT_IMPORT == called from an import-stmt in a file |
isyang | TRUE if a YANG file is expected FALSE if a YIN file is expected |