class SFRP::Raw::LetExp

Constants

Assignment

Public Instance Methods

convert() click to toggle source
# File lib/sfrp/raw/expression.rb, line 160
def convert
  raise if assignments.empty?
  assignments.reverse.reduce(exp) do |e, ass|
    MatchExp.new(ass.exp, [MatchExp::Case.new(ass.pattern, e)])
  end
end