mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-11-04 19:25:27 -07:00
detect an attempt to linearize tree with partial application
This commit is contained in:
1 parent
3f8642d0b9
commit
a7686cddde
1 file changed
+3
-1
@@ -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