public override void Visit(ProgramNode node)
 {
     GenText(".code");
     node.mainClassDecl.Accept(this);
     for (int x = 0; x < node.classDeclList.classDeclList.Count; x++)
         node.classDeclList.ClassDeclAtIndex(x).Accept(this);
 }
 public override void Visit(ProgramNode node)
 {
     ClassDefinition StringClassDefinition = Analysis.Environment.Classes.Add("String");
     StringClassDefinition.ClassType = new ClassType("String");
     node.mainClassDecl.Accept(this);
     for (int x = 0; x < node.classDeclList.classDeclList.Count; x++)
         node.classDeclList.ClassDeclAtIndex(x).Accept(this);
 }
Example #3
0
 public virtual void Visit(ProgramNode node)
 {
     node.mainClassDecl.Accept(this);
     for (int x = 0; x < node.classDeclList.classDeclList.Count; x++)
         node.classDeclList.ClassDeclAtIndex(x).Accept(this);
 }
Example #4
0
 public override void Visit(ProgramNode node)
 {
     Console.WriteLine(this.indentation + "Program");
     indentation = indentation + "   ";
     node.mainClassDecl.Accept(this);
     for (int x = 0; x < node.classDeclList.classDeclList.Count; x++)
     {
         node.classDeclList.ClassDeclAtIndex(x).Accept(this);
     }
     indentation = indentation.Substring(0, indentation.Length - 3);
 }