Пример #1
0
/* main program */
public static void Main()
  {
  try
    {
    String[] args = Environment.GetCommandLineArgs();
    Io prog = new Io(args);
    Tok tok = new Tok(prog);
    Parse p = new Parse(prog, tok);
    p.program();
    prog.Finish();
    }
  catch (Exception e)
    {
    Console.WriteLine("Compiler aborting: "+e.ToString());
    }
  }
Пример #2
0
/* main program */
        public static void Main()
        {
            try
            {
                String[] args = Environment.GetCommandLineArgs();
                Io       prog = new Io(args);
                Tok      tok  = new Tok(prog);
                Parse    p    = new Parse(prog, tok);
                p.program();
                prog.Finish();
            }
            catch (Exception e)
            {
                Console.WriteLine("Compiler aborting: " + e.ToString());
            }
        }
Пример #3
0
 public Parse(Io i, Tok t)
 {
     io        = i;
     tok       = t;
     staticvar = new VarList(); // init the static variables list
 }
Пример #4
0
public Parse(Io i, Tok t)
  {
  io = i;
  tok = t;
  staticvar = new VarList();	// init the static variables list
  }