Chervil is a toy Lisp interpreter written in Ruby
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910
  1. module Chervil
  2. module Core
  3. CORE = {
  4. "+" => Proc.new { |args| args.inject(:+) },
  5. "-" => Proc.new { |args| args.inject(:-) },
  6. "*" => Proc.new { |args| args.inject(:*) },
  7. "/" => Proc.new { |args| args.inject(:/) },
  8. }
  9. end
  10. end