1 /*************************************************************************
2 * Copyright (C) 2024 Francesco Palumbo <phranz.dev@gmail.com>, Naples (Italy)
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <https://www.gnu.org/licenses/>.
16 *************************************************************************/
22 typedef struct vec_token_t vec_token_t
;
23 typedef struct vec_token_t phrase_t
;
24 typedef struct block_t block_t
;
52 const char* toknames[] = { \
77 typedef struct token_t
{
83 unsigned long long lineno
;
85 void (*free
)(struct token_t
*);
88 token_t
* copy_token(token_t
*);
89 token_t
* token_t_init(token_t
*);
90 void token_t_free(token_t
*);
92 void release_phrase(vec_token_t
*);
93 phrase_t
* copy_phrase(phrase_t
*);