module RubyLisp::Parser

Public Instance Methods

eval_ast(input, env) click to toggle source
# File lib/rubylisp/parser.rb, line 14
def eval_ast input, env
  Evaluator.eval_ast input, env
end
parse(input, env = Environment.new.stdlib) click to toggle source
# File lib/rubylisp/parser.rb, line 22
def parse input, env = Environment.new.stdlib
  ast = read input
  result = eval_ast ast, env
  print result
end
print(input) click to toggle source
read(input) click to toggle source
# File lib/rubylisp/parser.rb, line 10
def read input
  Reader.read_str input
end