A toy dynamic programming language written in Ruby
選択できるのは25トピックまでです。
トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
123456789101112131415 |
- class AST::Number
- attr_reader :value
-
- def initialize(value)
- @value = value
- end
-
- def ==(other)
- other.is_a?(AST::Number) && other.value == @value
- end
-
- def execute(env)
- @value
- end
- end
|