summaryrefslogtreecommitdiffstats
path: root/crypto/property/properties.ebnf
blob: 62e4f77ccac102537d51bf2d15d01c5d6b674ff9 (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_]* )*