Add token_names API - close #17

This commit is contained in:
josh committed 2024-03-29 15:02:01 -04:00
1 parent 5dfd62b756
commit 1c91dcd298
5 files changed
+46

No files matched your search

+3
View File
@@ -34,4 +34,7 @@ unittest
p_context_init(&context, input);
assert(p_parse(&context) == P_DECODE_ERROR);
assert(p_position(&context) == p_position_t(5, 4));
assert(p_token_names[TOKEN_a] == "a");
assert(p_token_names[TOKEN_num] == "num");
}