summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2026-05-07 07:57:16 +0200
committerEugen Wissner <belka@caraus.de>2026-05-07 07:57:16 +0200
commit92e88cfcb2b6b8258f68945a0be8846cffa72c6a (patch)
treee8c9e00539715bc7504a810c2e92ac8b0b7bdbda /Rakefile
parenteaef813be1d9e4a9c014d03ed7bbef6a82c5ab54 (diff)
downloadelna-92e88cfcb2b6b8258f68945a0be8846cffa72c6a.tar.gz
Implement aggregate values assignment
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile17
1 files changed, 11 insertions, 6 deletions
diff --git a/Rakefile b/Rakefile
index c48a248..8b18106 100644
--- a/Rakefile
+++ b/Rakefile
@@ -46,13 +46,18 @@ task :convert do
current_stage << <<~FUN
proc f();
var
- x: ElnaType;
- y: ElnaTypeField;
+ x: ElnaLocation;
+ y: ElnaPosition;
begin
- x.size := 3;
- y.field_type := malloc(#size(ElnaType));
- y.field_type^ := x;
- printf("# %i\\n\\0", y.field_type^.size)
+ x.line := 5;
+ x.column := 3;
+ y.end_location := x;
+
+ (* y.end_location.line := 5;
+ y.end_location.column := 3;
+ x := y.end_location; *)
+
+ printf("# %i %i %i %i\\n\\0", x.line, x.column, y.end_location.line, y.end_location.column)
end;
begin