KeyBoxen 0.1.0

Standalone secret-service daemon for window managers
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright (C) 2022 KeyBoxen Authors
// SPDX-License-Identifier: GPL-3.0-or-later

// Parsing grammar for assuan replies from pinentry

Response = {Ok | Error | Data | Comment | Status | Enquiry}

msg = !{ (!EOI ~ ANY)+ }
tail = _{" " ~ msg }
numcode = !{ ASCII_DIGIT+ }
keyword = !{ ASCII_ALPHANUMERIC+ }

Ok = { "OK" ~ tail? }
Error = { "ERR " ~ numcode ~ tail? }
Data = { "D" ~ tail }
Comment = { "#" ~ tail? }
Status = { "S " ~ keyword ~ tail? }
Enquiry = { "INQUIRE " ~ keyword ~ tail? }