[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Issues outstanding
Frank Ellermann wrote:
> The unique-quote and unique-lit productions ares not parser-
> friendly
They are also wrong, I forgot 2*(".") as another "must-quote",
and anything starting or ending with dots is a "must-quote".
| unique-quote = 1*( unique-part unique-lit unique-part )) /
| ( 1*(".") unique-part) / (unique-part 1*("."))
| unique-part = *([dot-atom-text] / [unique-lit])
| unique-lit = ( *(["."]) unique-text *(["."])) / 2*(".")
| unique-text = "(" / ")" / "<" / ; all specials, minus ">",
| "[" / "]" / "@" / ; minus DQUOTE, minus "\",
| ":" / ";" / "," / ; and minus "." (dot)
| "\\" / ("\" DQUOTE)
Now I've added the two dubious "must-quote" quoted pairs. It's
still not very parser-friendly, what I really wanted is simply:
1 - it starts with a dot, or 2 - it ends with a dot. or
3 - it contains 2*("."), or 4 - it contains \\ or \" or
5 - it contains one or more ()<[]@;:, with an arbitrary number
of dots before or after the quoted-pair (4) or special (5).
Bye, Frank