diff options
| author | kartofen <kartofen.mail.0@protonmail.com> | 2025-08-26 01:17:10 +0300 |
|---|---|---|
| committer | kartofen <kartofen.mail.0@protonmail.com> | 2025-08-26 01:17:10 +0300 |
| commit | 46e786db9d1b48b8fbc3502e36f093b755f3e09f (patch) | |
| tree | 9e279216e68f3fe4b0849d1e07184fe674dc551f /util/dict.h | |
| parent | 1c83c514c8108fccfec9764da5e4563b98eb871b (diff) | |
grammar for the grammar and lexing and parsing of a new language lbp
Diffstat (limited to 'util/dict.h')
| -rw-r--r-- | util/dict.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/util/dict.h b/util/dict.h index 109c07a..2da8e6f 100644 --- a/util/dict.h +++ b/util/dict.h @@ -28,6 +28,8 @@ struct dict { size_t num_levels; }; +#define DICT_INIT(strings_, nstrings_, char_to_bit_) (struct dict){.strings = strings_, .nstrings = nstrings_, .char_to_bit = char_to_bit_} + int dict_compile(struct dict *d); void dict_free(struct dict *d); void dict_print(struct dict *d); |
