example/mail/mail.bnf
raw| 1 | !whitespace : '\t' | '\n' | '\r' | ' ' ; |
| 2 | |
| 3 | _atext : 'A'-'Z' | 'a'-'z' | '0'-'9' |
| 4 | | '!' | '#' | '$' | '%' | '&' | '\'' | '*' | '+' | '-' | '/' |
| 5 | | '=' | '?' | '^' | '_' | '`' | '{' | '|' | '}' | '~' |
| 6 | | '\u0100'-'\U0010FFFF' |
| 7 | ; |
| 8 | |
| 9 | _atom : _atext {_atext} ; |
| 10 | |
| 11 | _dotatom : _atom {'.' _atom} ; |
| 12 | |
| 13 | _quotedpair : '\\' . ; |
| 14 | |
| 15 | _quotedstring : '"' (_quotedpair | .) {_quotedpair | .} '"' ; |
| 16 | |
| 17 | addrspec : (_dotatom | _quotedstring) '@' _dotatom ; |