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.

function.rb 257B

123456789101112131415
  1. module Chervil::AST
  2. class Function
  3. attr_reader :params
  4. attr_reader :body
  5. def initialize(params, body)
  6. @params = params
  7. @body = body
  8. end
  9. def ==(other)
  10. @params == other.params && @body == other.body
  11. end
  12. end
  13. end