Cthulhu  0.2.10
Cthulhu compiler collection
query_scan.h
Go to the documentation of this file.
1 // SPDX-License-Identifier: LGPL-3.0-only
2 #pragma once
3 
4 #include "scan/node.h" // IWYU pragma: export
5 
6 #include <gmp.h>
7 
8 #define QUERYLTYPE where_t
9 
10 typedef struct logger_t logger_t;
11 
12 typedef struct query_scan_t
13 {
15 } query_scan_t;
16 
18 
19 void query_parse_integer(mpz_t integer, scan_t *scan, where_t where, const char *text, int base);
20 void query_parse_string(text_t *string, scan_t *scan, where_t where, const char *text, size_t length);
void query_parse_string(text_t *string, scan_t *scan, where_t where, const char *text, size_t length)
Definition: query_scan.c:24
void query_parse_integer(mpz_t integer, scan_t *scan, where_t where, const char *text, int base)
Definition: query_scan.c:13
query_scan_t * query_scan_context(scan_t *scan)
Definition: query_scan.c:8
a logging sink
Definition: notify.c:14
logger_t * reports
Definition: query_scan.h:14
a source file scanner
Definition: scan.h:24
a range of text
Definition: text.h:14
a location inside a scanner locations are inclusive and 0-based
Definition: where.h:23