lib/natalie/compiler/pass2.rb
# when using a REPL, variables are mistaken for method calls
when using a REPL, variables are mistaken for method calls
when using a REPL variables are mistaken for method calls
def process_send(exp)
        return process_sexp(exp) unless repl?
        (_, receiver, (_, name), *args) = exp
        return process_sexp(exp) unless receiver == :self && args.last == 'nullptr'
        if find_var(name.to_s)
          process_var_get(exp.new(:var_get, :env, s(:s, name)))
        else
          process_sexp(exp)
        end
      end
def process_send ( exp ) return process_sexp ( exp ) unless repl? ( _ , receiver , ( _ , name ) , * args ) = exp return process_sexp ( exp ) unless receiver == :self && args . last == 'nullptr' if find_var ( name . to_s ) process_var_get ( exp . new ( :var_get , :env , s ( :s , name ) ) ) else process_sexp ( exp ) end end
when using a REPL, variables are mistaken for method calls
when using a REPL variables are mistaken for method calls
exp
<not_specific>