#!/usr/bin/perl print "#include \"code-gen.c\"\n"; print "int main() {\n"; while(<>) { if (/^\w+\(/) { print "\t$&",");\n"; } } print "return 1; }\n";