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