示例#1
0
文件: CodeGen.cs 项目: bencz/Beryl
 public void visit(VariableDeclaration that)
 {
     that.Type.visit(this);
     Console.WriteLine(" {0};", that.Name);
 }
示例#2
0
文件: Checker.cs 项目: bencz/Beryl
 public void visit(VariableDeclaration that)
 {
     if (!_symbols.Insert(that.Name, that))
         throw new CheckerError(that.Position, "Duplicate name '" + that.Name + "' detected in variable declaration");
 }