utest.TestQueryParser
See theTestQueryParser companion object
Parses query strings.
Fastparse grammar:
val quoted: P[String] = P(""" ~/ CharsWhile(_ != '"').! ~ """) val ident: P[String] = P(CharIn('a' to 'z', 'A' to 'Z', "_-").rep(1).!) val item: P[String] = P(quoted | ident) val chain: P[Any] = P(item.rep(1, sep="." ~/) ~ ("." ~/ parseCurlies).?) val commas: P[Any] = P(chain.rep(1, sep=","~/)) val curlies: P[Any] = P(commas | "{" ~/ curlies ~ "}")
But here written manually to avoid the dependency on FastParse.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
In this article