NotationEnv.OptValue (Some (pp_value v))
| NotationEnv.ListValue vl ->
NotationEnv.ListValue (List.map pp_value vl)
+ | NotationEnv.LocValue _ as v -> v
in
let ast_env_of_env env =
List.map (fun (var, (ty, value)) -> (var, (ty, pp_value value))) env
in
aux [] env
-let instantiate_level2 status env term =
+let instantiate_level2 status env loc term =
(* prerr_endline ("istanzio: " ^ NotationPp.pp_term term); *)
let fresh_env = ref [] in
let lookup_fresh_name n =
| Ast.Ident _
| Ast.Num _
| Ast.Sort _
- | Ast.Symbol _
| Ast.UserInput -> term
+ | Ast.Symbol _ -> Ast.AttributedTerm (`Loc loc, term)
| Ast.Magic magic -> aux_magic env magic
| Ast.Variable var -> aux_variable env var