~ubuntu-branches/ubuntu/hardy/pxp/hardy

« back to all changes in this revision

Viewing changes to src/pxp-engine/pxp_lexers.mli

  • Committer: Bazaar Package Importer
  • Author(s): Stefano Zacchiroli
  • Date: 2005-03-29 11:06:39 UTC
  • mfrom: (2.1.2 hoary)
  • Revision ID: james.westby@ubuntu.com-20050329110639-5p39hz1d4aq3r2ec
Tags: 1.1.95-6
* Rebuilt against ocaml 3.08.3
* No longer built with wlex support (since wlex is no longer supported
  upstream and corresponding package has been removed from the debian
  archive)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
(* $Id: pxp_lexers.mli,v 1.5 2001/06/14 23:29:03 gerd Exp $
 
1
(* $Id: pxp_lexers.mli 702 2004-08-29 11:35:29Z gerd $
2
2
 * ----------------------------------------------------------------------
3
3
 * PXP: The polymorphic XML parser for Objective Caml.
4
4
 * Copyright 1999 by Gerd Stolpmann. See LICENSE for details.
5
5
 *)
6
6
 
7
7
 
8
 
open Pxp_types
 
8
open Pxp_core_types
9
9
open Pxp_lexer_types
10
10
 
 
11
val get_lexer_factory : rep_encoding -> lexer_factory
 
12
  (** Return the lexer factory that is able to handle the passed
 
13
   * encoding.
 
14
   *)
 
15
 
 
16
val init : lexer_factory -> unit
 
17
  (** Add a new factory to the set of known factories *)
 
18
 
 
19
class false_factory : string -> lexer_factory
 
20
  (** A factory that always fails with the passed string when it is
 
21
   * tried to open a source
 
22
   *)
 
23
 
11
24
val get_lexer_set : rep_encoding -> lexer_set
 
25
  (* DEPRECATED. Only exists because WDialog needs it. This function
 
26
   * is only emulated to the level that WDialog can use it.
 
27
   *)
12
28
  (* Return the set of lexer functions that is able to handle the passed
13
29
   * encoding.
14
30
   *)
15
31
 
16
 
val init : lexer_set -> unit
17
 
  (* Add a new lexerset *)
18
 
 
19
 
(* ======================================================================
20
 
 * History:
21
 
 * 
22
 
 * $Log: pxp_lexers.mli,v $
23
 
 * Revision 1.5  2001/06/14 23:29:03  gerd
24
 
 *      Arbitrary lexical analyzers can be plugged into the parser,
25
 
 * not only for ISO-8859-1 and UTF-8.
26
 
 *
27
 
 * Revision 1.4  2000/05/29 23:48:38  gerd
28
 
 *      Changed module names:
29
 
 *              Markup_aux          into Pxp_aux
30
 
 *              Markup_codewriter   into Pxp_codewriter
31
 
 *              Markup_document     into Pxp_document
32
 
 *              Markup_dtd          into Pxp_dtd
33
 
 *              Markup_entity       into Pxp_entity
34
 
 *              Markup_lexer_types  into Pxp_lexer_types
35
 
 *              Markup_reader       into Pxp_reader
36
 
 *              Markup_types        into Pxp_types
37
 
 *              Markup_yacc         into Pxp_yacc
38
 
 * See directory "compatibility" for (almost) compatible wrappers emulating
39
 
 * Markup_document, Markup_dtd, Markup_reader, Markup_types, and Markup_yacc.
40
 
 *
41
 
 * Revision 1.3  2000/05/29 21:14:57  gerd
42
 
 *      Changed the type 'encoding' into a polymorphic variant.
43
 
 *
44
 
 * Revision 1.2  2000/05/23 00:09:44  gerd
45
 
 *      The UTF-8 lexer set is no longer initialized here. It is done
46
 
 * in the new module Pxp_utf8. Reason: You can link without UTF-8 support.
47
 
 *
48
 
 * Revision 1.1  2000/05/20 20:30:50  gerd
49
 
 *      Initial revision.
50
 
 *
51
 
 * 
52
 
 *)