add __ppstack for debugging
This commit is contained in:
parent
3401f98eb9
commit
3a0d7217b3
2 changed files with 10 additions and 2 deletions
|
@ -26,6 +26,7 @@ module Rpl
|
|||
# @dictionary.add( 'version', proc { |stack, dictionary| Rpl::Lang::Core.__todo( stack, dictionary ) } ) # show rpn version
|
||||
# @dictionary.add( 'uname', proc { |stack, dictionary| Rpl::Lang::Core.__todo( stack, dictionary ) } ) # show rpn complete identification string
|
||||
# @dictionary.add( 'history', proc { |stack, dictionary| Rpl::Lang::Core.__todo( stack, dictionary ) } ) # see commands history
|
||||
@dictionary.add( '__ppstack', proc { |stack, dictionary| Rpl::Lang::Core.__pp_stack( stack, dictionary ) } )
|
||||
|
||||
# STACK
|
||||
@dictionary.add( 'swap', proc { |stack, dictionary| Rpl::Lang::Core.swap( stack, dictionary ) } )
|
||||
|
|
11
lib/core.rb
11
lib/core.rb
|
@ -47,9 +47,16 @@ module Rpl
|
|||
[stack, args]
|
||||
end
|
||||
|
||||
def __todo( stack, _dictionary )
|
||||
def __todo( stack, dictionary )
|
||||
puts '__NOT IMPLEMENTED__'
|
||||
stack
|
||||
|
||||
[stack, dictionary]
|
||||
end
|
||||
|
||||
def __pp_stack( stack, dictionary )
|
||||
pp stack
|
||||
|
||||
[stack, dictionary]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue