A toy dynamic programming language written in Ruby
Você não pode selecionar mais de 25 tópicos
Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
123456789101112131415 |
- class AST::String
- attr_reader :value
-
- def initialize(value)
- @value = value
- end
-
- def ==(other)
- other.is_a?(AST::String) && other.value == @value
- end
-
- def execute(env)
- @value
- end
- end
|