static token_t * lexer_add_token_simple(glw_root_t *gr, token_t *prev, rstr_t *f, int line, token_type_t type) { token_t *t = glw_view_token_alloc(gr); lexer_link_token(prev, f, line, t, type); return t; }
static token_t * lexer_add_token_string(glw_root_t *gr, token_t *prev, rstr_t *f, int line, const char *start, const char *end, token_type_t type) { token_t *t = glw_view_token_alloc(gr); t->t_rstring = rstr_allocl(start, end - start); lexer_link_token(prev, f, line, t, type); return t; }