Upgrade to nom v5

Error handling has changed, affecting the error variants LCI exports,
and macros are replaced by functions, so all the parsing code has been rewritten.
This commit is contained in:
Oliver Hamlet
2019-06-30 11:25:23 +01:00
parent cb19ec084a
commit 4db34be2c9
6 changed files with 280 additions and 264 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ void test_lci_get_error_message() {
return_code = lci_get_error_message(&message);
assert(return_code == LCI_OK);
assert(message != nullptr);
assert(strcmp(message, "An error was encountered in the parser \"SeparatedList\" while parsing the expression \"file(\\\"Blank.\"") == 0);
assert(strcmp(message, "An error was encountered while parsing the expression \"file(\\\"Blank.\": Error in parser: Separated list") == 0);
}
void test_lci_state_create() {