embedded mode for GF grammar in Python. Only generation for now

This commit is contained in:
kr.angelov
2014-07-06 19:49:17 +00:00
parent ae193e6fb6
commit 7afbff6fa8
3 changed files with 116 additions and 1 deletions

View File

@@ -198,3 +198,10 @@ pgf_concr_add_literal(PgfConcr *concr, PgfCId cat,
gu_map_put(concr->callbacks, cnccat,
PgfLiteralCallback*, callback);
}
PgfExprProb*
pgf_fun_get_ep(void* value)
{
PgfAbsFun* absfun = *((PgfAbsFun**) value);
return &absfun->ep;
}

View File

@@ -189,4 +189,8 @@ void
pgf_check_type(PgfPGF* gr, PgfType** ty,
GuExn* exn, GuPool* pool);
// internal
PgfExprProb*
pgf_fun_get_ep(void* value);
#endif // PGF_H_