Skip to content

Commit

Permalink
Fix callback generation for prods sharing a callback block
Browse files Browse the repository at this point in the history
Binding validation code is disabled by this commit, and needs to be replaced
when implementing richer binding patterns.
  • Loading branch information
Jason Evans committed Aug 22, 2024
1 parent b4f3074 commit e2c3b9f
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 54 deletions.
3 changes: 1 addition & 2 deletions bootstrap/bin/hocc/Parse.hmh
Original file line number Diff line number Diff line change
Expand Up @@ -450,9 +450,8 @@ include hocc
| "|" prod:Prod prods_tl:ProdsTl -> ProdsTlProd {prod; prods_tl}
| epsilon -> ProdsTlEpsilon

(* XXX Fix analysis bug that prevents using a single callback. *)
nonterm Prods of nonterm_prods ::=
| "|" prod:Prod prods_tl:ProdsTl -> ProdsProd {prod; prods_tl}
| "|" prod:Prod prods_tl:ProdsTl
| prod:Prod prods_tl:ProdsTl -> ProdsProd {prod; prods_tl}

nonterm Reduction of nonterm_reduction ::=
Expand Down
Loading

0 comments on commit e2c3b9f

Please sign in to comment.