Cthulhu  0.2.10
Cthulhu compiler collection
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
scan.c File Reference
#include "arena/arena.h"
#include "base/util.h"
#include "json_scan.h"
#include "core/macros.h"
#include "cthulhu/events/events.h"
#include "cthulhu/util/text.h"
#include "std/set.h"
#include <stdlib.h>
Include dependency graph for scan.c:

Go to the source code of this file.

Functions

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

Function Documentation

◆ json_parse_float()

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()

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()

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()

json_scan_t* json_scan_context ( scan_t scan)

Definition at line 15 of file scan.c.

◆ jsonerror()

void jsonerror ( where_t where,
void *  state,
scan_t scan,
const char *  msg 
)

Definition at line 62 of file scan.c.