summaryrefslogtreecommitdiff
path: root/src/list.h
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2022-01-31 09:23:20 +0800
committerJSDurand <mmemmew@gmail.com>2022-01-31 09:23:20 +0800
commita8bd5e9d85ac9928bd29add82e887f82642af893 (patch)
tree74e377f9fccffc2779ff97fa0bd8ad180b9c865c /src/list.h
parente555c88b8107caf886da229444c2bed1aaef6c2c (diff)
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.
Diffstat (limited to 'src/list.h')
-rw-r--r--src/list.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/list.h b/src/list.h
index 76dde0a..33bdf3e 100644
--- a/src/list.h
+++ b/src/list.h
@@ -45,7 +45,7 @@ void *copy_num(void *);
/* upon failure return 1 */
BOOL copy_list(List *dest, List *source, copyer copyf);
-void *list_nth(const List * const ls, NUM n);
+void *list_nth(CCR_MOD(List *) ls, NUM n);
NUM list_length(const List * const restrict ls);