Skip to content

Commit

Permalink
Keep hints in EL representation
Browse files Browse the repository at this point in the history
  • Loading branch information
rossberg committed Jun 17, 2024
1 parent 854e1f4 commit 32e0dc4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions spectec/src/frontend/elab.ml
Original file line number Diff line number Diff line change
Expand Up @@ -460,12 +460,7 @@ let elab_hint tid mixop {hintid; hintexp} : Il.hint =
)
in
IterAtoms.exp hintexp;
let ss =
match hintexp.it with
| SeqE es -> List.map Print.string_of_exp es
| _ -> [Print.string_of_exp hintexp]
in
{Il.hintid; Il.hintexp = ss}
{Il.hintid; Il.hintexp}

let elab_hints tid mixop = List.map (elab_hint tid mixop)

Expand Down
2 changes: 1 addition & 1 deletion spectec/src/il/ast.ml
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ and hintdef' =
| RelH of id * hint list
| DecH of id * hint list

and hint = {hintid : id; hintexp : string list} (* hint *)
and hint = {hintid : id; hintexp : El.Ast.exp} (* hint *)


(* Scripts *)
Expand Down

0 comments on commit 32e0dc4

Please sign in to comment.