xpath-lexer
A lexer for XPath 1.0 expressions.
Installation
The package can be installed with npm
.
$ npm install xpath-lexer
Usage
var XPathLexer = ; var lexer = "//foo:bar[@id='baz']"; lexernext // => "//"lexernext // => "foo:bar"lexernext // => "["lexernext // => "@"lexernext // => "id"lexernext // => "="lexernext // => "'baz'"lexernext // => "]"