Commit 795dfce3 authored by gerd's avatar gerd

Initial revision.


git-svn-id: https://godirepo.camlcity.org/svn/lib-pxp/trunk@372 dbe99aee-44db-0310-b2b3-d33182c8eb97
parent eb5e8d30
description = "Polymorphic XML parser - Lexical analyzer for ISO-8859-1"
requires = "pxp-engine"
version = "@VERSION@"
archive(byte) = "pxp_lex_iso88591.cma pxp_lex_link_iso88591.cmo"
archive(native) = "pxp_lex_iso88591.cmxa pxp_lex_link_iso88591.cmx"
TOP_DIR = ../..
include $(TOP_DIR)/Makefile.rules
GENERIC = ../pxp-lex-generic
LEXERSRC = pxp_lex_misc.src \
pxp_lex_document.src \
pxp_lex_content.src \
pxp_lex_within_tag.src \
pxp_lex_document_type.src \
pxp_lex_declaration.src \
pxp_lex_dtd_string.src \
pxp_lex_content_string.src \
pxp_lex_name_string.src
OTHERSRC = open_pxp_lex_aux_iso88591.src \
open_pxp_lex_misc_iso88591.src \
pxp_lex_defs_iso88591.def \
pxp_lex_aux_iso88591.ml
FROM_GENERIC = $(LEXERSRC)
LEXERML = $(LEXERSRC:.src=_iso88591.ml)
OBJ = pxp_lex_aux_iso88591.cmo \
$(LEXERSRC:.src=_iso88591.cmo)
XOBJ = $(OBJ:.cmo=.cmx)
all:
$(MAKE) symlinks
$(MAKE) insertion_done
$(MAKE) generate
$(MAKE) depend
$(MAKE) -f Makefile.code pxp_lex_iso88591.cma
opt:
$(MAKE) symlinks
$(MAKE) insertion_done
$(MAKE) generate
$(MAKE) depend
$(MAKE) -f Makefile.code pxp_lex_iso88591.cmxa
symlinks:
for x in $(FROM_GENERIC); do test -f $$x || ln -s $(GENERIC)/$$x .; done
test -f pxp_lex_aux_iso88591.ml || ln -s $(GENERIC)/pxp_lex_aux.ml pxp_lex_aux_iso88591.ml
insertion_done: $(LEXERSRC) $(OTHERSRC)
$(INSERT_VARIANT) -variant iso88591 $(LEXERSRC)
touch insertion_done
generate: $(LEXERML)
clean:
rm -f $(CLEAN_LIST) $(LEXERML) *.mll
rm -f $(FROM_GENERIC)
rm -f pxp_lex_aux_iso88591.ml
rm -f insertion_done
CLEAN: clean
distclean: clean
depend: *.ml
$(OCAMLDEP) *.ml >depend
# Such that we have all the definitions:
include Makefile
OCAMLC_OPTIONS = -I ../pxp-engine
OCAMLOPT_OPTIONS = -I ../pxp-engine
PACKAGES = netstring
pxp_lex_iso88591.cma: $(OBJ) pxp_lex_link_iso88591.cmo
$(OCAMLC) -o pxp_lex_iso88591.cma -a $(OBJ)
pxp_lex_iso88591.cmxa: $(XOBJ) pxp_lex_link_iso88591.cmx
$(OCAMLOPT) -o pxp_lex_iso88591.cmxa -a $(XOBJ)
include depend
*.ml: ../pxp-engine/pxp_types.cmi ../pxp-engine/pxp_lexer_types.cmi
(* $Id: pxp_lex_link_iso88591.ml,v 1.1 2001/06/14 15:47:39 gerd Exp $
* ----------------------------------------------------------------------
*
*)
open Pxp_types
open Pxp_lexer_types
let lexer_set_iso88591 =
{ lex_encoding = `Enc_iso88591;
scan_document = Pxp_lex_document_iso88591.scan_document;
scan_content = Pxp_lex_content_iso88591.scan_content;
scan_within_tag = Pxp_lex_within_tag_iso88591.scan_within_tag;
scan_document_type = Pxp_lex_document_type_iso88591.
scan_document_type;
scan_declaration = Pxp_lex_declaration_iso88591.scan_declaration;
scan_content_comment = Pxp_lex_misc_iso88591.scan_content_comment;
scan_decl_comment = Pxp_lex_misc_iso88591.scan_decl_comment;
scan_document_comment = Pxp_lex_misc_iso88591.scan_document_comment;
scan_ignored_section = Pxp_lex_name_string_iso88591.
scan_ignored_section;
scan_xml_pi = Pxp_lex_misc_iso88591.scan_xml_pi;
scan_dtd_string = Pxp_lex_dtd_string_iso88591.scan_dtd_string;
scan_content_string = Pxp_lex_content_string_iso88591.
scan_content_string;
scan_name_string = Pxp_lex_name_string_iso88591.scan_name_string;
scan_only_xml_decl = Pxp_lex_misc_iso88591.scan_only_xml_decl;
scan_for_crlf = Pxp_lex_misc_iso88591.scan_for_crlf;
}
;;
Pxp_lexers.init lexer_set_iso88591
;;
(* ======================================================================
* History:
*
* $Log: pxp_lex_link_iso88591.ml,v $
* Revision 1.1 2001/06/14 15:47:39 gerd
* Initial revision.
*
*
*)
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