From a8bd5e9d85ac9928bd29add82e887f82642af893 Mon Sep 17 00:00:00 2001 From: JSDurand Date: Mon, 31 Jan 2022 09:23:20 +0800 Subject: test/check_cnp: working algorithm I now have a working algorithm in test/check_cnp. It can correctly parse the grammar for an esoteric language called "Brainfuck". This language does not matter. What matters is that it contains parentheses. So this shows that at least for grammars as complex as parentheses, this parser works well. Haha. --- src/list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/list.c') diff --git a/src/list.c b/src/list.c index 62933a0..1b9f4d4 100644 --- a/src/list.c +++ b/src/list.c @@ -148,7 +148,7 @@ copy_list(List *dest, List *source, copyer copyf) H_ATTR void * -list_nth(const List * const ls, NUM n) +list_nth(const List * const restrict ls, NUM n) { return *(ls->array+n); } -- cgit v1.2.3-18-g5258