示例#1
0
文件: Program.cs 项目: bencz/Beryl
 public Program(Position position, LetCommand command)
     : base(position)
 {
     _command = command;
     _command.Parent = this;
 }
示例#2
0
 public Program(Position position, LetCommand command) :
     base(position)
 {
     _command        = command;
     _command.Parent = this;
 }
示例#3
0
文件: CodeGen.cs 项目: bencz/Beryl
 public void visit(LetCommand that)
 {
     Console.WriteLine("{");
     // note: function declarations should be output before the first line
     foreach (Declaration declaration in that.Declarations)
         declaration.visit(this);
     that.Command.visit(this);
     Console.WriteLine("}");
 }
示例#4
0
文件: Checker.cs 项目: bencz/Beryl
 public void visit(LetCommand that)
 {
     string name = CreateName();
     _symbols.EnterScope(name);
     foreach (Declaration declaration in that.Declarations)
         declaration.visit(this);
     that.Command.visit(this);
     _symbols.LeaveScope(name);
 }