From 8cf03bc5b6895568eb08be1415985a64793bb81c Mon Sep 17 00:00:00 2001 From: "kr.angelov" Date: Wed, 9 Oct 2013 12:08:51 +0000 Subject: a major redesign in the C runtime. The parser and the linearizer now fully support BIND. The following things are still broken: parseval, word completion, handling 'pre', the robust mode --- src/runtime/c/utils/pgf-parse.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/runtime/c/utils/pgf-parse.c') diff --git a/src/runtime/c/utils/pgf-parse.c b/src/runtime/c/utils/pgf-parse.c index 2790e49de..cb5fc6c7e 100644 --- a/src/runtime/c/utils/pgf-parse.c +++ b/src/runtime/c/utils/pgf-parse.c @@ -110,12 +110,11 @@ int main(int argc, char* argv[]) { clock_t start = clock(); - GuIn *in = gu_string_in(line, ppool); - PgfLexer *lexer = pgf_new_simple_lexer(in, ppool); - GuEnum* result = pgf_parse_with_heuristics(concr, cat, lexer, heuristics, ppool, ppool); + GuExn* parse_err = gu_new_exn(NULL, gu_kind(type), ppool); + GuEnum* result = pgf_parse_with_heuristics(concr, cat, line, heuristics, parse_err, ppool, ppool); PgfExprProb* ep = NULL; - if (result != NULL) + if (gu_ok(parse_err)) ep = gu_next(result, PgfExprProb*, ppool); clock_t end = clock(); -- cgit v1.2.3