src/rlisp.rb
##########################################
# Macros and precompilation
##########################################
# Expand macros until done, non-recursively
Macros and precompilation
Expand macros until done, non-recursively
Macros and precompilation Expand macros until done non - recursively
def macroexpand(expr)
    return expr unless expr.is_a?(Array) and expr != []
    return macroexpand(@macros[expr[0]].call(*expr[1..-1])) if @macros[expr[0]]
    return expr
  end
def macroexpand ( expr ) return expr unless expr . is_a? ( Array ) and expr != [ ] return macroexpand ( @macros [ expr [ 0 ] ] . call ( * expr [ 1 .. - 1 ] ) ) if @macros [ expr [ 0 ] ] return expr end
Macros and precompilation
Expand macros until done, non-recursively
Macros and precompilation Expand macros until done non - recursively
expr
<not_specific>