Mercurial > hg > CbC > old > device
view test/code-gen.pl @ 399:9d0015a1fa54
lvar address fix
author | kono |
---|---|
date | Sat, 16 Oct 2004 10:29:51 +0900 |
parents | 8a72b0afccfc |
children | 9ff5cd7afe2f |
line wrap: on
line source
#!/usr/bin/perl print "#include \"code-gen.c\"\n"; print "int main() {\n"; while(<>) { if (/^\w+\(/) { print "\t$&",");\n"; } elsif (/^#/) { print; } } print "return 0; }\n";