Re: How to read an rfc spec
- From: rob.dixon@xxxxxxx (Rob Dixon)
- Date: Mon, 28 Jan 2008 03:38:10 +0000
2apart wrote:
>
Here's a little section from rfc 2822. I know what the nemonics stand
for, but
I'm not sure how to read the spec, * [] () / what do they mean.
If you have a handle on this could you translate the CFWS spec. It
seems
to contain all the code except the quote "
Thanks.
FWS = ([*WSP CRLF] 1*WSP) / ; Folding white space
obs-FWS
ctext = NO-WS-CTL / ; Non white space controls
%d33-39 / ; The rest of the US-ASCII
%d42-91 / ; characters not including
"(",
%d93-126 ; ")", or "\"
ccontent = ctext / quoted-pair / comment
comment = "(" *([FWS] ccontent) [FWS] ")"
CFWS = *([FWS] comment) (([FWS] comment) / FWS)
This question is both irrelevant to the Perl language and very lazy.
RFC2822 is a specification for Internet text messages, and itself
states:
1.2.2. Syntactic notation
This standard uses the Augmented Backus-Naur Form (ABNF) notation
specified in [RFC2234] for the formal definitions of the syntax of
messages.
Rob
.
- Follow-Ups:
- Re: How to read an rfc spec
- From: 2apart
- Re: How to read an rfc spec
- References:
- How to read an rfc spec
- From: 2apart
- How to read an rfc spec
- Prev by Date: Re: How to read an rfc spec
- Next by Date: Re: passing array reference from one perl script to another perl scirpt
- Previous by thread: Re: How to read an rfc spec
- Next by thread: Re: How to read an rfc spec
- Index(es):