module ASTVector:sig..end
Vectors of ASTs
type ast_vector
val mk_ast_vector : context -> ast_vectorCreate an empty AST vector
val get_size : ast_vector -> intThe size of the vector
val get : ast_vector -> int -> AST.astRetrieves the i-th object in the vector.
val set : ast_vector -> int -> AST.ast -> unitSets the i-th object in the vector.
val resize : ast_vector -> int -> unitResize the vector to a new size.
val push : ast_vector -> AST.ast -> unitAdd an ast to the back of the vector. The size is increased by 1.
val translate : ast_vector -> context -> ast_vectorTranslates all ASTs in the vector to another context.
val to_list : ast_vector -> AST.ast listTranslates the ASTVector into an (Ast.ast list)
val to_expr_list : ast_vector -> Expr.expr listTranslates the ASTVector into an (Expr.expr list)
val to_string : ast_vector -> stringRetrieves a string representation of the vector.