1 (***********************************************************************)
5 (* Kim Nguyen, LRI UMR8623 *)
6 (* Université Paris-Sud & CNRS *)
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 *)
14 (***********************************************************************)
16 include Xpath_internal_parser
18 let parse (l : Ulexing.lexbuf) =
20 xpath_query (fun _ -> Ulexer.token l) (Lexing.from_string "!!dummy!!")
22 Parsing.Parse_error ->
23 Ulexer.error (Ulexing.lexeme_start l) (Ulexing.lexeme_end l) "syntax error"