Add parser error messages

This commit is contained in:
Max Brunsfeld 2014-01-08 18:35:16 -08:00
parent 614e497ac4
commit 55809f702d
14 changed files with 213 additions and 83 deletions

View file

@ -1,13 +1,15 @@
#include "spec_helper.h"
#include "../fixtures/parsers/arithmetic.c"
#include "document.h"
extern TSParseConfig ts_parse_config_arithmetic;
START_TEST
describe("arithmetic", []() {
it("parses_numbers", [&]() {
TSDocument *document = TSDocumentMake();
TSDocumentSetUp_arithmetic(document);
TSDocumentSetText(document, "5");
TSDocumentSetUp(document, ts_parse_config_arithmetic);
TSDocumentSetText(document, "w");
printf("%s", TSDocumentToString(document));
});
});