Allow program module body
This commit is contained in:
30
Rakefile
30
Rakefile
@@ -36,22 +36,22 @@ end
|
||||
|
||||
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|
|
||||
File.open('boot/stage21/cl.elna', 'w') do |current_stage|
|
||||
File.readlines('boot/stage20/cl.elna').each do |line|
|
||||
current_stage << line
|
||||
end
|
||||
current_stage << <<~FUN
|
||||
|
||||
proc f(m: ElnaInstructionModule);
|
||||
begin
|
||||
end;
|
||||
|
||||
proc g();
|
||||
var
|
||||
x: ElnaInstructionModule;
|
||||
begin
|
||||
f(x)
|
||||
end;
|
||||
FUN
|
||||
# current_stage << <<~FUN
|
||||
#
|
||||
# proc f(m: ElnaInstructionModule);
|
||||
# begin
|
||||
# end;
|
||||
#
|
||||
# proc g();
|
||||
# var
|
||||
# x: ElnaInstructionModule;
|
||||
# begin
|
||||
# f(x)
|
||||
# end;
|
||||
# FUN
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user