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

string.rb 223B

1234567891011121314151617
  1. module Chervil::AST
  2. class String
  3. attr_reader :value
  4. def initialize(value)
  5. @value = value
  6. end
  7. def ==(other)
  8. @value == other.value
  9. end
  10. def evaluate(env)
  11. @value
  12. end
  13. end
  14. end