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.
1234567891011121314151617 |
- module Chervil::AST
- class Number
- attr_reader :value
-
- def initialize(value)
- @value = value
- end
-
- def evaluate(env)
- @value
- end
-
- def ==(other)
- @value == other.value
- end
- end
- end
|