mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-24 04:27:59 +01:00
13 lines
198 B
Elixir
13 lines
198 B
Elixir
|
defmodule Search.BoolParser do
|
||
|
import NimbleParsec
|
||
|
|
||
|
bool =
|
||
|
choice([
|
||
|
string("true"),
|
||
|
string("false")
|
||
|
])
|
||
|
|> unwrap_and_tag(:bool)
|
||
|
|> eos()
|
||
|
|
||
|
defparsec :parse, bool
|
||
|
end
|