Commit 6fbcbc60 authored by bguillaum's avatar bguillaum

rename libgrew_utils -> grew_base

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/semagramme/libcaml-grew/trunk@8444 7838e531-6607-4d57-9587-6c381814729c
parent 00395767
PRE_FILES_DEP = libgrew_utils grew_ast
PRE_FILES_DEP = grew_base grew_ast
PRE_FILES_CMO = $(PRE_FILES_DEP:%=%.cmo)
PRE_FILES_CMX = $(PRE_FILES_DEP:%=%.cmx)
......@@ -19,8 +19,8 @@ PARSER_CMX = $(PARSER_DEP:%=%.cmx)
.PHONY: parser
all: libgrew_utils.cmx grew_ast.cmx parser grew test
byte: libgrew_utils.cmo grew_ast.cmo parser.byte grew.byte test.byte
all: grew_base.cmx grew_ast.cmx parser grew test
byte: grew_base.cmo grew_ast.cmo parser.byte grew.byte test.byte
include ../config/Makefile
......@@ -51,10 +51,10 @@ test: parser/parser_global.cmx parser_opt parser/grew_parser.cmx $(FILES_CMX) $(
#parser
parser_opt:
parser_opt:
@make -C parser
parser_byte:
parser_byte:
@make -C parser byte
# librairie
......@@ -74,7 +74,7 @@ libgrew.mli : libgrew_types.mli libgrew_.mli
cat libgrew_.mli >> libgrew.mli
libgrew.cma : $(FILES_CMO) parser_byte libgrew.mli libgrew.ml
ifeq (@DEP2PICT@,no)
ifeq (@DEP2PICT@,no)
$(OCAMLC) -c -pp 'camlp4o pa_macro.cmo' $(BYTE_FLAGS) $(FILES_CMO) $(XML_LIGHT_BYTE) str.cma -I parser $(PARSER_CMO) libgrew.mli
$(OCAMLC) -a -o libgrew.cma $(BYTE_FLAGS) -pp 'camlp4o pa_macro.cmo -DDATA_DIR=\"$(DATA_DIR)\"' -linkall -I parser $(PRE_FILES_CMO) $(PARSER_CMO) $(POST_FILES_CMO) libgrew.ml
else
......@@ -109,25 +109,25 @@ grew_core.cmx: $(GREW_CORE_CMX) parser_opt grew_core.cmi grew_core.ml
$(OCAMLOPT) $(OPT_FLAGS) -c $(DEPENDS_DIR) $(GREW_CORE_CMX) grew_core.ml
################################################################################
###### libgrew_utils.ml ##############################################################
LIBGREW_UTILS_DEP =
LIBGREW_UTILS_CMI = $(LIBGREW_UTILS_DEP:%=%.cmi)
LIBGREW_UTILS_CMO = $(LIBGREW_UTILS_DEP:%=%.cmo)
LIBGREW_UTILS_CMX = $(LIBGREW_UTILS_DEP:%=%.cmx)
###### grew_base.ml ##############################################################
GREW_UTILS_DEP =
GREW_UTILS_CMI = $(GREW_UTILS_DEP:%=%.cmi)
GREW_UTILS_CMO = $(GREW_UTILS_DEP:%=%.cmo)
GREW_UTILS_CMX = $(GREW_UTILS_DEP:%=%.cmx)
libgrew_utils.cmi: $(LIBGREW_UTILS_CMI) libgrew_utils.mli
$(OCAMLC) -c libgrew_utils.mli
grew_base.cmi: $(GREW_UTILS_CMI) grew_base.mli
$(OCAMLC) -c grew_base.mli
libgrew_utils.cmo: $(LIBGREW_UTILS_CMO) libgrew_utils.cmi libgrew_utils.ml
$(OCAMLC) $(BYTE_FLAGS) -c $(DEPENDS_DIR) libgrew_utils.ml
grew_base.cmo: $(GREW_UTILS_CMO) grew_base.cmi grew_base.ml
$(OCAMLC) $(BYTE_FLAGS) -c $(DEPENDS_DIR) grew_base.ml
libgrew_utils.cmx: $(LIBGREW_UTILS_CMX) libgrew_utils.cmi libgrew_utils.ml
$(OCAMLOPT) $(OPT_FLAGS) -c $(DEPENDS_DIR) libgrew_utils.ml
grew_base.cmx: $(GREW_UTILS_CMX) grew_base.cmi grew_base.ml
$(OCAMLOPT) $(OPT_FLAGS) -c $(DEPENDS_DIR) grew_base.ml
################################################################################
###### grew_ast.ml ##############################################################
GREW_AST_DEP = libgrew_utils
GREW_AST_DEP = grew_base
GREW_AST_CMI = $(GREW_AST_DEP:%=%.cmi)
GREW_AST_CMO = $(GREW_AST_DEP:%=%.cmo)
GREW_AST_CMX = $(GREW_AST_DEP:%=%.cmx)
......@@ -144,7 +144,7 @@ grew_ast.cmx: $(GREW_AST_CMX) grew_ast.cmi grew_ast.ml
###### grew_html.ml ##############################################################
GREW_HTML_DEP = libgrew_utils grew_ast grew_rule grew_grs
GREW_HTML_DEP = grew_base grew_ast grew_rule grew_grs
GREW_HTML_CMI = $(GREW_HTML_DEP:%=%.cmi)
GREW_HTML_CMO = $(GREW_HTML_DEP:%=%.cmo)
GREW_HTML_CMX = $(GREW_HTML_DEP:%=%.cmx)
......@@ -160,7 +160,7 @@ grew_html.cmx: $(GREW_HTML_CMX) grew_html.cmi grew_html.ml
################################################################################
###### grew_fs.ml ##############################################################
GREW_FS_DEP = libgrew_utils grew_ast
GREW_FS_DEP = grew_base grew_ast
GREW_FS_CMI = $(GREW_FS_DEP:%=%.cmi)
GREW_FS_CMO = $(GREW_FS_DEP:%=%.cmo)
GREW_FS_CMX = $(GREW_FS_DEP:%=%.cmx)
......@@ -177,7 +177,7 @@ grew_fs.cmx: $(GREW_FS_CMX) grew_fs.cmi grew_fs.ml
###### grew_edge.ml ##############################################################
GREW_EDGE_DEP = libgrew_utils grew_ast
GREW_EDGE_DEP = grew_base grew_ast
GREW_EDGE_CMI = $(GREW_EDGE_DEP:%=%.cmi)
GREW_EDGE_CMO = $(GREW_EDGE_DEP:%=%.cmo)
GREW_EDGE_CMX = $(GREW_EDGE_DEP:%=%.cmx)
......@@ -194,7 +194,7 @@ grew_edge.cmx: $(GREW_EDGE_CMX) grew_edge.cmi grew_edge.ml
###### grew_node.ml ##############################################################
GREW_NODE_DEP = libgrew_utils grew_ast grew_fs grew_edge
GREW_NODE_DEP = grew_base grew_ast grew_fs grew_edge
GREW_NODE_CMI = $(GREW_NODE_DEP:%=%.cmi)
GREW_NODE_CMO = $(GREW_NODE_DEP:%=%.cmo)
GREW_NODE_CMX = $(GREW_NODE_DEP:%=%.cmx)
......@@ -211,7 +211,7 @@ grew_node.cmx: $(GREW_NODE_CMX) grew_node.cmi grew_node.ml
###### grew_graph.ml ##############################################################
GREW_GRAPH_DEP = libgrew_utils grew_ast grew_command grew_edge grew_fs grew_node
GREW_GRAPH_DEP = grew_base grew_ast grew_command grew_edge grew_fs grew_node
GREW_GRAPH_CMI = $(GREW_GRAPH_DEP:%=%.cmi)
GREW_GRAPH_CMO = $(GREW_GRAPH_DEP:%=%.cmo)
GREW_GRAPH_CMX = $(GREW_GRAPH_DEP:%=%.cmx)
......@@ -228,7 +228,7 @@ grew_graph.cmx: $(GREW_GRAPH_CMX) grew_graph.cmi grew_graph.ml
###### libgrew_types.ml ##############################################################
LIBGREW_TYPES_DEP = grew_graph
LIBGREW_TYPES_DEP = grew_graph
LIBGREW_TYPES_CMI = $(LIBGREW_TYPES_DEP:%=%.cmi)
LIBGREW_TYPES_CMO = $(LIBGREW_TYPES_DEP:%=%.cmo)
LIBGREW_TYPES_CMX = $(LIBGREW_TYPES_DEP:%=%.cmx)
......@@ -245,7 +245,7 @@ libgrew_types.cmx: $(LIBGREW_TYPES_CMX) libgrew_types.cmi libgrew_types.ml
###### grew_command.ml ##############################################################
GREW_COMMAND_DEP = libgrew_utils grew_ast grew_edge grew_fs
GREW_COMMAND_DEP = grew_base grew_ast grew_edge grew_fs
GREW_COMMAND_CMI = $(GREW_COMMAND_DEP:%=%.cmi)
GREW_COMMAND_CMO = $(GREW_COMMAND_DEP:%=%.cmo)
GREW_COMMAND_CMX = $(GREW_COMMAND_DEP:%=%.cmx)
......@@ -262,7 +262,7 @@ grew_command.cmx: $(GREW_COMMAND_CMX) grew_command.cmi grew_command.ml
###### grew_rule.ml ##############################################################
GREW_RULE_DEP = libgrew_utils grew_ast grew_command grew_edge grew_fs grew_node libgrew_types grew_graph
GREW_RULE_DEP = grew_base grew_ast grew_command grew_edge grew_fs grew_node libgrew_types grew_graph
GREW_RULE_CMI = $(GREW_RULE_DEP:%=%.cmi)
GREW_RULE_CMO = $(GREW_RULE_DEP:%=%.cmo)
GREW_RULE_CMX = $(GREW_RULE_DEP:%=%.cmx)
......@@ -287,7 +287,7 @@ endif
###### grew_grs.ml ##############################################################
GREW_GRS_DEP = libgrew_utils grew_edge libgrew_types grew_graph grew_rule
GREW_GRS_DEP = grew_base grew_edge libgrew_types grew_graph grew_rule
GREW_GRS_CMI = $(GREW_GRS_DEP:%=%.cmi)
GREW_GRS_CMO = $(GREW_GRS_DEP:%=%.cmo)
GREW_GRS_CMX = $(GREW_GRS_DEP:%=%.cmx)
......@@ -309,7 +309,7 @@ dep:
ocamldep *.ml* > depend
clean:
clean:
@make -C parser clean
rm -rf *.cmi *.cmo *.cmxa *.cma *.cmx *.o *.annot
rm -f grew grew.byte
......
......@@ -10,7 +10,7 @@
open Printf
open Log
open Libgrew_utils
open Grew_base
module Ast = struct
let dot_split s = Str.split (Str.regexp "\\.") s
......
......@@ -8,7 +8,7 @@
(* Authors: see AUTHORS file *)
(**********************************************************************************)
open Libgrew_utils
open Grew_base
module Ast : sig
type feature_name = string (* cat, num, ... *)
......
......@@ -11,7 +11,7 @@
open Printf
open Log
open Libgrew_utils
open Grew_base
open Grew_ast
open Grew_edge
open Grew_fs
......
......@@ -9,7 +9,7 @@
(**********************************************************************************)
open Grew_ast
open Libgrew_utils
open Grew_base
open Grew_edge
(* ==================================================================================================== *)
......
......@@ -11,7 +11,7 @@
open Log
open Printf
open Libgrew_utils
open Grew_base
open Grew_ast
......
......@@ -8,7 +8,7 @@
(* Authors: see AUTHORS file *)
(**********************************************************************************)
open Libgrew_utils
open Grew_base
open Grew_ast
(* ================================================================================ *)
......
......@@ -11,7 +11,7 @@
open Printf
open Log
open Libgrew_utils
open Grew_base
open Grew_ast
......
......@@ -8,7 +8,7 @@
(* Authors: see AUTHORS file *)
(**********************************************************************************)
open Libgrew_utils
open Grew_base
open Grew_ast
module Domain: sig
......
......@@ -11,7 +11,7 @@
open Printf
open Log
open Libgrew_utils
open Grew_base
open Grew_ast
open Grew_edge
open Grew_fs
......
......@@ -12,7 +12,7 @@ open Grew_ast
open Grew_fs
open Grew_edge
open Grew_node
open Libgrew_utils
open Grew_base
open Grew_command
(* ==================================================================================================== *)
......
......@@ -12,7 +12,7 @@ open Printf
open Log
open Grew_fs
open Libgrew_utils
open Grew_base
open Grew_ast
open Grew_edge
open Grew_command
......
......@@ -8,7 +8,7 @@
(* Authors: see AUTHORS file *)
(**********************************************************************************)
open Libgrew_utils
open Grew_base
open Grew_graph
open Grew_rule
open Grew_ast
......
......@@ -11,7 +11,7 @@
open Printf
open Log
open Libgrew_utils
open Grew_base
open Grew_ast
open Grew_graph
open Grew_rule
......
......@@ -10,7 +10,7 @@
open Printf
open Libgrew_utils
open Grew_base
open Grew_ast
open Grew_edge
open Grew_fs
......
......@@ -8,7 +8,7 @@
(* Authors: see AUTHORS file *)
(**********************************************************************************)
open Libgrew_utils
open Grew_base
open Grew_fs
open Grew_edge
open Grew_ast
......
......@@ -11,7 +11,7 @@
open Log
open Printf
open Libgrew_utils
open Grew_base
open Grew_ast
open Grew_edge
open Grew_fs
......
......@@ -8,7 +8,7 @@
(* Authors: see AUTHORS file *)
(**********************************************************************************)
open Libgrew_utils
open Grew_base
open Grew_graph
open Grew_command
open Grew_edge
......
......@@ -14,7 +14,7 @@ open Printf
open Log
open Grew_fs
open Libgrew_utils
open Grew_base
open Grew_graph
open Grew_rule
open Grew_grs
......
......@@ -9,7 +9,7 @@
(**********************************************************************************)
(** {2 Grew's core} *)
open Libgrew_utils
open Grew_base
open Grew_graph
open Grew_rule
open Grew_grs
......
......@@ -11,15 +11,15 @@ parser_global.cmx: parser_global.ml
$(OCAMLOPT) -c $(OPT_FLAGS) parser_global.ml
gr_grs_parser.ml: gr_grs_parser.mly
menhir --infer --ocamlc "ocamlc -c -I .. libgrew_utils.cmo grew_ast.cmo parser_global.cmo" gr_grs_parser.mly
menhir --infer --ocamlc "ocamlc -c -I .. grew_base.cmo grew_ast.cmo parser_global.cmo" gr_grs_parser.mly
gr_grs_parser.cmx: gr_grs_parser.ml ../libgrew_utils.cmx ../grew_ast.cmx parser_global.cmo
$(OCAMLOPT) -c $(OPT_FLAGS) -I .. libgrew_utils.cmx grew_ast.cmx gr_grs_parser.mli
$(OCAMLOPT) -c $(OPT_FLAGS) -I .. libgrew_utils.cmx grew_ast.cmx gr_grs_parser.ml
gr_grs_parser.cmx: gr_grs_parser.ml ../grew_base.cmx ../grew_ast.cmx parser_global.cmo
$(OCAMLOPT) -c $(OPT_FLAGS) -I .. grew_base.cmx grew_ast.cmx gr_grs_parser.mli
$(OCAMLOPT) -c $(OPT_FLAGS) -I .. grew_base.cmx grew_ast.cmx gr_grs_parser.ml
gr_grs_parser.cmo: gr_grs_parser.ml ../libgrew_utils.cmo ../grew_ast.cmx parser_global.cmo
$(OCAMLC) -c $(BYTE_FLAGS) -I .. libgrew_utils.cmo grew_ast.cmo gr_grs_parser.mli
$(OCAMLC) -c $(BYTE_FLAGS) -I .. libgrew_utils.cmo grew_ast.cmo gr_grs_parser.ml
gr_grs_parser.cmo: gr_grs_parser.ml ../grew_base.cmo ../grew_ast.cmx parser_global.cmo
$(OCAMLC) -c $(BYTE_FLAGS) -I .. grew_base.cmo grew_ast.cmo gr_grs_parser.mli
$(OCAMLC) -c $(BYTE_FLAGS) -I .. grew_base.cmo grew_ast.cmo gr_grs_parser.ml
lexer.ml: lexer.mll
ocamllex lexer.mll
......
......@@ -9,7 +9,7 @@
(**********************************************************************************)
%{
open Libgrew_utils
open Grew_base
open Grew_ast
(* Some intermediate sum types used in sub-functions when building the ast *)
......
......@@ -8,7 +8,7 @@
(* Authors: see AUTHORS file *)
(**********************************************************************************)
open Libgrew_utils
open Grew_base
open Grew_ast
module Grew_parser = struct
......
......@@ -11,7 +11,7 @@
{
open Printf
open Log
open Libgrew_utils
open Grew_base
open Grew_ast
open Gr_grs_parser
......
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