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

Go to the source code of this file.

Data Structures

struct  json_where_t
 
struct  json_scan_t
 

Macros

#define JSONLTYPE   json_where_t
 

Functions

CT_LOCAL json_scan_tjson_scan_context (scan_t *scan)
 
CT_LOCAL void json_parse_integer (mpz_t integer, scan_t *scan, where_t where, const char *text, int base)
 
CT_LOCAL void json_parse_float (float *real, scan_t *scan, where_t where, const char *text)
 
CT_LOCAL void json_parse_string (text_view_t *string, scan_t *scan, json_where_t where, const char *text, size_t length)
 

Macro Definition Documentation

◆ JSONLTYPE

#define JSONLTYPE   json_where_t

Definition at line 11 of file json_scan.h.

Function Documentation

◆ json_parse_float()

CT_LOCAL void json_parse_float ( float *  real,
scan_t scan,
where_t  where,
const char *  text 
)

Definition at line 30 of file scan.c.

◆ json_parse_integer()

CT_LOCAL void json_parse_integer ( mpz_t  integer,
scan_t scan,
where_t  where,
const char *  text,
int  base 
)

Definition at line 20 of file scan.c.

◆ json_parse_string()

CT_LOCAL void json_parse_string ( text_view_t string,
scan_t scan,
json_where_t  where,
const char *  text,
size_t  length 
)

Definition at line 42 of file scan.c.

◆ json_scan_context()

CT_LOCAL json_scan_t* json_scan_context ( scan_t scan)

Definition at line 15 of file scan.c.