コード例 #1
0
ファイル: Gen_Stmt.cs プロジェクト: sirgru/CsLox
 public IfStmt(Expr condition, Stmt thenBranch, Stmt elseBranch)
 {
     this.condition  = condition;
     this.thenBranch = thenBranch;
     this.elseBranch = elseBranch;
 }
コード例 #2
0
ファイル: Gen_Stmt.cs プロジェクト: sirgru/CsLox
 public ExpressionStmt(Expr expression)
 {
     this.expression = expression;
 }
コード例 #3
0
ファイル: Gen_Stmt.cs プロジェクト: sirgru/CsLox
 public WhileStmt(Expr condition, Stmt body)
 {
     this.condition = condition;
     this.body      = body;
 }
コード例 #4
0
ファイル: Gen_Stmt.cs プロジェクト: sirgru/CsLox
 public VarStmt(Token name, Expr initializer)
 {
     this.name        = name;
     this.initializer = initializer;
 }
コード例 #5
0
ファイル: Gen_Stmt.cs プロジェクト: sirgru/CsLox
 public ReturnStmt(Token keyword, Expr value)
 {
     this.keyword = keyword;
     this.value   = value;
 }
コード例 #6
0
ファイル: Gen_Stmt.cs プロジェクト: sirgru/CsLox
 public PrintStmt(Expr expression)
 {
     this.expression = expression;
 }