mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-16 06:32:51 -06:00
added PGF(pIdent,pExpr)
This commit is contained in:
@@ -418,8 +418,8 @@ PgfText *pgf_print_expr(PgfExpr e,
|
||||
return printer.get_text();
|
||||
}
|
||||
|
||||
PGF_API PgfExpr
|
||||
pgf_read_expr(PgfText *input, PgfUnmarshaller *u)
|
||||
PGF_API
|
||||
PgfExpr pgf_read_expr(PgfText *input, PgfUnmarshaller *u)
|
||||
{
|
||||
PgfExprParser parser(input, u);
|
||||
PgfExpr res = parser.parse_expr();
|
||||
@@ -430,6 +430,15 @@ pgf_read_expr(PgfText *input, PgfUnmarshaller *u)
|
||||
return res;
|
||||
}
|
||||
|
||||
PGF_API
|
||||
PgfExpr pgf_read_expr_ex(PgfText *input, const char **end_pos, PgfUnmarshaller *u)
|
||||
{
|
||||
PgfExprParser parser(input, u);
|
||||
PgfExpr expr = parser.parse_expr();
|
||||
*end_pos = parser.get_token_pos();
|
||||
return expr;
|
||||
}
|
||||
|
||||
PGF_API
|
||||
PgfText *pgf_print_type(PgfType ty,
|
||||
PgfPrintContext *ctxt, int prio,
|
||||
|
||||
Reference in New Issue
Block a user