Skip to content

Commit

Permalink
README: Clarify conversion string table note
Browse files Browse the repository at this point in the history
  • Loading branch information
underyx authored Dec 28, 2020
1 parent 82d0215 commit 4fd7d69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ There are two instructions that manipulate String values:
* `?` : pushes an empty string
* `!` : appends a lowest byte of the top of the stack to a string at the second top of the stack

Every time an empty string is pushed, the conversion table between instructions and its ASCII representations changes. Above six instructions `B`, `u`, `b`, `a`, `?`, and `!`, are changed to `S`, `h`, `a`, `k`, `$`, and `-`, respectively.
Pushing an empty string again restores the state of the conversion table.
Every time an empty string is pushed, the ASCII characters used for stack manipulation are updated. The above six instructions `B`, `u`, `b`, `a`, `?`, and `!`, are changed to `S`, `h`, `a`, `k`, `$`, and `-`, respectively.
Pushing an empty string again resets to the orignal characters.

```
$ echo '?SShaakShaaaakShaaaaakShaaaaaak-SShkShaaaaakShaaaaaak-SShkShakShaaakShaaaaakShaaaaaak-SShkShakShaakShaaakShaaaaakShaaaaaak-' | watson decode -t json
Expand Down

0 comments on commit 4fd7d69

Please sign in to comment.