On Thu, Aug 17, 2006 at 01:56:29AM -0400, Simetrical wrote:
On 8/17/06, Jay R. Ashworth jra@baylink.com wrote:
It wouldn't help. The problems are semantic, not syntactical.
I think. :-)
Nope, we're talking 100% syntax. '''hi''hello'''hi'''hello''hi''' isn't ambiguous if it's stored as <b>hi<i>hello</i></b><i>hi<b>hello</b></i><b>hi</b> to begin with, and
Well that's fine... but *getting from Eric's example to yours* is a problem of semantics: what did the user *mean*. Without disambiguating rules, there may be no way to tell.
Please make the following sentence gramatically correct, solely by adding punctuation:
John where Nancy had had had had had had had had had had had a better effect.
Semantics.
neither do you need unlimited lookahead to know that <h2> is a header tag and not a literal string. Every problem Eric is having would be eliminated if we switched to XML for internal storage, because all Eric is doing is trying to write a formal grammar ??? and a formal XML grammar is part of the official XML specification.
Fine, but a) those are not the only problems he's having, and b) No [[Flag Day]]s.
Cheers, -- jra