rpl.rb/lib/core/program.rb
2022-02-11 15:46:47 +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