Skip to content

Commit

Permalink
Remove a binding
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Evans committed Jun 9, 2024
1 parent c0a69d1 commit a5edc4b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bootstrap/bin/hocc/ielr1.ml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ let has_implicit_shift_attribs adjs annotations ~conflict_state_index ~symbol_in
(* dst has implicit shift-only attribs if the conflict contains shift, and at least one
* (transitive) in-transit lacks an attrib on symbol_index. *)
let rec inner adjs annotations ~conflict_state_index ~symbol_index ~conflict marks dst = begin
let ipreds = Adjs.ipreds_of_state_index dst adjs in
(* There must be at least one explicit attrib for an implicit shift attrib to matter. *)
let present, lacking, marks = Array.fold_until ~init:(false, false, marks)
~f:(fun (present, lacking, marks) src ->
Expand Down Expand Up @@ -69,7 +68,7 @@ let has_implicit_shift_attribs adjs annotations ~conflict_state_index ~symbol_in
present, lacking, marks
end in
(present, lacking, marks), present && lacking
) ipreds in
) (Adjs.ipreds_of_state_index dst adjs) in
let has_implicit_shift = present && lacking in
has_implicit_shift, marks
end in
Expand Down

0 comments on commit a5edc4b

Please sign in to comment.