-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trying to output multiple parse trees with equal costs doesn't work #7
Comments
NB: The "2:" in the first quote above is not a copy/paste error: there's really no more output on that line. If one of the nodes is a clear winner (has lower cost), then only that node is output (correctly), eg.:
|
Fixed by making |
What was your fix? Did you ever commit it? I found two problems with The second problem is exposed by altering test 46 to allow a non-null
My guess is that fixing these memory handling problems will also fix the output issue. |
The bug is simply that when |
Fix a bug where some alt nodes were missed by traverse_pruned_translation(). Fixes vnmakarov#7.
Thank you for the test and opening the issue. I've fixed the bug. Now there are no vlagrind complaints on your test and YAEP generates the expected translation. |
Thanks for working on the issue. I've committed another version (w/o recursion because it might be very deep for some cases) of the patch into the repository. |
It's a tail call, so it shouldn't actually recurse, but your version adfd3ed is of course also fine. |
The following mode has problems (ignoring the glaring obvious issues with memory cleanup):
yaep_set_one_parse_flag(g,0);
yaep_set_cost_flag(g,1);The attached code yields:
while it should yield something like
ambig2_test.zip
The text was updated successfully, but these errors were encountered: