Renaming Vool exppressions rightly

Class, Method and Lambda (was block) are expressions.
Just making things clearer, especially for the blocks (ahem, lambdas) is matters.
wip
This commit is contained in:
2019-08-19 11:33:12 +03:00
parent ae16551ed0
commit f87526f86f
44 changed files with 162 additions and 92 deletions

View File

@ -15,7 +15,7 @@ module Vool
false_label = Mom::Label.new( self , "false_label_#{object_id.to_s(16)}")
merge_label = Mom::Label.new( self , "merge_label_#{object_id.to_s(16)}")
check = Mom::TruthCheck.new(condition.slot_definition(compiler) , false_label)
check = Mom::TruthCheck.new(condition.to_slot(compiler) , false_label)
if @condition.is_a?(CallStatement)
head = @condition.to_mom(compiler)
head << check