Switch to new API - close #8

The new API is more C-like and will allow consistency across all future
supported language targets.
This commit is contained in:
josh committed 2023-07-12 15:46:13 -04:00
1 parent e0e5e87338
commit 7a1b4064c1
15 files changed
+611 -481

No files matched your search

+3 -2
View File
@@ -9,6 +9,7 @@ int main()
unittest
{
string input = "ab";
auto parser = new Parser(input);
assert(parser.parse() == P_SUCCESS);
p_context_t context;
p_context_init(&context, input);
assert(p_parse(&context) == P_SUCCESS);
}