On 11/8/07, Andrew Garrett <andrew(a)epstone.net> wrote:
Wouldn't the most sensible way to come up with a formal specification
be to write a dirty great big page with all the details of the way
certain constructs are parsed?
What format are you thinking of? A set of rules with precedence like:
*x --> <OL><LI>x</LI></OL>
'''x''' -> <B>x</B>
perhaps? It has the advantage that it would more closely match the current
parser implementation and would be easier to write. Which of course gives
the disadvantage that it's less like a spec for a "real" parser, so is less
helpful if/when we come to write one.
However it does look easier to mantain.
Steve