Skip to content

Commit

Permalink
Add TODO to try for using ErrorGen in multiple closures at once
Browse files Browse the repository at this point in the history
  • Loading branch information
ejrgilbert committed May 29, 2024
1 parent 6fdad8a commit c6deb9e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/parser/whamm_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -713,6 +713,7 @@ fn expr_from_pair(pair: Pair<Rule>) -> Result<Expr, Vec<WhammError>> {
},
Rule::expr => {
let pairs = pair.into_inner();
// TODO -- try boxing ErrorGen so you can put it in both closures?
PRATT_PARSER
.map_primary(|primary| -> Result<Expr, Vec<WhammError>> {
expr_primary(primary)
Expand Down

0 comments on commit c6deb9e

Please sign in to comment.