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