> http://simon-cozens.org/hacks/mangle.tar.gz contains three files: a > patch to Perl, a C file and a Perl file. ... > Now, why is that cool, and why am I telling you about it? > > Ever wanted a really good syntax highlighting editor for Perl? Or an > indent(1)-style utility? Or a pretty-printer? We know that > the only thing that > can parse Perl is Perl - so let's use Perl to do it. $type, > in the above code, > tells us what type each token is, (and $flags provides > additional information > about it) so we can highlight it in the appropriate way. This > makes it really > trivial for us to build syntax-aware tools. Also it appears to be very good and intresting as tutorial sample for anyone intresting in perl guts. And useful in general. Thank you. <!ENTITY Vadim REALLIFE "Vadim V.Konovalov, St.Petersburg, Russia"> &Vadim;Thread Previous | Thread Next