[Templates] TT2 syntax checker or lint?

Vivek Khera khera@kcilink.com
Wed, 6 Mar 2002 15:09:36 -0500


>>>>> "MP" == Matthew Pressly <mpressly@claborn.net> writes:

MP> or of any extraneous END tags.  Another thing that could be
MP> helpful would be to report all errors rather than just the first.
MP> Does anything like this already exist?  Matthew Pressly

This is an *incredibly* hard thing to do.  To detect further errors,
you first need to correct the "current" error you're looking at.  How
to correct that is anybody's guess.  And, if you can correct the error
this way, why should it be an error in the first place?  We would just
correct it and move along.

Often times, the error reported by a compiler is caused by some error
much earlier that was interpreted differently than the intention of
the author.  Missing semi-colons in C or Perl are classic examples of
this.  I'm sure you could come up with a way to error out Template the
same way, too.

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Vivek Khera, Ph.D.                Khera Communications, Inc.
Internet: khera@kciLink.com       Rockville, MD       +1-240-453-8497
AIM: vivekkhera Y!: vivek_khera   http://www.khera.org/~vivek/