Remove the timestamp header in source files. This information is
[tatoo.git] / src / xpath / parser.ml
1 (***********************************************************************)
2 (*                                                                     *)
3 (*                               TAToo                                 *)
4 (*                                                                     *)
5 (*                     Kim Nguyen, LRI UMR8623                         *)
6 (*                   Université Paris-Sud & CNRS                       *)
7 (*                                                                     *)
8 (*  Copyright 2010-2013 Université Paris-Sud and Centre National de la *)
9 (*  Recherche Scientifique. All rights reserved.  This file is         *)
10 (*  distributed under the terms of the GNU Lesser General Public       *)
11 (*  License, with the special exception on linking described in file   *)
12 (*  ../LICENSE.                                                        *)
13 (*                                                                     *)
14 (***********************************************************************)
15
16 include Xpath_internal_parser
17
18 let parse (l : Ulexing.lexbuf) =
19   try
20     xpath_query (fun _ -> Ulexer.token l) (Lexing.from_string "!!dummy!!")
21   with
22     Parsing.Parse_error ->
23       Ulexer.error (Ulexing.lexeme_start l) (Ulexing.lexeme_end l) "syntax error"
24