uri,height,[],[],
NCicUntrusted.map_obj_kind (NCicUntrusted.apply_subst subst) obj
in
+ NCicTypeChecker.typecheck_obj obj;
NCicLibrary.add_obj uri obj;
{status with
GrafiteTypes.ng_status =
GrafiteDisambiguate.disambiguate_nobj lexicon_status
~baseuri:(GrafiteTypes.get_baseuri status) (text,prefix_len,obj) in
let uri,height,nmenv,nsubst,nobj = obj in
+ let ninitial_stack = Continuationals.Stack.of_nmetasenv nmenv in
+ let status =
+ { status with
+ GrafiteTypes.ng_status =
+ GrafiteTypes.ProofMode
+ { NTacStatus.gstatus = ninitial_stack;
+ istatus = { NTacStatus.pstatus = obj; lstatus = lexicon_status}}
+ }
+ in
(match nmenv with
- [] ->
- (* CSC: cut&paste code from NQed *)
- let obj =
-prerr_endline "CSC: here we should fix the height!!!";
- uri,height,[],[],
- NCicUntrusted.map_obj_kind (NCicUntrusted.apply_subst nsubst) nobj
- in
- NCicLibrary.add_obj uri obj;
- {status with
- GrafiteTypes.ng_status=GrafiteTypes.CommandMode lexicon_status },
- `New [uri]
- | _ ->
- let ninitial_stack = Continuationals.Stack.of_nmetasenv nmenv in
- { status with
- GrafiteTypes.ng_status =
- GrafiteTypes.ProofMode
- { NTacStatus.gstatus = ninitial_stack;
- istatus = { NTacStatus.pstatus = obj; lstatus = lexicon_status}}
- },`New [])
+ [] ->
+ eval_command.ec_go ~disambiguate_command opts status
+ ("",0,GrafiteAst.NQed Stdpp.dummy_loc)
+ | _ -> status,`New [])
| GrafiteAst.Obj (loc,obj) ->
let ext,name =
match obj with