Add backslash escape codes - close #19

This commit is contained in:
josh committed 2024-03-29 16:45:54 -04:00
1 parent 1d1590dfda
commit 5b2cbe53e6
5 files changed
+132

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
#include "testparser.h"
#include <assert.h>
#include <string.h>
int main()
{
char const * input = "\a\b\t\n\v\f\rt";
p_context_t context;
p_context_init(&context, (uint8_t const *)input, strlen(input));
assert(p_parse(&context) == P_SUCCESS);
return 0;
}