Blame camlp4/Camlp4/PreCast.ml

Packit 1f8b6b
(****************************************************************************)
Packit 1f8b6b
(*                                                                          *)
Packit 1f8b6b
(*                                   OCaml                                  *)
Packit 1f8b6b
(*                                                                          *)
Packit 1f8b6b
(*                            INRIA Rocquencourt                            *)
Packit 1f8b6b
(*                                                                          *)
Packit 1f8b6b
(*  Copyright  2006   Institut National de Recherche  en  Informatique et   *)
Packit 1f8b6b
(*  en Automatique.  All rights reserved.  This file is distributed under   *)
Packit 1f8b6b
(*  the terms of the GNU Library General Public License, with the special   *)
Packit 1f8b6b
(*  exception on linking described in LICENSE at the top of the Camlp4      *)
Packit 1f8b6b
(*  source tree.                                                            *)
Packit 1f8b6b
(*                                                                          *)
Packit 1f8b6b
(****************************************************************************)
Packit 1f8b6b
Packit 1f8b6b
(* Authors:
Packit 1f8b6b
 * - Daniel de Rauglaudre: initial version
Packit 1f8b6b
 * - Nicolas Pouillard: refactoring
Packit 1f8b6b
 *)
Packit 1f8b6b
Packit 1f8b6b
module Id = struct
Packit 1f8b6b
  value name = "Camlp4.PreCast";
Packit 1f8b6b
  value version = Sys.ocaml_version;
Packit 1f8b6b
end;
Packit 1f8b6b
Packit 1f8b6b
type camlp4_token = Sig.camlp4_token ==
Packit 1f8b6b
  [ KEYWORD       of string
Packit 1f8b6b
  | SYMBOL        of string
Packit 1f8b6b
  | LIDENT        of string
Packit 1f8b6b
  | UIDENT        of string
Packit 1f8b6b
  | ESCAPED_IDENT of string
Packit 1f8b6b
  | INT           of int and string
Packit 1f8b6b
  | INT32         of int32 and string
Packit 1f8b6b
  | INT64         of int64 and string
Packit 1f8b6b
  | NATIVEINT     of nativeint and string
Packit 1f8b6b
  | FLOAT         of float and string
Packit 1f8b6b
  | CHAR          of char and string
Packit 1f8b6b
  | STRING        of string and string
Packit 1f8b6b
  | LABEL         of string
Packit 1f8b6b
  | OPTLABEL      of string
Packit 1f8b6b
  | QUOTATION     of Sig.quotation
Packit 1f8b6b
  | ANTIQUOT      of string and string
Packit 1f8b6b
  | COMMENT       of string
Packit 1f8b6b
  | BLANKS        of string
Packit 1f8b6b
  | NEWLINE
Packit 1f8b6b
  | LINE_DIRECTIVE of int and option string
Packit 1f8b6b
  | EOI ];
Packit 1f8b6b
Packit 1f8b6b
module Loc = Struct.Loc;
Packit 1f8b6b
module Ast = Struct.Camlp4Ast.Make Loc;
Packit 1f8b6b
module Token = Struct.Token.Make Loc;
Packit 1f8b6b
module Lexer = Struct.Lexer.Make Token;
Packit 1f8b6b
module Gram = Struct.Grammar.Static.Make Lexer;
Packit 1f8b6b
module DynLoader = Struct.DynLoader;
Packit 1f8b6b
module Quotation = Struct.Quotation.Make Ast;
Packit 1f8b6b
module MakeSyntax (U : sig end) = OCamlInitSyntax.Make Ast Gram Quotation;
Packit 1f8b6b
module Syntax = MakeSyntax (struct end);
Packit 1f8b6b
module AstFilters = Struct.AstFilters.Make Ast;
Packit 1f8b6b
module MakeGram = Struct.Grammar.Static.Make;
Packit 1f8b6b
Packit 1f8b6b
module Printers = struct
Packit 1f8b6b
  module OCaml = Printers.OCaml.Make Syntax;
Packit 1f8b6b
  module OCamlr = Printers.OCamlr.Make Syntax;
Packit 1f8b6b
  (* module OCamlrr = Printers.OCamlrr.Make Syntax; *)
Packit 1f8b6b
  module DumpOCamlAst = Printers.DumpOCamlAst.Make Syntax;
Packit 1f8b6b
  module DumpCamlp4Ast = Printers.DumpCamlp4Ast.Make Syntax;
Packit 1f8b6b
  module Null = Printers.Null.Make Syntax;
Packit 1f8b6b
end;