Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

51 lines
721 B

`del definitions`;
`del rules`;
`del usercode`;
`del parser.ll`;
while (<>)
{
if($ARGV ne $oldargv)
{
open STDOUT, ">>definitions";
$lineNumber = 1;
printf("#line %d \"%s\"\n", $lineNumber, $ARGV);
$oldargv = $ARGV;
$section = 0;
}
}
continue{
$lineNumber++;
/\%\%/;
if ($&)
{
$section++;
close STDOUT;
if($section eq 1)
{
open STDOUT, ">>rules";
}
if($section eq 2)
{
open STDOUT, ">>usercode";
}
printf("#line %d \"%s\"\n", $lineNumber, $ARGV);
}
else
{
print;
}
}
close STDOUT;
`type definitions >parser.ll`;
`echo %% >>parser.ll` ;
`type rules >>parser.ll`;
`echo %% >>parser.ll`;
`type usercode >>parser.ll`;
`del definitions`;
`del rules`;
`del usercode`;