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

+15
View File
@@ -0,0 +1,15 @@
import testparser;
import std.stdio;
int main()
{
return 0;
}
unittest
{
string input = "\a\b\t\n\v\f\rt";
p_context_t context;
p_context_init(&context, input);
assert(p_parse(&context) == P_SUCCESS);
}