-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge #778: cleanups: Eliminate
errstr
and (nearly) eliminate `Unex…
…pected` 33a60e2 expression: pull MultiColon error into parsing logic, drop AtOutsideOr (Andrew Poelstra) f7cb701 expression: add "illegal and/or" for thresholds; drop errstr (Andrew Poelstra) b3d1b17 descriptor: eliminate several instances of Unexpected (Andrew Poelstra) 1467453 compiler: refactor out a call to errstr (Andrew Poelstra) dd19874 expression: introduce "unknown name" error variant (Andrew Poelstra) 4ae5079 expression: replace methods for parsing numbers and locktimes (Andrew Poelstra) ee15056 policy: remove now-unused semantic::PolicyError type (Andrew Poelstra) ce3d3e8 expression: replace most uses of `terminal` (Andrew Poelstra) 8423557 expression: replace poorly-typed `binary` function with new one (Andrew Poelstra) Pull request description: This PR is a series of commits which cleans up the expression parsing module. After the last couple PRs, which substantially rewrote the parser and introduce a new parsing-error module, we can get rid of many uses of the `Error::Unexpected` variant and its constructor, the `errstr` function. This PR should have no visible effects, and does not even change any algorithms. The next one will return to the process of rewriting the expression parser, by replacing the recursive `Tree` type with a non-recursive one. Will post benchmarks once they are done. ACKs for top commit: sanket1729: ACK 33a60e2 Tree-SHA512: 09927b83f84baa3593af22e95b84aa38f65851e6e005fb53f02cbb23edc7e2275345727399d70a252ccd1f8462707666b91fc043f613d2998fa8a51204525a9e
- Loading branch information
Showing
14 changed files
with
522 additions
and
437 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
Oops, something went wrong.