From b987dd741a738c5e9947f4cc4fc85cfb480db201 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Sun, 22 Feb 2026 00:11:41 +0100 Subject: Use operand record in TAC expression visitor --- Rakefile | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'Rakefile') 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 -- cgit v1.2.3