Cthulhu  0.2.10
Cthulhu compiler collection
json_ast.h File Reference
#include <ctu_json_api.h>
#include "json/json.h"
#include "core/where.h"
Include dependency graph for json_ast.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  json_member_t
 

Functions

CT_LOCAL json_member_t json_member (text_view_t key, json_t value)
 
CT_LOCAL json_t json_ast_string (where_t where, text_view_t string)
 
CT_LOCAL json_t json_ast_integer (where_t where, mpz_t integer)
 
CT_LOCAL json_t json_ast_float (where_t where, float real)
 
CT_LOCAL json_t json_ast_boolean (where_t where, bool boolean)
 
CT_LOCAL json_t json_ast_array (where_t where, typevec_t array)
 
CT_LOCAL json_t json_ast_object (scan_t *scan, where_t where, const typevec_t *members)
 
CT_LOCAL json_t json_ast_empty_object (where_t where)
 
CT_LOCAL json_t json_ast_null (where_t where)
 

Function Documentation

◆ json_ast_array()

CT_LOCAL json_t json_ast_array ( where_t  where,
typevec_t  array 
)

Definition at line 70 of file ast.c.

◆ json_ast_boolean()

CT_LOCAL json_t json_ast_boolean ( where_t  where,
bool  boolean 
)

Definition at line 63 of file ast.c.

◆ json_ast_empty_object()

CT_LOCAL json_t json_ast_empty_object ( where_t  where)

Definition at line 105 of file ast.c.

◆ json_ast_float()

CT_LOCAL json_t json_ast_float ( where_t  where,
float  real 
)

Definition at line 56 of file ast.c.

◆ json_ast_integer()

CT_LOCAL json_t json_ast_integer ( where_t  where,
mpz_t  integer 
)

Definition at line 49 of file ast.c.

◆ json_ast_null()

CT_LOCAL json_t json_ast_null ( where_t  where)

Definition at line 112 of file ast.c.

◆ json_ast_object()

CT_LOCAL json_t json_ast_object ( scan_t scan,
where_t  where,
const typevec_t members 
)

Definition at line 77 of file ast.c.

◆ json_ast_string()

CT_LOCAL json_t json_ast_string ( where_t  where,
text_view_t  string 
)

Definition at line 42 of file ast.c.

◆ json_member()

CT_LOCAL json_member_t json_member ( text_view_t  key,
json_t  value 
)

Definition at line 32 of file ast.c.