summaryrefslogtreecommitdiffstats
path: root/crypto/property/properties.ebnf
blob: a55198bd75fa4b5f23827bcdef9ff4466a208c03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
(* https://bottlecaps.de/rr/ui *)

Definition
      ::= PropertyName ( '=' Value )? ( ',' PropertyName ( '=' Value )? )*
Query ::= PropertyQuery ( ',' PropertyQuery )*
PropertyQuery ::= '-' PropertyName
        | '?'? ( PropertyName (( '=' | '!=' ) Value)?)
Value    ::= NumberLiteral
        | StringLiteral
StringLiteral ::= QuotedString | UnquotedString
QuotedString     ::= '"' [^"]* '"'
        | "'" [^']* "'"
UnquotedString ::= [^{space},]+
NumberLiteral
     ::= '0' ( [0-7]* | 'x' [0-9A-Fa-f]+ )
        | '-'? [1-9] [0-9]+
PropertyName
         ::= [A-Z] [A-Z0-9_]* ( '.' [A-Z] [A-Z0-9_]* )*