Add text() and node() tokens in the lexer to allow node test and
[SXSI/xpathcomp.git] / src / ulexer.ml
index 05ab4ae..a7d75ed 100644 (file)
@@ -186,7 +186,7 @@ let parse_char lexbuf base i =
 
 let rec token = lexer
  | [' ' '\t'] -> token lexbuf
- | "and" | "not" | "or" (* | "text" | "node" *)
+ | "and" | "not" | "or"  | "text()" | "node()" 
  | "self" | "descendant" | "child" | "descendant-or-self" 
  | "attribute" | "following-sibling" | "preceding-sibling"
  | "parent" | "ancestor" | "ancestor-or-self" | "preceding" | "following"