mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
detect an attempt to linearize tree with partial application
This commit is contained in:
@@ -23,9 +23,11 @@ void PgfLinearizer::TreeNode::linearize_arg(PgfLinearizationOutputIface *out, Pg
|
||||
while (d > 0) {
|
||||
arg = arg->next_arg;
|
||||
if (arg == 0)
|
||||
throw pgf_error("Found inconsistency in the PMCFG representation");
|
||||
break;
|
||||
d--;
|
||||
}
|
||||
if (arg == 0)
|
||||
throw pgf_error("Missing argument");
|
||||
size_t lindex = eval_param(r);
|
||||
arg->linearize(out, linearizer, lindex);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user