This commit is contained in:
agra
2026-02-10 21:03:56 +02:00
parent bba26ca0d7
commit ef14144d49
5 changed files with 168 additions and 5 deletions

View File

@@ -49,6 +49,7 @@ pub const Node = struct {
array_literal: ArrayLiteral,
parameterized_type_expr: ParameterizedTypeExpr,
index_expr: IndexExpr,
slice_expr: SliceExpr,
while_expr: WhileExpr,
for_expr: ForExpr,
spread_expr: SpreadExpr,
@@ -299,6 +300,12 @@ pub const IndexExpr = struct {
index: *Node,
};
pub const SliceExpr = struct {
object: *Node,
start: ?*Node = null,
end: ?*Node = null,
};
pub const WhileExpr = struct {
condition: *Node,
body: *Node,