-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improve invalid prod. diagnostics, untangle ebc
It seems like the reording logic may have lived in ebc at one time, though I can't be sure about that. The logic that checks and warns for ungrounded productions generated warnings related to chunking and used chunking trace settings, even though it's fully possible to trigger these from regular `sp` commands (and there is an additional call in RL, as well). Move all of the chunking-related warnings and settings back to ebc. Instead of setting `m_failure_type` on the agent's chunking manager, return the error code from `reorder_and_validate_lhs_and_rhs` and check that in ebc to trigger logging and agent stopping logic. Place the logic moved there into a new dedicated method. Update other consumers of this method to check for `reorder_success` instead of `true`, as well. Put the reorder failure logging behind `OM_WARNINGS`, which is on by default and is (correctly) not specific to chunking/ebc. Rename `EBCFailureType` and `display_ebc_error` to reflect that fact that they they aren't chunking-specific. Update unit tests to check the warnings printed for ungrounded productions.
- Loading branch information
1 parent
4a06a2a
commit f23fdcf
Showing
14 changed files
with
155 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.