예제 #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);