From 3fb5430080199a6d92a63f8259fe4a88df9b83ba Mon Sep 17 00:00:00 2001 From: JSDurand Date: Tue, 1 Feb 2022 12:22:34 +0800 Subject: need to stop abusing hash tables Hash tables take too much space! If I use hash tables, the length of the input will be severely limited, to an unacceptable extent. So we have to use arrays instead. --- src/reader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/reader.c') diff --git a/src/reader.c b/src/reader.c index 7676d2d..0ab9b69 100644 --- a/src/reader.c +++ b/src/reader.c @@ -536,7 +536,7 @@ read_grammar_from_bnf(const str * const restrict s) Grammar *g = new_grammar(); - if (build_grammar(g, rules, names)) { + if (build_grammar(g, rules, names, NULL)) { fleprintf0("Failed to build the grammar\n"); map_list(names, destroy_cpa_and_free_all); destroy_list(names, 0); -- cgit v1.2.3-18-g5258