Пример #1
0
 public IfStmt(Expr condition, Stmt thenBranch, Stmt elseBranch)
 {
     this.condition  = condition;
     this.thenBranch = thenBranch;
     this.elseBranch = elseBranch;
 }
Пример #2
0
 public ExpressionStmt(Expr expression)
 {
     this.expression = expression;
 }
Пример #3
0
 public WhileStmt(Expr condition, Stmt body)
 {
     this.condition = condition;
     this.body      = body;
 }
Пример #4
0
 public VarStmt(Token name, Expr initializer)
 {
     this.name        = name;
     this.initializer = initializer;
 }
Пример #5
0
 public ReturnStmt(Token keyword, Expr value)
 {
     this.keyword = keyword;
     this.value   = value;
 }
Пример #6
0
 public PrintStmt(Expr expression)
 {
     this.expression = expression;
 }