CliXoN
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Functions | Variables
clixon_xml_parse.y File Reference
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <cligen/cligen.h>
#include "clixon_err.h"
#include "clixon_log.h"
#include "clixon_xml.h"
#include "clixon_xml_parse.h"

Macros

#define _YA   ((struct xml_parse_yacc_arg *)_ya)
 

Functions

union {
   char *   string
 
clixon_xml_parseerror (void *_ya, char *s)
 
static int xml_attr_new (struct xml_parse_yacc_arg *ya, cxobj *xn, char *name, char *val)
 
static int xml_parse_content (struct xml_parse_yacc_arg *ya, char *str)
 
static int xml_parse_version (struct xml_parse_yacc_arg *ya, char *ver)
 
static int xml_parse_id (struct xml_parse_yacc_arg *ya, char *name, char *namespace)
 
static int xml_parse_endslash_pre (struct xml_parse_yacc_arg *ya)
 
static int xml_parse_endslash_mid (struct xml_parse_yacc_arg *ya)
 
static int xml_parse_endslash_post (struct xml_parse_yacc_arg *ya)
 
static int xml_parse_bslash1 (struct xml_parse_yacc_arg *ya, char *name)
 
static int xml_parse_bslash2 (struct xml_parse_yacc_arg *ya, char *namespace, char *name)
 
static char * xml_parse_ida (struct xml_parse_yacc_arg *ya, char *namespace, char *name)
 
static int xml_parse_attr (struct xml_parse_yacc_arg *ya, char *id, char *val)
 
 clicon_debug (3,"emnt1 -> > list etg")
 
etg etg<</NAME%s > if (xml_parse_bslash1(_YA, $2)< 0) YYABORT
 
 clicon_debug (3,"content -> CHAR %s", $1)
 

Variables

topxml __pad0__
 
topxml topxml list ACCEPT
 
 YYACCEPT
 
dcl list { clicon_debug(3, "topxml->dcl list ACCEPT")
 
dcl __pad1__
 
dcl dcl info encode
 
info __pad2__
 
 etg { xml_parse_endslash_post(_YA)
 
etg __pad3__
 
BSLASH NAME
 
BSLASH< 0) YYABORT;clicon_debug(3,"etg->
<</NAME:NAME> list list 
content { clicon_debug(3, "list -> content")
 
content __pad4__
 
content content emnt
 
 comment { clicon_debug(3, "content -> comment")
 
 CHAR { if (xml_parse_content(_YA, $1) < 0) YYABORT
 
comment __pad5__ { clicon_debug(3, "content -> ")
 
attrs __pad6__
 
aid __pad7__
 
NAME __pad8__
 
NAME att == NULL) YYABORT
 

Macro Definition Documentation

#define _YA   ((struct xml_parse_yacc_arg *)_ya)

Function Documentation

clicon_debug ( ,
"emnt1 ->  ,
list etg  
)
clicon_debug ( ,
"content -> CHAR %s"  ,
  $1 
)
union @2 clixon_xml_parseerror ( void *  _ya,
char *  s 
)
etg etg<</NAME%s> if ( )
static int xml_attr_new ( struct xml_parse_yacc_arg ya,
cxobj *  xn,
char *  name,
char *  val 
)
static
static int xml_parse_attr ( struct xml_parse_yacc_arg ya,
char *  id,
char *  val 
)
static
static int xml_parse_bslash1 ( struct xml_parse_yacc_arg ya,
char *  name 
)
static
static int xml_parse_bslash2 ( struct xml_parse_yacc_arg ya,
char *  namespace,
char *  name 
)
static
static int xml_parse_content ( struct xml_parse_yacc_arg ya,
char *  str 
)
static
static int xml_parse_endslash_mid ( struct xml_parse_yacc_arg ya)
static
static int xml_parse_endslash_post ( struct xml_parse_yacc_arg ya)
static
static int xml_parse_endslash_pre ( struct xml_parse_yacc_arg ya)
static
static int xml_parse_id ( struct xml_parse_yacc_arg ya,
char *  name,
char *  namespace 
)
static
static char* xml_parse_ida ( struct xml_parse_yacc_arg ya,
char *  namespace,
char *  name 
)
static
static int xml_parse_version ( struct xml_parse_yacc_arg ya,
char *  ver 
)
static

Variable Documentation

topxml __pad0__
dcl __pad1__
info __pad2__
etg __pad3__
content __pad4__
comment __pad5__ { clicon_debug(3, "content -> ")
attrs __pad6__
aid __pad7__
NAME __pad8__
topxml topxml list ACCEPT
NAME att == NULL) YYABORT
CHAR { if (xml_parse_content(_YA, $1) < 0) YYABORT
comment { clicon_debug(3, "content -> comment")
content { clicon_debug(3, "list -> content")
dcl dcl info encode
< KEYWORD > list { clicon_debug(3, "topxml->dcl list ACCEPT")
BSLASH NAME
char* string
YYACCEPT