10 vector_init(&scan->
hashes);
12 gwion_set_extra(scan, scan->
scanner);
24 vector_release(&scan->
hashes);
26 gwion_lex_destroy(scan->
scanner);
47 m_uint i = vector_size(&scan->
pp->
state) - 1;
48 if (*filename ==
'@') {
49 while (*filename ==
'@') {
63 for (m_uint i = 0; i < vector_size(&scan->
pp->
state) - 1; i++) {
71 const
loc_t loc, const uint error_code) {
ANN void free_ast(MemPool p, Ast)
include this file to use gwion-ast library
ANN void gwlog_related(const char *main, const char *filename, const loc_t loc)
void gwlog_error(const char *main, const char *explain, const char *filename, const loc_t loc, const uint error_code)
ANN void pos_ini(pos_t *pos)
ANN void gwlog_warning(const char *main, const char *filename, const loc_t loc)
int main(int argc, char **argv)
ANEW PP * new_pp(MemPool p, const uint size, const char *name)
ANN void free_pp(MemPool p, PP *pp, void *data)
static ANEW Scanner * new_scanner(AstGetter *arg)
static ANN char * get_filename(Scanner *scan, const PPState *ppstate)
static ANN void free_scanner(Scanner *scan)
static ANN Ast get_ast(MemPool mp, Scanner *s)
ANN Ast parse_pos(struct AstGetter_ *const arg, const pos_t pos)
ANN int scanner_secondary(Scanner *scan, const char *main, const loc_t loc)
static ANN void secondary(Scanner *scan)
int scanner_error(Scanner *scan, const char *main, const char *explain, const loc_t loc, const uint error_code)