Rename Vool to Sol
Simple is really the descriptive name for the layer Sure, it is "virtual" but that is not as important as the fact that it is simple (or simplified) Also objct (based really) is better, since orientated implies it is a little like that, but only orientated, not really it. Sol only has objects, nothing else Just cause i was renaming anyway
This commit is contained in:
@ -1,9 +1,9 @@
|
||||
module Ruby
|
||||
module Normalizer
|
||||
# Normalize ruby to vool by "flattening" structure
|
||||
# Normalize ruby to sol by "flattening" structure
|
||||
#
|
||||
# This is a common issue for return, if and while , which all need to operate on the
|
||||
# last value. In ruby the last value is always implicit, in vool not.
|
||||
# last value. In ruby the last value is always implicit, in sol not.
|
||||
#
|
||||
# A "normalized" structure is first of all not recursive, a list not a tree,
|
||||
# The last expression of the list may be one of three things
|
||||
@ -13,11 +13,11 @@ module Ruby
|
||||
#
|
||||
# We return the last expression, the one that is returned or tested on, seperately
|
||||
#
|
||||
def normalized_vool( condition )
|
||||
vool_condition = condition.to_vool
|
||||
return vool_condition unless( vool_condition.is_a?(Vool::Statements) )
|
||||
return vool_condition.first if( vool_condition.single?)
|
||||
return [vool_condition.pop , vool_condition ]
|
||||
def normalized_sol( condition )
|
||||
sol_condition = condition.to_sol
|
||||
return sol_condition unless( sol_condition.is_a?(Sol::Statements) )
|
||||
return sol_condition.first if( sol_condition.single?)
|
||||
return [sol_condition.pop , sol_condition ]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user