Sean Kelly wrote:
The best I've come up with so far for parsing
that stuff is to have the lexer actually return tokens representing whitespace
in some instances.  It's totally ridiculous.

The Descent port of the DMDFE lexer does this for formatting source code. It's a neat trick for formatting, but shouldn't be necessary for compilation.

Also, was there ever a consensus on whether whitespace has meaning in XML?

Reply via email to