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

RE: Announce : Tokener reporting patch

Thread Previous | Thread Next
From:
Konovalov, Vadim
Date:
January 18, 2001 00:06
Subject:
RE: Announce : Tokener reporting patch
Message ID:
402099F49BEED211999700805FC7359F964E73@ru0028exch01.spb.lucent.com
> 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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About