mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-10 05:29:30 -06:00
better handling for nonExist in the C runtime. BIND is also supported in the linearizer but not in the parser yet
This commit is contained in:
@@ -1378,8 +1378,12 @@ Concr_linearize(ConcrObject* self, PyObject *args)
|
||||
|
||||
pgf_linearize(self->concr, pyexpr->expr, out, err);
|
||||
if (!gu_ok(err)) {
|
||||
PyErr_SetString(PGFError, "The abstract tree cannot be linearized");
|
||||
return NULL;
|
||||
if (gu_exn_caught(err) == gu_type(PgfLinNonExist))
|
||||
Py_RETURN_NONE;
|
||||
else {
|
||||
PyErr_SetString(PGFError, "The abstract tree cannot be linearized");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
GuString str = gu_string_buf_freeze(sbuf, tmp_pool);
|
||||
|
||||
Reference in New Issue
Block a user