Example #1
0
 public Branch(BaseAST cond, BlockExprAST body)
 {
     Cond = cond;
     Body = body;
 }
Example #2
0
 public BinaryExprAST(ASTType nodeType, BaseAST lhs, BaseAST rhs)
 {
     NodeType = nodeType;
     Lhs      = lhs;
     Rhs      = rhs;
 }
Example #3
0
 public WriteStmtAST(BaseAST value)
 {
     Value = value;
 }
Example #4
0
 public static void Compile(this BaseAST exprAST, ASTVisitor visitor) => visitor.Visit(exprAST);
Example #5
0
 public AssignStmtAST(string name, BaseAST value)
 {
     Name  = name;
     Value = value;
 }