Sha256: 9c41426fade7c2acba23ca764f68b7176b74a5c472e3af611249c07294376941
Contents?: true
Size: 1.14 KB
Versions: 44
Compression:
Stored size: 1.14 KB
Contents
lexer grammar XPathLexer; tokens { TOKEN_REF, RULE_REF } /* path : separator? word (separator word)* EOF ; separator : '/' '!' | '//' '!' | '/' | '//' ; word: TOKEN_REF | RULE_REF | STRING | '*' ; */ ANYWHERE : '//' ; ROOT : '/' ; WILDCARD : '*' ; BANG : '!' ; ID : NameStartChar NameChar* { if (isupper(getText()[0])) setType(TOKEN_REF); else setType(RULE_REF); } ; fragment NameChar : NameStartChar | '0'..'9' | '_' | '\u00B7' | '\u0300'..'\u036F' | '\u203F'..'\u2040' ; fragment NameStartChar : 'A'..'Z' | 'a'..'z' | '\u00C0'..'\u00D6' | '\u00D8'..'\u00F6' | '\u00F8'..'\u02FF' | '\u0370'..'\u037D' | '\u037F'..'\u1FFF' | '\u200C'..'\u200D' | '\u2070'..'\u218F' | '\u2C00'..'\u2FEF' | '\u3001'..'\uD7FF' | '\uF900'..'\uFDCF' | '\uFDF0'..'\uFFFF' // implicitly includes ['\u10000-'\uEFFFF] ; STRING : '\'' .*? '\''; //WS : [ \t\r\n]+ -> skip ;
Version data entries
44 entries across 44 versions & 1 rubygems