示例#1
0
 public void AddVariableDecl(VariableDeclNode VariableDecl)
 {
     if (VariableDecl != null)
     {
         this.variableDeclList.Add(VariableDecl);
     }
 }
 public override void Visit(VariableDeclNode node)
 {
     node.identifier.Accept(this);
     node.type.Accept(this);
 }
示例#3
0
 public void AddVariableDecl(VariableDeclNode VariableDecl)
 {
     if(VariableDecl != null)
         this.variableDeclList.Add(VariableDecl);
 }
示例#4
0
 public virtual void Visit(VariableDeclNode node)
 {
     node.type.Accept(this);
     node.identifier.Accept(this);
 }
示例#5
0
 public override void Visit(VariableDeclNode node)
 {
     Console.WriteLine(this.indentation + "Variable <Identifier: " + node.identifier.name + ">");
     indentation = indentation + "   ";
     Console.WriteLine(this.indentation + "Type: " + node.type.toString());
     indentation = indentation.Substring(0, indentation.Length - 3);
 }