示例#1
0
文件: Stmt.cs 项目: crfloyd/shlox
 public While(Expr condition, Stmt body)
 {
     Condition = condition;
     Body      = body;
 }
示例#2
0
文件: Stmt.cs 项目: crfloyd/shlox
 public If(Expr condition, Stmt thenBranch, Stmt elseBranch)
 {
     Condition  = condition;
     Thenbranch = thenBranch;
     Elsebranch = elseBranch;
 }
示例#3
0
 private void Resolve(Stmt statement) => statement.Accept(this);