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.
123456789101112131415161718192021 |
- module Chervil::AST
- class Quotation
- attr_reader :value
-
- def initialize(value)
- @value = value
- end
-
- def evaluate(env)
- if @value.is_a?(List)
- @value.elements
- else
- @value
- end
- end
-
- def ==(other)
- @value == other.value
- end
- end
- end
|