#!/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";