1
0
forked from GitHub/gf-core

libpgf: the first prototype for the robust parser

This commit is contained in:
kr.angelov
2012-02-29 14:43:08 +00:00
parent b054549082
commit e31c883075
6 changed files with 369 additions and 50 deletions

View File

@@ -120,7 +120,7 @@ int main(int argc, char* argv[]) {
GuString tok_s = gu_str_string(tok, pool);
gu_debug("parsing token \"%s\"", tok);
// feed the token to get a new parse state
parse = pgf_parse_token(parse, tok_s, ppool);
parse = pgf_parse_token(parse, tok_s, true, ppool);
if (!parse) {
fprintf(stderr,
"Unexpected token: \"%s\"\n", tok);