7 public class ILAsmTest
{
11 public static int Main (string [] args
) {
13 if (args
.Length
!= 1) {
14 Console
.WriteLine ("Usage : ilasm [filename]");
18 StreamReader reader
= File
.OpenText (args
[0]);
19 ILTokenizer scanner
= new ILTokenizer (reader
);
21 bool testScanner
= true;
25 while ((tok
= scanner
.NextToken
) != ILToken
.EOF
) {
26 Console
.WriteLine (tok
);
29 ILParser parser
= new ILParser (new CodeGen ());
30 parser
.yyparse (new ScannerAdapter (scanner
), new yydebug
.yyDebugSimple ());
32 CodeGen cg
= parser
.CodeGen
;
33 int n
= cg
.ClassCount
;