From 6155f08b77bcf61b6aaf8d7795f198735931e4df Mon Sep 17 00:00:00 2001 From: Koichi Nakamura Date: Tue, 7 Dec 2021 02:21:20 +0900 Subject: [PATCH 1/2] Fix a bug of Hello World ... ! --- README.md | 2 +- bootstrap.fs | 2 +- example/helloworld.fs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 71d659d..ec392d5 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ The hello world program at the beginning looks like this. ``` $ ./planck -kHtketkltkltkotk tkWtkotkrtkltkdtk!tk:k0-tQ +kHtketkltkltkotk tkWtkotkrtkltkdtk!tk:k0-tk0k0Q ``` After bootstrapping by `bootstrap.fs`, it looks like this. diff --git a/bootstrap.fs b/bootstrap.fs index f9098ff..a50ebd5 100644 --- a/bootstrap.fs +++ b/bootstrap.fs @@ -66,7 +66,7 @@ l! \ The following line is an example program of planckforth \ which prints "Hello World!\n" \ -- -\ kHtketkltkltkotk tkWtkotkrtkltkdtk!tk:k0-tQ +\ kHtketkltkltkotk tkWtkotkrtkltkdtk!tk:k0-tk0k0Q \ -- \ This code repeats that 'k' reads a character and 't' prints it. \ Note that ':' (58) minus '0' (48) is '\n' (10). diff --git a/example/helloworld.fs b/example/helloworld.fs index 58fc254..13aed1a 100644 --- a/example/helloworld.fs +++ b/example/helloworld.fs @@ -1 +1 @@ -kHtketkltkltkotk tkWtkotkrtkltkdtk!tk:k0-tQ +kHtketkltkltkotk tkWtkotkrtkltkdtk!tk:k0-tk0k0-Q From 488a3a20c5b08650c01e6e2539c670e8d5a31107 Mon Sep 17 00:00:00 2001 From: Koichi Nakamura Date: Tue, 7 Dec 2021 02:24:30 +0900 Subject: [PATCH 2/2] previous commit still has a bug --- README.md | 2 +- bootstrap.fs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ec392d5..ef7ea34 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ The hello world program at the beginning looks like this. ``` $ ./planck -kHtketkltkltkotk tkWtkotkrtkltkdtk!tk:k0-tk0k0Q +kHtketkltkltkotk tkWtkotkrtkltkdtk!tk:k0-tk0k0-Q ``` After bootstrapping by `bootstrap.fs`, it looks like this. diff --git a/bootstrap.fs b/bootstrap.fs index a50ebd5..6537a27 100644 --- a/bootstrap.fs +++ b/bootstrap.fs @@ -66,7 +66,7 @@ l! \ The following line is an example program of planckforth \ which prints "Hello World!\n" \ -- -\ kHtketkltkltkotk tkWtkotkrtkltkdtk!tk:k0-tk0k0Q +\ kHtketkltkltkotk tkWtkotkrtkltkdtk!tk:k0-tk0k0-Q \ -- \ This code repeats that 'k' reads a character and 't' prints it. \ Note that ':' (58) minus '0' (48) is '\n' (10).