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

Data Structures

union  YYSTYPE
 
struct  clicon_json_yacc_arg
 

Macros

#define YY_DECL   int clixon_json_parselex(void *_yy)
 
#define YY_NO_INPUT
 
#define _JY   ((struct clicon_json_yacc_arg *)_yy)
 
#define MAXBUF   4*4*64*1024
 

Typedefs

typedef union YYSTYPE YYSTYPE
 

Functions

int clixon_json_parseparse (void *_jy)
 
int json_scan_init (struct clicon_json_yacc_arg *jy)
 
int json_scan_exit (struct clicon_json_yacc_arg *jy)
 
int json_parse_init (struct clicon_json_yacc_arg *jy)
 
int json_parse_exit (struct clicon_json_yacc_arg *jy)
 
int clixon_json_parselex (void *)
 
int clixon_json_parseparse (void *)
 
void clixon_json_parseerror (void *, char *)
 
int clixon_json_parsewrap (void)
 
int json_scan_init (struct clicon_json_yacc_arg *jy)
 
int json_scan_exit (struct clicon_json_yacc_arg *jy)
 

Variables

YYSTYPE clixon_json_parselval
 
x START s STRING s ESCAPE
< START >< START
n { _JY->jy_linenum++
 
< START ><< EOF >< START >
< START > return 
J_DQ { BEGIN(STRING)
 
< STARTnull { return J_NULL
 
< STARTfalse { return J_FALSE
 
< STARTtrue { return J_TRUE
 
< START > return J_NUMBER { clixon_json_parselval.string = strdup(yytext)
 
clixon_json_parselval string = strdup(yytext)
 
return J_CHAR { clixon_json_parselval.string = strdup(yytext)
 

Macro Definition Documentation

#define _JY   ((struct clicon_json_yacc_arg *)_yy)
#define MAXBUF   4*4*64*1024
#define YY_DECL   int clixon_json_parselex(void *_yy)
#define YY_NO_INPUT

Typedef Documentation

Function Documentation

void clixon_json_parseerror ( void *  ,
char *   
)
int clixon_json_parselex ( void *  )
int clixon_json_parseparse ( void *  )
int clixon_json_parseparse ( void *  _jy)
int clixon_json_parsewrap ( void  )
int json_parse_exit ( struct clicon_json_yacc_arg jy)
int json_parse_init ( struct clicon_json_yacc_arg jy)
int json_scan_exit ( struct clicon_json_yacc_arg jy)
int json_scan_exit ( struct clicon_json_yacc_arg jy)
int json_scan_init ( struct clicon_json_yacc_arg jy)

Initialize scanner.

int json_scan_init ( struct clicon_json_yacc_arg jy)

Initialize scanner.

Variable Documentation

YYSTYPE clixon_json_parselval
<START> false { return J_FALSE
< STRING >< STRING > n { _JY->jy_linenum++
<START> null { return J_NULL
K_MUST string = strdup(yytext)
<START> true { return J_TRUE