develooper Front page | perl.perl5.porters | Postings from January 2001

RE: Announce : Tokener reporting patch

Thread Previous | Thread Next
Konovalov, Vadim
January 18, 2001 00:06
RE: Announce : Tokener reporting patch
Message ID:
> 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">

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About