Commit f775a5cf authored by Pietro Abate's avatar Pietro Abate

[r2007-06-12 15:13:49 by afrisch] ocaml/cduce iface for OCaml 3.10

Original author: afrisch
Date: 2007-06-12 15:13:49+00:00
parent 5dd9400e
version="%VER%"
requires="%REQ% camlp4.gramlib"
requires="%REQ%"
description="Runtime support for CDuce"
archive(byte)="+camlp4/camlp4.cma +camlp4/pr_o.cmo cduce_lib.cma"
archive(native)="+camlp4/camlp4.cmxa +camlp4/pr_o.cmx cduce_lib.cmxa"
archive(byte)="+camlp4/camlp4lib.cma cduce_lib.cma"
archive(native)="+camlp4/camlp4lib.cmxa cduce_lib.cmxa"
......@@ -268,14 +268,28 @@ query/query_aggregates.cmo: runtime/value.cmi types/sequence.cmi \
compile/operators.cmi types/intervals.cmi types/builtin_defs.cmi
query/query_aggregates.cmx: runtime/value.cmx types/sequence.cmx \
compile/operators.cmx types/intervals.cmx types/builtin_defs.cmx
ocamliface/mltypes.cmo: types/ident.cmo ocamliface/config.cmo \
parser/cduce_loc.cmi ocamliface/mltypes.cmi
ocamliface/mltypes.cmx: types/ident.cmx ocamliface/config.cmx \
parser/cduce_loc.cmx ocamliface/mltypes.cmi
ocamliface/mlstub.cmo: types/types.cmi typing/typer.cmi types/sequence.cmi \
misc/ns.cmi ocamliface/mltypes.cmi driver/librarian.cmi types/ident.cmo \
types/externals.cmi ocamliface/config.cmo compile/compile.cmi \
parser/cduce_loc.cmi types/builtin_defs.cmi types/atoms.cmi \
parser/ast.cmo ocamliface/mlstub.cmi
ocamliface/mlstub.cmx: types/types.cmx typing/typer.cmx types/sequence.cmx \
misc/ns.cmx ocamliface/mltypes.cmx driver/librarian.cmx types/ident.cmx \
types/externals.cmx ocamliface/config.cmx compile/compile.cmx \
parser/cduce_loc.cmx types/builtin_defs.cmx types/atoms.cmx \
parser/ast.cmx ocamliface/mlstub.cmi
parser/cduce_netclient.cmo: runtime/value.cmi parser/url.cmi \
ocamliface/config.cmo
driver/cduce_config.cmi
parser/cduce_netclient.cmx: runtime/value.cmx parser/url.cmx \
ocamliface/config.cmx
driver/cduce_config.cmx
runtime/cduce_pxp.cmo: runtime/value.cmi parser/url.cmi schema/schema_xml.cmi \
runtime/load_xml.cmi ocamliface/config.cmo runtime/cduce_pxp.cmi
runtime/load_xml.cmi driver/cduce_config.cmi runtime/cduce_pxp.cmi
runtime/cduce_pxp.cmx: runtime/value.cmx parser/url.cmx schema/schema_xml.cmx \
runtime/load_xml.cmx ocamliface/config.cmx runtime/cduce_pxp.cmi
runtime/load_xml.cmx driver/cduce_config.cmx runtime/cduce_pxp.cmi
driver/run.cmo: runtime/value.cmi parser/ulexer.cmi misc/stats.cmi \
driver/librarian.cmi types/ident.cmo misc/html.cmi parser/cduce_loc.cmi \
driver/cduce_config.cmi driver/cduce.cmi types/builtin.cmi
......@@ -296,36 +310,38 @@ tools/validate.cmo: schema/schema_types.cmi schema/schema_parser.cmi \
schema/schema_common.cmi
tools/validate.cmx: schema/schema_types.cmx schema/schema_parser.cmx \
schema/schema_common.cmx
ocamliface/mltypes.cmo: ocamliface/location.cmo types/ident.cmo \
ocamliface/config.cmo ocamliface/mltypes.cmi
ocamliface/mltypes.cmx: ocamliface/location.cmx types/ident.cmx \
ocamliface/config.cmx ocamliface/mltypes.cmi
ocamliface/mltypes.cmo: types/ident.cmo ocamliface/config.cmo \
parser/cduce_loc.cmi ocamliface/mltypes.cmi
ocamliface/mltypes.cmx: types/ident.cmx ocamliface/config.cmx \
parser/cduce_loc.cmx ocamliface/mltypes.cmi
ocamliface/mlstub.cmo: types/types.cmi typing/typer.cmi types/sequence.cmi \
misc/ns.cmi ocamliface/mltypes.cmi ocamliface/location.cmo \
driver/librarian.cmi types/ident.cmo types/externals.cmi \
ocamliface/config.cmo compile/compile.cmi types/builtin_defs.cmi \
types/atoms.cmi parser/ast.cmo ocamliface/mlstub.cmi
misc/ns.cmi ocamliface/mltypes.cmi driver/librarian.cmi types/ident.cmo \
types/externals.cmi ocamliface/config.cmo compile/compile.cmi \
parser/cduce_loc.cmi types/builtin_defs.cmi types/atoms.cmi \
parser/ast.cmo ocamliface/mlstub.cmi
ocamliface/mlstub.cmx: types/types.cmx typing/typer.cmx types/sequence.cmx \
misc/ns.cmx ocamliface/mltypes.cmx ocamliface/location.cmx \
driver/librarian.cmx types/ident.cmx types/externals.cmx \
ocamliface/config.cmx compile/compile.cmx types/builtin_defs.cmx \
types/atoms.cmx parser/ast.cmx ocamliface/mlstub.cmi
parser/cduce_curl.cmo: runtime/value.cmi parser/url.cmi ocamliface/config.cmo
parser/cduce_curl.cmx: runtime/value.cmx parser/url.cmx ocamliface/config.cmx
misc/ns.cmx ocamliface/mltypes.cmx driver/librarian.cmx types/ident.cmx \
types/externals.cmx ocamliface/config.cmx compile/compile.cmx \
parser/cduce_loc.cmx types/builtin_defs.cmx types/atoms.cmx \
parser/ast.cmx ocamliface/mlstub.cmi
parser/cduce_curl.cmo: runtime/value.cmi parser/url.cmi \
driver/cduce_config.cmi
parser/cduce_curl.cmx: runtime/value.cmx parser/url.cmx \
driver/cduce_config.cmx
parser/cduce_netclient.cmo: runtime/value.cmi parser/url.cmi \
ocamliface/config.cmo
driver/cduce_config.cmi
parser/cduce_netclient.cmx: runtime/value.cmx parser/url.cmx \
ocamliface/config.cmx
driver/cduce_config.cmx
runtime/cduce_expat.cmo: runtime/value.cmi parser/url.cmi \
schema/schema_xml.cmi runtime/load_xml.cmi ocamliface/config.cmo \
schema/schema_xml.cmi runtime/load_xml.cmi driver/cduce_config.cmi \
runtime/cduce_expat.cmi
runtime/cduce_expat.cmx: runtime/value.cmx parser/url.cmx \
schema/schema_xml.cmx runtime/load_xml.cmx ocamliface/config.cmx \
schema/schema_xml.cmx runtime/load_xml.cmx driver/cduce_config.cmx \
runtime/cduce_expat.cmi
runtime/cduce_pxp.cmo: runtime/value.cmi parser/url.cmi schema/schema_xml.cmi \
runtime/load_xml.cmi ocamliface/config.cmo runtime/cduce_pxp.cmi
runtime/load_xml.cmi driver/cduce_config.cmi runtime/cduce_pxp.cmi
runtime/cduce_pxp.cmx: runtime/value.cmx parser/url.cmx schema/schema_xml.cmx \
runtime/load_xml.cmx ocamliface/config.cmx runtime/cduce_pxp.cmi
runtime/load_xml.cmx driver/cduce_config.cmx runtime/cduce_pxp.cmi
misc/encodings.cmi: misc/custom.cmo
misc/upool.cmi: misc/custom.cmo
misc/ns.cmi: misc/upool.cmi misc/encodings.cmi misc/custom.cmo
......@@ -386,5 +402,8 @@ driver/librarian.cmi: runtime/value.cmi types/types.cmi typing/typer.cmi \
types/sample.cmi: types/types.cmi
driver/cduce.cmi: runtime/value.cmi types/atoms.cmi
ocamliface/mltypes.cmi: types/types.cmi
ocamliface/mlstub.cmi: parser/ast.cmo
ocamliface/mltypes.cmi: types/types.cmi
ocamliface/mlstub.cmi: parser/ast.cmo
schema/schema_types.cmi: runtime/value.cmi misc/ns.cmi misc/encodings.cmi \
types/atoms.cmi
......@@ -19,14 +19,15 @@ endif
ocaml_files:
mkdir ocaml_files
$(HIDE)cp $(patsubst %,$(OCAML_SRC)/%, $(COPY_FILES)) ocaml_files/
cp location.ml ocaml_files
mv ocaml_files/asttypes.mli ocaml_files/asttypes.ml
cp location.ml ocaml_files/location.ml
cp ocaml_files/asttypes.mli ocaml_files/asttypes.ml
sed s=STDLIB=$(STDLIB)= config.ml > ocaml_files/config.ml
grep cmi_magic $(OCAML_SRC)/utils/config.mlp >> ocaml_files/config.ml
caml_cduce.cmo: ocaml_files
@echo "Build $@"
(cd ocaml_files; ocamlc $(FORPACKOPT1) -c $(COMPILE_FILES);\
(cd ocaml_files; \
ocamlc $(FORPACKOPT1) -c $(COMPILE_FILES);\
ocamlc $(FORPACKOPT2) -pack -o $@ $(OBJECTS); \
cp caml_cduce.cmo caml_cduce.cmi ..)
......@@ -42,7 +43,9 @@ clean:
COPY_FILES=\
utils/misc.ml utils/tbl.ml \
utils/consistbl.ml utils/warnings.ml utils/terminfo.ml utils/clflags.ml \
parsing/asttypes.mli parsing/longident.ml \
parsing/asttypes.mli parsing/location.mli \
parsing/longident.ml \
typing/outcometree.mli \
typing/ident.ml typing/path.ml \
typing/primitive.ml typing/types.ml \
typing/btype.ml typing/oprint.ml \
......@@ -51,9 +54,10 @@ COPY_FILES=\
typing/ctype.ml typing/ctype.mli typing/printtyp.ml
COMPILE_FILES=\
asttypes.mli outcometree.mli asttypes.ml \
config.ml misc.ml tbl.ml \
clflags.ml consistbl.ml warnings.ml terminfo.ml \
location.ml asttypes.ml longident.ml \
location.mli location.ml longident.ml \
ident.ml path.ml \
primitive.ml types.ml \
btype.ml oprint.ml \
......
(* An implementation of the OCaml's Location signature (to cut dependencies
to other OCaml modules *)
open Lexing
type t = { loc_start: position; loc_end: position; loc_ghost: bool }
let none = { loc_start = dummy_pos; loc_end = dummy_pos; loc_ghost = true }
let dummy x = assert false
let in_file = dummy
let init = dummy
let curr = dummy
let symbol_rloc = dummy
let symbol_gloc = dummy
let rhs_loc = dummy
let input_name = ref ""
let input_lexbuf = ref None
let get_pos_info = dummy
let print = dummy
let print_warning = dummy
let prerr_warning = dummy
let echo_eof = dummy
let reset = dummy
let highlight_locations = dummy
This diff is collapsed.
val gen_wrapper: string list -> MLast.str_item
open Camlp4.PreCast
val gen_wrapper: string list -> Ast.str_item
exception Error of string
module Loc = Location
module Loc = Cduce_loc
open Caml_cduce
open Caml_cduce.Types
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment