Cthulhu
0.2.10
Cthulhu compiler collection
json_actions.h
Go to the documentation of this file.
1
// SPDX-License-Identifier: LGPL-3.0-only
2
#pragma once
3
4
#include "
json_scan.h
"
5
6
#include "
core/analyze.h
"
7
#include "
core/compiler.h
"
8
9
CT_BEGIN_API
10
11
CT_LOCAL
void
json_action
(
INOUT_NOTNULL
json_where_t
*where,
const
char
*text,
size_t
len);
12
CT_LOCAL
void
json_init
(
OUT_NOTNULL
json_where_t
*where);
13
CT_LOCAL
void
json_update
(
INOUT_NOTNULL
json_where_t
*where,
STA_READS
(steps)
const
json_where_t
*offsets,
int
steps);
14
15
#define YY_USER_ACTION json_action(yylloc, yytext, yyleng);
16
#define YYLLOC_DEFAULT(current, rhs, offset) json_update(&(current), rhs, offset)
17
#define YY_USER_INIT json_init(yylloc);
18
19
CT_END_API
20
21
#include "
interop/flex.h
"
// IWYU pragma: export
analyze.h
compiler.h
flex.h
STA_READS
#define STA_READS(size)
annotate a parameter as reading expr elements
INOUT_NOTNULL
#define INOUT_NOTNULL
Definition:
analyze.h:101
OUT_NOTNULL
#define OUT_NOTNULL
Definition:
analyze.h:99
CT_BEGIN_API
#define CT_BEGIN_API
Definition:
compiler.h:129
CT_LOCAL
#define CT_LOCAL
Definition:
compiler.h:166
CT_END_API
#define CT_END_API
Definition:
compiler.h:130
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)
json_action
CT_BEGIN_API CT_LOCAL void json_action(INOUT_NOTNULL json_where_t *where, const char *text, size_t len)
json_scan.h
json_where_t
Definition:
json_scan.h:18
support
json
src
json_actions.h
Generated by
1.9.1