summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2026-05-23 00:42:02 +0200
committerEugen Wissner <belka@caraus.de>2026-05-23 00:42:02 +0200
commit90a48de0a58f6f2512370c7ce0c32a4e16f496d0 (patch)
tree9042be0696d1280433875ae77d3e2e450f3c6b43 /Rakefile
parent1802aa21d8bdc3a363c6641a209bce263e8a63b0 (diff)
downloadelna-90a48de0a58f6f2512370c7ce0c32a4e16f496d0.tar.gz
Implement 1 byte variable operations
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Rakefile b/Rakefile
index 499a70b..4cb08d0 100644
--- a/Rakefile
+++ b/Rakefile
@@ -46,11 +46,9 @@ task :convert do
current_stage << <<~FUN
proc f();
var
- x: ^ElnaLocation;
+ x: ElnaRtlObjectInfo;
begin
- x := malloc(#size(ElnaLocation));
- x^.line := 5;
- x^.column := cast(3: Word)
+ x.allocated := true
end;
begin
@@ -60,6 +58,8 @@ task :convert do
current_stage << <<~FUN
var
FUN
+ elsif line.end_with?("allocated: Word\n")
+ current_stage << "\t\tallocated: Bool\n"
else
current_stage << line
end