~tim/scheme-vm

45a5146dafc7bdfe783c8d7f99aa72911508adce — Tim Morgan 5 years ago 87a290d
Rename method to expand
2 files changed, 2 insertions(+), 3 deletions(-)

M compiler.rb
M compiler/macro.rb
M compiler.rb => compiler.rb +1 -1
@@ 190,7 190,7 @@ class Compiler
    if (method_name = macro[:native_transformer])
      send(method_name, sexp[1..-1], options)
    else
      sexp = Macro.new(macro, self).compile(sexp)
      sexp = Macro.new(macro, self).expand(sexp)
      compile_sexp(sexp, options)
    end
  end

M compiler/macro.rb => compiler/macro.rb +1 -2
@@ 9,8 9,7 @@ class Compiler
      @compiler = compiler
    end

    # TODO: rename to #expand
    def compile(sexp)
    def expand(sexp)
      (@values, @template) = match_template(sexp)
      sexp = expand_template(@template)
      sexp = mangle_macro_bindings(sexp)