summaryrefslogtreecommitdiff
path: root/camlp4/etc/pa_ru.ml
diff options
context:
space:
mode:
Diffstat (limited to 'camlp4/etc/pa_ru.ml')
-rw-r--r--camlp4/etc/pa_ru.ml46
1 files changed, 0 insertions, 46 deletions
diff --git a/camlp4/etc/pa_ru.ml b/camlp4/etc/pa_ru.ml
deleted file mode 100644
index d3060c88c5..0000000000
--- a/camlp4/etc/pa_ru.ml
+++ /dev/null
@@ -1,46 +0,0 @@
-(* camlp4r pa_extend.cmo q_MLast.cmo *)
-(***********************************************************************)
-(* *)
-(* Camlp4 *)
-(* *)
-(* Daniel de Rauglaudre, projet Cristal, INRIA Rocquencourt *)
-(* *)
-(* Copyright 1998 Institut National de Recherche en Informatique et *)
-(* Automatique. Distributed only by permission. *)
-(* *)
-(***********************************************************************)
-
-(* $Id$ *)
-
-open Pcaml;
-
-value o2b =
- fun
- [ Some _ -> True
- | None -> False ]
-;
-
-EXTEND
- GLOBAL: expr;
- expr: LEVEL "top"
- [ [ "do"; "{"; seq = sequence; "}" ->
- match seq with
- [ [e] -> e
- | _ -> <:expr< do { $list:seq$ } >> ] ] ]
- ;
- sequence:
- [ [ "let"; o = OPT "rec"; l = LIST1 let_binding SEP "and"; [ "in" | ";" ];
- el = SELF ->
- let e =
- match el with
- [ [e] -> e
- | _ -> <:expr< do { $list:el$ } >> ]
- in
- [<:expr< let $opt:o2b o$ $list:l$ in $e$ >>]
- | e = expr; ";"; el = SELF ->
- let e = let loc = MLast.loc_of_expr e in <:expr< ($e$ : unit) >> in
- [e :: el]
- | e = expr; ";" -> [e]
- | e = expr -> [e] ] ]
- ;
-END;