[albatross-users] al-comment tags

Matt Goodall matt at pollenation.net
Sun Oct 19 20:02:43 EST 2003


Sheila King wrote:

> I have never worked with a programming language before that required 
> stuff within commented blocks to be syntactically correct. I'm quite 
> surprised at this behavior, as I cannot understand the reasoning for 
> it, and it certainly doesn't allow me to use comments as I normally 
> would. 

I agree it's a bit strange and I think I remember being caught by this 
too. However, I suspect it has more to do with keeping the template 
parser simple than a deliberate decision to enforce correct syntax 
within comment blocks.

IIRC, the parser is implemented using a regex to spot al- and alx- tags 
(the only prefixes that the are recognised). My guess is that this was 
simply the easiest solution and avoids resorting to a DOM tree or 
parsing the template code into a tree of tokens as true language parsers 
tend to do.

Cheers, Matt

-- 
Matt Goodall, Pollenation Internet Ltd
w: http://www.pollenation.net
e: matt at pollenation.net





More information about the Albatross-users mailing list