From 4c6caa7114772f2a7ebbe666e63c3ff82d0dffe6 Mon Sep 17 00:00:00 2001 From: Thomas von Dein Date: Mon, 4 Dec 2023 18:03:58 +0100 Subject: [PATCH] fix pod formatting (fixes #24) --- rpn.go | 30 ++++++++++++++++++++---------- rpn.pod | 3 +++ 2 files changed, 23 insertions(+), 10 deletions(-) diff --git a/rpn.go b/rpn.go index 89bebf6..a15c83f 100644 --- a/rpn.go +++ b/rpn.go @@ -178,18 +178,28 @@ DESCRIPTION [no]debug toggle debug output (nodebug turns it off) [no]showstack show the last 5 items of the stack (noshowtack turns it off) - Show commands: dump display the stack contents hex show last stack item - in hex form (converted to int) history display calculation history vars - show list of variables + Show commands: - Stack manipulation commands: clear clear the whole stack shift remove - the last element of the stack reverse reverse the stack elements swap - exchange the last two stack elements dup duplicate last stack item undo - undo last operation edit edit the stack interactively using vi or - $EDITOR + dump display the stack contents + hex show last stack item in hex form (converted to int) + history display calculation history + vars show list of variables - Other commands: help|? show this message manual show manual - quit|exit|c-d|c-c exit program + Stack manipulation commands: + + clear clear the whole stack + shift remove the last element of the stack + reverse reverse the stack elements + swap exchange the last two stack elements + dup duplicate last stack item + undo undo last operation + edit edit the stack interactively using vi or $EDITOR + + Other commands: + + help|? show this message + manual show manual + quit|exit|c-d|c-c exit program Register variables: diff --git a/rpn.pod b/rpn.pod index 529a107..e53adb0 100644 --- a/rpn.pod +++ b/rpn.pod @@ -186,12 +186,14 @@ Configuration Commands: [no]showstack show the last 5 items of the stack (noshowtack turns it off) Show commands: + dump display the stack contents hex show last stack item in hex form (converted to int) history display calculation history vars show list of variables Stack manipulation commands: + clear clear the whole stack shift remove the last element of the stack reverse reverse the stack elements @@ -201,6 +203,7 @@ Stack manipulation commands: edit edit the stack interactively using vi or $EDITOR Other commands: + help|? show this message manual show manual quit|exit|c-d|c-c exit program