Cthulhu  0.2.10
Cthulhu compiler collection
json_actions.h File Reference
#include "json_scan.h"
#include "core/analyze.h"
#include "core/compiler.h"
#include "interop/flex.h"
Include dependency graph for json_actions.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define YY_USER_ACTION   json_action(yylloc, yytext, yyleng);
 
#define YYLLOC_DEFAULT(current, rhs, offset)   json_update(&(current), rhs, offset)
 
#define YY_USER_INIT   json_init(yylloc);
 

Functions

CT_BEGIN_API CT_LOCAL void json_action (INOUT_NOTNULL json_where_t *where, const char *text, size_t len)
 
CT_LOCAL void json_init (OUT_NOTNULL json_where_t *where)
 
CT_LOCAL void json_update (INOUT_NOTNULL json_where_t *where, STA_READS(steps) const json_where_t *offsets, int steps)
 

Macro Definition Documentation

◆ YY_USER_ACTION

#define YY_USER_ACTION   json_action(yylloc, yytext, yyleng);

Definition at line 15 of file json_actions.h.

◆ YY_USER_INIT

#define YY_USER_INIT   json_init(yylloc);

Definition at line 17 of file json_actions.h.

◆ YYLLOC_DEFAULT

#define YYLLOC_DEFAULT (   current,
  rhs,
  offset 
)    json_update(&(current), rhs, offset)

Definition at line 16 of file json_actions.h.

Function Documentation

◆ json_action()

CT_BEGIN_API CT_LOCAL void json_action ( INOUT_NOTNULL json_where_t where,
const char *  text,
size_t  len 
)

◆ json_init()

CT_LOCAL void json_init ( OUT_NOTNULL json_where_t where)

◆ json_update()

CT_LOCAL void json_update ( INOUT_NOTNULL json_where_t where,
STA_READS(steps) const json_where_t offsets,
int  steps 
)