You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge #778: cleanups: Eliminate errstr and (nearly) eliminate Unexpected
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
0 commit comments