aboutsummaryrefslogtreecommitdiff
path: root/dev/base_include
diff options
context:
space:
mode:
authormohring2000-12-04 07:55:31 +0000
committermohring2000-12-04 07:55:31 +0000
commit408a1d674962625dfa90d45bc17f319d3e43c7ff (patch)
tree4be664f25ed3e175e68077b8f9b8e542e40f41a8 /dev/base_include
parent413dfbee3dba16c3d2653b61f7372349a0d3c078 (diff)
Ajout de constr_of_string
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@1044 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'dev/base_include')
-rw-r--r--dev/base_include6
1 files changed, 6 insertions, 0 deletions
diff --git a/dev/base_include b/dev/base_include
index 9405f0b98d..b73f452064 100644
--- a/dev/base_include
+++ b/dev/base_include
@@ -47,6 +47,12 @@ let e s = Astterm.interp_rawconstr Evd.empty (Global.env()) (parse_ast s);;
(* For compatibility *)
let raw_constr_of_string = e;;
+(* build a term of type constr with type-checking and resolution of
+ implicit syntax *)
+
+let constr_of_string s
+ = Astterm.interp_constr Evd.empty (Global.env()) (parse_ast s);;
+
(* Get the current goal *)
let getgoal x = top_goal_of_pftreestate (Pfedit.get_pftreestate x);;