A toy dynamic programming language written in Ruby
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

interpreter.rb 187B

123456789101112
  1. class Interpreter
  2. def initialize(tree, env = Environment.new)
  3. @tree = tree
  4. @env = env
  5. end
  6. def interpret
  7. @tree.each do |node|
  8. node.execute(@env)
  9. end
  10. end
  11. end