|
@@ -124,14 +124,14 @@ and node =
|
|
|
(** Replacement for [FunCall] with declaration. *)
|
|
(** Replacement for [FunCall] with declaration. *)
|
|
|
| VarLet of node * node list option * node * ann
|
|
| VarLet of node * node list option * node * ann
|
|
|
(** Replacement for [Assign] with declaration. *)
|
|
(** Replacement for [Assign] with declaration. *)
|
|
|
- | ArrayScalar of node (* TODO: remove *)
|
|
|
|
|
| ArrayInit of node * node list
|
|
| ArrayInit of node * node list
|
|
|
(** Wrapper for array initalisation with dimensions, used by {!Desug}. *)
|
|
(** Wrapper for array initalisation with dimensions, used by {!Desug}. *)
|
|
|
| Cond of node * node * node * ann
|
|
| Cond of node * node * node * ann
|
|
|
(** cond, true_expr, false_expr [<cond> ? <true_expr> : <false_expr>]
|
|
(** cond, true_expr, false_expr [<cond> ? <true_expr> : <false_expr>]
|
|
|
Used for short-circuit evaluation. *)
|
|
Used for short-circuit evaluation. *)
|
|
|
| DummyNode
|
|
| DummyNode
|
|
|
- (** Null node, pruned by traversals. *)
|
|
|
|
|
|
|
+ (** Null node, pruned by {!Util.flatten_blocks}, which is called by
|
|
|
|
|
+ {!Util.transform_children} in a traversal. *)
|
|
|
|
|
|
|
|
(** {2 Assembly instructions} *)
|
|
(** {2 Assembly instructions} *)
|
|
|
|
|
|