Have you also noticed the evil trim() in doTableStuff() ? Right before it starts to parse the line. Means have to lookahead if a line starts with whitespace or NUL.
Jared
-----Original Message----- From: wikitext-l-bounces@lists.wikimedia.org [mailto:wikitext-l-bounces@lists.wikimedia.org] On Behalf Of Steve Bennett Sent: 04 February 2008 12:11 To: Wikitext-l Subject: [Wikitext-l] So, the hardest wikitext construct to parse?
Table rows:
{| |- |You parse and parse and parse and read and read and you have no idea whether this is a table cell or a style property for the cell, until you hit either a | or a ||. Oops, it was just a style property, better go back and parse it again. |}
That's kind of evil. For big table rows, that could get very expensive to parse.
Steve
Wikitext-l mailing list Wikitext-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/wikitext-l