Switch completely to the table based lexer
This commit is contained in:
13
Rakefile
13
Rakefile
@@ -41,10 +41,17 @@ end
|
|||||||
|
|
||||||
desc 'Convert previous stage language into the current stage language'
|
desc 'Convert previous stage language into the current stage language'
|
||||||
task :convert do
|
task :convert do
|
||||||
File.open('boot/stage10.elna', 'w') do |current_stage|
|
File.open('boot/stage14.elna', 'w') do |current_stage|
|
||||||
File.readlines('boot/stage9.elna').each do |line|
|
previous_line = nil
|
||||||
current_stage << line
|
|
||||||
|
File.readlines('boot/stage13.elna').each do |line|
|
||||||
|
if !previous_line.nil? && previous_line.start_with?('begin') && line.strip.start_with?('return')
|
||||||
|
else
|
||||||
|
current_stage << previous_line unless previous_line.nil?
|
||||||
|
end
|
||||||
|
previous_line = line
|
||||||
end
|
end
|
||||||
|
current_stage << previous_line
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
1298
boot/stage14.elna
1298
boot/stage14.elna
File diff suppressed because it is too large
Load Diff
2970
boot/stage15.elna
Normal file
2970
boot/stage15.elna
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user