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