jxxcarlson/elm-text-search/1.0.0

NOTE: the latest version is 2.0.0

TextSearch.Parse

The parse function accepts a query string and if successful produces a value of type QueryTerm. For example, the query string "foo -bar | x y" yields the QueryTerm

Disjunction [ Conjunction [ Word "foo", NotWord "bar" ], Conjunction [ Word "x", Word "y" ] ]
= Word String
| NotWord String
| Conjunction (List QueryTerm)
| Disjunction (List QueryTerm)
Type of the parser syntax tree.
parse : String -> Result (List DeadEnd) QueryTerm