I'm currently embarking on a similar twisted path, by creating a parser/compiler for Javascript. It is actually easy to do with the tools that Perl provides, as long as you're not afraid to use Parse::Yapp, a yacc for Perl.
A yacc grammar for C should be found in every corner, the rest is where the fun is...
perl -MHTTP::Daemon -MHTTP::Response -MLWP::Simple -e ' ; # The $d = new HTTP::Daemon and fork and getprint $d->url and exit;#spider ($c = $d->accept())->get_request(); $c->send_response( new #in the HTTP::Response(200,$_,$_,qq(Just another Perl hacker\n))); ' # web
In reply to Re: C compiler ... in Perl
by Corion
in thread C compiler ... in Perl
by rje
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |