view test/code-gen.pl @ 488:62f3c801b6ac

correct_type fix. type attribute.
author kono
date Sat, 17 Dec 2005 10:32:34 +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";