2007-02-07 00:59:16 -08:00
|
|
|
(***********************************************************************)
|
2012-08-01 07:47:00 -07:00
|
|
|
(* *)
|
2007-02-07 00:59:16 -08:00
|
|
|
(* ocamlbuild *)
|
|
|
|
(* *)
|
|
|
|
(* Nicolas Pouillard, Berke Durak, projet Gallium, INRIA Rocquencourt *)
|
|
|
|
(* *)
|
|
|
|
(* Copyright 2007 Institut National de Recherche en Informatique et *)
|
|
|
|
(* en Automatique. All rights reserved. This file is distributed *)
|
|
|
|
(* under the terms of the Q Public License version 1.0. *)
|
|
|
|
(* *)
|
|
|
|
(***********************************************************************)
|
|
|
|
|
2009-03-03 08:54:58 -08:00
|
|
|
|
2007-02-07 00:59:16 -08:00
|
|
|
(* Original author: Berke Durak *)
|
|
|
|
(* Glob_ast *)
|
|
|
|
|
|
|
|
exception Parse_error of string
|
|
|
|
type pattern =
|
|
|
|
| Epsilon
|
|
|
|
| Star of pattern
|
|
|
|
| Class of character_class
|
|
|
|
| Concat of pattern * pattern
|
|
|
|
| Union of pattern list
|
|
|
|
| Word of string
|
|
|
|
and character_class = (char * char) Bool.boolean
|
|
|
|
type 'pattern atom = Constant of string | Pattern of 'pattern
|