[Tools-discuss] Re: [ABNF] Legal or not legal to have literal numbers?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tools-discuss] Re: [ABNF] Legal or not legal to have literal numbers?



On Fri, Nov 10, 2006 at 10:15:10AM +0100,
 Stephane Bortzmeyer <bortzmeyer at nic.fr> wrote 
 a message of 21 lines which said:

> The attached grammar,

Really attached, now :-) along with what I regard as a "fixed"
version.
NSS            = ProviderId ":" DateId ":" IMGRootId  [":" FragmentId]
ProviderId     = 1*(label ".") toplabel
DateId         = CCYY MM DD
IMGRootId      = 1*(alphanum / symbol / ("%" HEXDIG HEXDIG ))
FragmentId     = 1*(alphanum / symbol / ":" / ("%" HEXDIG HEXDIG ))
label          = alphanum / alphanum *[ alphanum / "-" ] alphanum
toplabel       = ALPHA / ALPHA *[ alphanum / "-" ] alphanum
CCYY           = 4(DIGIT)
MM             = ( 0 DIGIT ) / ( "1" ( "0" "1" "2" ) )
DD             = ( 0 DIGIT ) / ( ( "1" / "2" ) DIGIT ) / "30" / "31"
alphanum       = ALPHA / DIGIT
symbol         = "(" / ")" / "+" / "," / "-" / "." / "=" /  "@" / ";" / "$" / "_" / "!" / "*" / "'"
NSS            = ProviderId ":" DateId ":" IMGRootId  [":" FragmentId]
ProviderId     = 1*(label ".") toplabel
DateId         = CCYY MM DD
IMGRootId      = 1*(alphanum / symbol / ("%" HEXDIG HEXDIG ))
FragmentId     = 1*(alphanum / symbol / ":" / ("%" HEXDIG HEXDIG ))
label          = alphanum / alphanum *[ alphanum / "-" ] alphanum
toplabel       = ALPHA / ALPHA *[ alphanum / "-" ] alphanum
CCYY           = 4(DIGIT)
MM             = ( "0" DIGIT ) / ( "1" ( "0" "1" "2" ) )
DD             = ( "0" DIGIT ) / ( ( "1" / "2" ) DIGIT ) / "30" / "31"
alphanum       = ALPHA / DIGIT
symbol         = "(" / ")" / "+" / "," / "-" / "." / "=" /  "@" / ";" / "$" / "_" / "!" / "*" / "'"
_______________________________________________
Tools-discuss mailing list
Tools-discuss at ietf.org
https://www1.ietf.org/mailman/listinfo/tools-discuss

Note: Messages sent to this list are the opinions of the senders and do not imply endorsement by the IETF.