コード例 #1
0
 public IfElseAstNode(BasicAstNode cond, CodeBlockAstNode ifBlock,
                      CodeBlockAstNode?elseBlock)
 {
     IfCondition = cond;
     IfBlock     = ifBlock;
     ElseBlock   = elseBlock;
 }
コード例 #2
0
 public UnaryOperatorAstNode(string op, BasicAstNode expr)
 {
     Operator = op;
     Expr     = expr;
 }
コード例 #3
0
 public ReturnAstNode(BasicAstNode rv)
 {
     ReturnValue = rv;
 }
コード例 #4
0
 public BinaryOperatorAstNode(string op, BasicAstNode left, BasicAstNode right)
 {
     Operator = op;
     Left     = left;
     Right    = right;
 }
コード例 #5
0
 public LoopAstNode(BasicAstNode condition, CodeBlockAstNode body)
 {
     Condition = condition;
     Body      = body;
 }