rpl.rb/lib/core/program.rb
2022-02-10 14:33:09 +01:00

16 lines
289 B
Ruby

# frozen_string_literal: true
module Rpl
module Lang
module Core
module_function
# evaluate (run) a program, or recall a variable. ex: 'my_prog' eval
def eval
args = stack_extract( [:any] )
run( args[0][:value].to_s )
end
end
end
end