aboutsummaryrefslogtreecommitdiff
path: root/util/dict.h
diff options
context:
space:
mode:
authorkartofen <kartofen.mail.0@protonmail.com>2025-08-26 01:17:10 +0300
committerkartofen <kartofen.mail.0@protonmail.com>2025-08-26 01:17:10 +0300
commit46e786db9d1b48b8fbc3502e36f093b755f3e09f (patch)
tree9e279216e68f3fe4b0849d1e07184fe674dc551f /util/dict.h
parent1c83c514c8108fccfec9764da5e4563b98eb871b (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.h2
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);