(***********************************************************************) (* *) (* TAToo *) (* *) (* Kim Nguyen, LRI UMR8623 *) (* Université Paris-Sud & CNRS *) (* *) (* Copyright 2010-2013 Université Paris-Sud and Centre National de la *) (* Recherche Scientifique. All rights reserved. This file is *) (* distributed under the terms of the GNU Lesser General Public *) (* License, with the special exception on linking described in file *) (* ../LICENSE. *) (* *) (***********************************************************************) include Xpath_internal_parser let parse (l : Ulexing.lexbuf) = try xpath_query (fun _ -> Ulexer.token l) (Lexing.from_string "!!dummy!!") with Parsing.Parse_error -> Ulexer.error (Ulexing.lexeme_start l) (Ulexing.lexeme_end l) "syntax error"