summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2026-02-22 00:11:41 +0100
committerEugen Wissner <belka@caraus.de>2026-02-22 00:11:41 +0100
commitb987dd741a738c5e9947f4cc4fc85cfb480db201 (patch)
tree267d08607ef381ee75e4625a3162b60174ed210b /Rakefile
parent8142680fb7d8e91061a8aa6bf25150c0a890d865 (diff)
downloadelna-b987dd741a738c5e9947f4cc4fc85cfb480db201.tar.gz
Use operand record in TAC expression visitor
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile19
1 files changed, 14 insertions, 5 deletions
diff --git a/Rakefile b/Rakefile
index 69a36c6..111ae86 100644
--- a/Rakefile
+++ b/Rakefile
@@ -38,11 +38,20 @@ desc 'Convert previous stage language into the current stage language'
task :convert do
File.open('boot/stage20/cl.elna', 'w') do |current_stage|
File.readlines('boot/stage19/cl.elna').each do |line|
- if line.include? "_assign_at(@classification, 1, ElnaLexerClass.eof)"
- current_stage << "\tclassification[1] := ElnaLexerClass.eof;\n"
- else
- current_stage << line
- end
+ current_stage << line
end
+ current_stage << <<~FUN
+
+ proc f(m: ElnaInstructionModule);
+ begin
+ end;
+
+ proc g();
+ var
+ x: ElnaInstructionModule;
+ begin
+ f(x)
+ end;
+ FUN
end
end