Chervil is a toy Lisp interpreter written in Ruby
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

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