rpl.rb/lib/rpl/core/program.rb
Gwenhael Le Moine 8b07724e50
make it a gem
2022-02-15 17:06:19 +01:00

20 lines
487 B
Ruby

# frozen_string_literal: true
module RplLang
module Core
module Program
def populate_dictionary
super
@dictionary.add_word( ['eval'],
'Program',
'( a -- … ) interpret',
proc do
args = stack_extract( [:any] )
run( args[0][:value].to_s )
end )
end
end
end
end