CliXoN
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Data Structures | Macros | Typedefs | Functions | Variables
clixon_xml_parse.l File Reference
#include "clixon_config.h"
#include <stdio.h>
#include <string.h>
#include <stdint.h>
#include "clixon_xml_parse.tab.h"
#include <cligen/cligen.h>
#include "clixon_xml.h"
#include "clixon_xml_parse.h"

Data Structures

union  YYSTYPE
 
struct  xml_parse_yacc_arg
 

Macros

#define YY_DECL   int clixon_xml_parselex(void *_ya)
 
#define YY_NO_INPUT
 
#define _YA   ((struct xml_parse_yacc_arg *)_ya)
 

Typedefs

typedef union YYSTYPE YYSTYPE
 

Functions

int clixon_xml_parseparse (void *_ya)
 
int clixon_xml_parsel_init (struct xml_parse_yacc_arg *ya)
 
int clixon_xml_parsel_exit (struct xml_parse_yacc_arg *ya)
 
int clixon_xml_parsel_linenr (void)
 
int clixon_xml_parselex (void *)
 
int clixon_xml_parseparse (void *)
 
int clixon_xml_parsewrap (void)
 
 return (CHAR)
 

Variables

YYSTYPE clixon_xml_parselval
 
x START s STATEA s CMNT s STR
s TEXTDECL s STRDQ s STRSQ
< START > return 
NAME { clixon_xml_parselval.string = strdup(yytext)
 
< START >< START >< STARTn { _YA->ya_linenum++
 
< START ><?xml"{BEGIN(TEXTDECL);returnBTEXT;}
<START> return 
ESLASH { BEGIN(STATEA)
 
< START ><!--"{BEGIN(CMNT);returnBCOMMENT;}
<START></"returnBSLASH;< START >
return
clixon_xml_parsetext { BEGIN(STATEA)
 
< START > return CHAR { clixon_xml_parselval.string = yytext
 
_YA ya_linenum
 
< CMNT > return ECOMMENT { BEGIN(START)
 
< CMNT >< TEXTDECL > encoding
return 
ENC
 
< TEXTDECL > version return VER
 

Macro Definition Documentation

#define _YA   ((struct xml_parse_yacc_arg *)_ya)
#define YY_DECL   int clixon_xml_parselex(void *_ya)
#define YY_NO_INPUT

Typedef Documentation

Function Documentation

int clixon_xml_parsel_exit ( struct xml_parse_yacc_arg ya)

Exit xml scanner

int clixon_xml_parsel_init ( struct xml_parse_yacc_arg ya)

Initialize XML scanner.

int clixon_xml_parsel_linenr ( void  )
int clixon_xml_parselex ( void *  )
int clixon_xml_parseparse ( void *  )
int clixon_xml_parseparse ( void *  _ya)
int clixon_xml_parsewrap ( void  )
return ( CHAR  )

Variable Documentation

YYSTYPE clixon_xml_parselval
<START> return* clixon_xml_parsetext { BEGIN(STATEA)
<CMNT> return ECOMMENT { BEGIN(START)
<CMNT><TEXTDECL> encoding return ENC
<START><?xml"{BEGIN(TEXTDECL);returnBTEXT;}<START> return ESLASH { BEGIN(STATEA)
<STATEA></"{BEGIN(START);returnBSLASH;}<STATEA><!--"{BEGIN(CMNT);returnBCOMMENT;}<STATEA><{BEGIN(START);return*clixon_xml_parsetext;}<STATEA> n { _YA->ya_linenum++
< CMNT > n _YA ya_linenum