Chervil is a toy Lisp interpreter written in Ruby
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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