summaryrefslogtreecommitdiff
path: root/parsing/q_util.ml4
diff options
context:
space:
mode:
authorGravatar Stephane Glondu <steph@glondu.net>2008-08-08 13:18:48 +0200
committerGravatar Stephane Glondu <steph@glondu.net>2008-08-08 13:18:48 +0200
commitbd4bb27ee4f66b08434d9a199f00b04ccec34722 (patch)
treeee389e744201c32fc4e74eadc34e0227c4008b5d /parsing/q_util.ml4
parentdb4ea6ddcbeb0dea41267dc87a30b76a01e402af (diff)
parent870075f34dd9fa5792bfbf413afd3b96f17e76a0 (diff)
Merge commit 'upstream/8.2.beta4+dfsg'
Diffstat (limited to 'parsing/q_util.ml4')
-rw-r--r--parsing/q_util.ml47
1 files changed, 6 insertions, 1 deletions
diff --git a/parsing/q_util.ml4 b/parsing/q_util.ml4
index da78e287..da4329bb 100644
--- a/parsing/q_util.ml4
+++ b/parsing/q_util.ml4
@@ -8,7 +8,7 @@
(*i camlp4use: "q_MLast.cmo" i*)
-(* $Id: q_util.ml4 10091 2007-08-24 10:57:37Z herbelin $ *)
+(* $Id: q_util.ml4 11309 2008-08-06 10:30:35Z herbelin $ *)
(* This file defines standard combinators to build ml expressions *)
@@ -53,6 +53,11 @@ let mlexpr_of_triple m1 m2 m3 (a1,a2,a3)=
let loc = join_loc (MLast.loc_of_expr e1) (MLast.loc_of_expr e3) in
<:expr< ($e1$, $e2$, $e3$) >>
+let mlexpr_of_quadruple m1 m2 m3 m4 (a1,a2,a3,a4)=
+ let e1 = m1 a1 and e2 = m2 a2 and e3 = m3 a3 and e4 = m4 a4 in
+ let loc = join_loc (MLast.loc_of_expr e1) (MLast.loc_of_expr e4) in
+ <:expr< ($e1$, $e2$, $e3$, $e4$) >>
+
(* We don't give location for tactic quotation! *)
let loc = dummy_loc