projects
/
tatoo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implement command line options, clean-up screen output.
[tatoo.git]
/
src
/
xpath
/
parser.ml
diff --git
a/src/xpath/parser.ml
b/src/xpath/parser.ml
index
ed5283e
..
7386577
100644
(file)
--- a/
src/xpath/parser.ml
+++ b/
src/xpath/parser.ml
@@
-14,11
+14,15
@@
(***********************************************************************)
(*
(***********************************************************************)
(*
- Time-stamp: <Last modified on 2013-0
2-07 10:31:20 CE
T by Kim Nguyen>
+ Time-stamp: <Last modified on 2013-0
4-22 16:23:46 CES
T by Kim Nguyen>
*)
include Xpath_internal_parser
let parse (l : Ulexing.lexbuf) =
*)
include Xpath_internal_parser
let parse (l : Ulexing.lexbuf) =
- xpath_query (fun _ -> Ulexer.token l) (Lexing.from_string "!!dummy!!")
+ 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"