Skip to content

Commit

Permalink
Merge pull request #4 from underyx/patch-1
Browse files Browse the repository at this point in the history
README: Clarify conversion table note
  • Loading branch information
genkami authored Dec 29, 2020
2 parents 9745c23 + 4fd7d69 commit b6f94b9
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 b6f94b9

Please sign in to comment.