From 1ed1d1c8428d569bcdc4062ba5786fa1dc6b7f2c Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Wed, 31 Jul 2019 15:28:23 -0700 Subject: 5499 --- 003trace.cc | 2 +- apps/Readme.md | 4 ++-- apps/assort.subx | 2 +- apps/crenshaw2-1.subx | 2 +- apps/crenshaw2-1b.subx | 2 +- apps/dquotes.subx | 2 +- apps/factorial.subx | 2 +- apps/handle.subx | 2 +- apps/hex.subx | 2 +- apps/pack.subx | 2 +- apps/survey.subx | 2 +- html/apps/assort.subx.html | 2 +- html/apps/crenshaw2-1.subx.html | 2 +- html/apps/crenshaw2-1b.subx.html | 2 +- html/apps/dquotes.subx.html | 2 +- html/apps/factorial.subx.html | 2 +- html/apps/handle.subx.html | 2 +- html/apps/hex.subx.html | 2 +- html/apps/pack.subx.html | 2 +- html/apps/survey.subx.html | 2 +- vimrc.vim | 1 - 21 files changed, 21 insertions(+), 22 deletions(-) diff --git a/003trace.cc b/003trace.cc index 379077a9..fb2397c2 100644 --- a/003trace.cc +++ b/003trace.cc @@ -64,7 +64,7 @@ //: //: "Programming properly should be regarded as an activity by which //: programmers form a mental model, rather than as production of a program." -//: -- Peter Naur (http://alistair.cockburn.us/ASD+book+extract%3A+%22Naur,+Ehn,+Musashi%22) +//: -- Peter Naur (http://akkartik.name/naur.pdf) //:: == Core data structures diff --git a/apps/Readme.md b/apps/Readme.md index b76c5a8b..1861d949 100644 --- a/apps/Readme.md +++ b/apps/Readme.md @@ -1,2 +1,2 @@ -Larger programs than in the subx/examples/ subdirectory, combining the -techniques demonstrated there. +Larger programs than in the examples/ subdirectory, combining the techniques +demonstrated there. diff --git a/apps/assort.subx b/apps/assort.subx index 801e52d0..917dfb5c 100644 --- a/apps/assort.subx +++ b/apps/assort.subx @@ -6,7 +6,7 @@ # Drop lines that are all comments. They could get misleading after assortment # because we don't know if they refer to the line above or the line below. # -# To run (from the subx/ directory): +# To run: # $ ./subx translate *.subx apps/assort.subx -o apps/assort # $ cat x # == code diff --git a/apps/crenshaw2-1.subx b/apps/crenshaw2-1.subx index 0c3f180b..079ffb26 100644 --- a/apps/crenshaw2-1.subx +++ b/apps/crenshaw2-1.subx @@ -2,7 +2,7 @@ # which corresponds to the section "single digits" in https://compilers.iecc.com/crenshaw/tutor2.txt # except that we support hex digits. # -# To run (from the subx/ directory): +# To run: # $ ./subx translate *.subx apps/crenshaw2-1.subx -o apps/crenshaw2-1 # $ echo '3' |./subx run apps/crenshaw2-1 # Expected output: diff --git a/apps/crenshaw2-1b.subx b/apps/crenshaw2-1b.subx index e1bb6448..064af459 100644 --- a/apps/crenshaw2-1b.subx +++ b/apps/crenshaw2-1b.subx @@ -2,7 +2,7 @@ # which corresponds to the section "single digits" in https://compilers.iecc.com/crenshaw/tutor2.txt # except that we support hex numbers of multiple digits. # -# To run (from the subx/ directory): +# To run: # $ ./subx translate *.subx apps/crenshaw2-1b.subx -o apps/crenshaw2-1b # $ echo '1a' |./subx run apps/crenshaw2-1b # Expected output: diff --git a/apps/dquotes.subx b/apps/dquotes.subx index 6848ad19..d9ed1f05 100644 --- a/apps/dquotes.subx +++ b/apps/dquotes.subx @@ -1,7 +1,7 @@ # Translate literal strings within double quotes. # Replace them with references to new variables in the data segment. # -# To run (from the subx/ directory): +# To run: # $ ./subx translate *.subx apps/dquotes.subx -o apps/dquotes # $ cat x # == code diff --git a/apps/factorial.subx b/apps/factorial.subx index e4b7a057..f28a3657 100644 --- a/apps/factorial.subx +++ b/apps/factorial.subx @@ -1,6 +1,6 @@ ## compute the factorial of 5, and return the result in the exit code # -# To run (from the subx directory): +# To run: # $ ./subx translate apps/factorial.subx -o apps/factorial # $ ./subx run apps/factorial # Expected result: diff --git a/apps/handle.subx b/apps/handle.subx index ba824f85..95364821 100644 --- a/apps/handle.subx +++ b/apps/handle.subx @@ -12,7 +12,7 @@ # offset 0: alloc id # offset 4: address # -# To run (from the subx directory): +# To run: # $ ./subx translate *.subx apps/handle.subx -o apps/handle # $ ./subx run apps/handle # Expected result is a successful lookup followed by a hard abort: diff --git a/apps/hex.subx b/apps/hex.subx index a24c5a2e..02f29b5e 100644 --- a/apps/hex.subx +++ b/apps/hex.subx @@ -2,7 +2,7 @@ # from stdin, and convert them into binary bytes (octets) on stdout. Ignore # comments between '#' and newline. # -# To run (from the subx/ directory): +# To run: # $ ./subx translate *.subx apps/hex.subx -o apps/hex # $ echo '80 81 82 # comment' |./subx run apps/hex |xxd - # Expected output: diff --git a/apps/pack.subx b/apps/pack.subx index 61a837ba..9bd6a21a 100644 --- a/apps/pack.subx +++ b/apps/pack.subx @@ -2,7 +2,7 @@ # of whitespace-separated ascii hex bytes on stdout. Label definitions and # uses are left untouched. # -# To run (from the subx/ directory): +# To run: # $ ./subx translate *.subx apps/pack.subx -o apps/pack # $ echo '05/add-to-EAX 0x20/imm32' |./subx run apps/pack # Expected output: diff --git a/apps/survey.subx b/apps/survey.subx index 15957fa2..14f4eb55 100644 --- a/apps/survey.subx +++ b/apps/survey.subx @@ -4,7 +4,7 @@ # a) replace labels # b) add segment headers with addresses and offsets correctly filled in # -# To build (from the subx/ directory): +# To build: # $ ./subx translate *.subx apps/survey.subx -o apps/survey # # The expected input is a stream of bytes with segment headers, comments and diff --git a/html/apps/assort.subx.html b/html/apps/assort.subx.html index ac2ff46f..b5bbd6ed 100644 --- a/html/apps/assort.subx.html +++ b/html/apps/assort.subx.html @@ -68,7 +68,7 @@ if ('onhashchange' in window) { 6 # Drop lines that are all comments. They could get misleading after assortment 7 # because we don't know if they refer to the line above or the line below. 8 # - 9 # To run (from the subx/ directory): + 9 # To run: 10 # $ ./subx translate *.subx apps/assort.subx -o apps/assort 11 # $ cat x 12 # == code diff --git a/html/apps/crenshaw2-1.subx.html b/html/apps/crenshaw2-1.subx.html index bbc194a8..3e930538 100644 --- a/html/apps/crenshaw2-1.subx.html +++ b/html/apps/crenshaw2-1.subx.html @@ -64,7 +64,7 @@ if ('onhashchange' in window) { 2 # which corresponds to the section "single digits" in https://compilers.iecc.com/crenshaw/tutor2.txt 3 # except that we support hex digits. 4 # - 5 # To run (from the subx/ directory): + 5 # To run: 6 # $ ./subx translate *.subx apps/crenshaw2-1.subx -o apps/crenshaw2-1 7 # $ echo '3' |./subx run apps/crenshaw2-1 8 # Expected output: diff --git a/html/apps/crenshaw2-1b.subx.html b/html/apps/crenshaw2-1b.subx.html index 5a064ced..7bfd6cac 100644 --- a/html/apps/crenshaw2-1b.subx.html +++ b/html/apps/crenshaw2-1b.subx.html @@ -64,7 +64,7 @@ if ('onhashchange' in window) { 2 # which corresponds to the section "single digits" in https://compilers.iecc.com/crenshaw/tutor2.txt 3 # except that we support hex numbers of multiple digits. 4 # - 5 # To run (from the subx/ directory): + 5 # To run: 6 # $ ./subx translate *.subx apps/crenshaw2-1b.subx -o apps/crenshaw2-1b 7 # $ echo '1a' |./subx run apps/crenshaw2-1b 8 # Expected output: diff --git a/html/apps/dquotes.subx.html b/html/apps/dquotes.subx.html index b4a85d6e..417b324b 100644 --- a/html/apps/dquotes.subx.html +++ b/html/apps/dquotes.subx.html @@ -64,7 +64,7 @@ if ('onhashchange' in window) { 1 # Translate literal strings within double quotes. 2 # Replace them with references to new variables in the data segment. 3 # - 4 # To run (from the subx/ directory): + 4 # To run: 5 # $ ./subx translate *.subx apps/dquotes.subx -o apps/dquotes 6 # $ cat x 7 # == code diff --git a/html/apps/factorial.subx.html b/html/apps/factorial.subx.html index 2d014e58..eff79035 100644 --- a/html/apps/factorial.subx.html +++ b/html/apps/factorial.subx.html @@ -61,7 +61,7 @@ if ('onhashchange' in window) {
   1 ## compute the factorial of 5, and return the result in the exit code
   2 #
-  3 # To run (from the subx directory):
+  3 # To run:
   4 #   $ ./subx translate apps/factorial.subx -o apps/factorial
   5 #   $ ./subx run apps/factorial
   6 # Expected result:
diff --git a/html/apps/handle.subx.html b/html/apps/handle.subx.html
index c510087c..64a784c6 100644
--- a/html/apps/handle.subx.html
+++ b/html/apps/handle.subx.html
@@ -75,7 +75,7 @@ if ('onhashchange' in window) {
  12 #   offset 0: alloc id
  13 #   offset 4: address
  14 #
- 15 # To run (from the subx directory):
+ 15 # To run:
  16 #   $ ./subx translate *.subx apps/handle.subx -o apps/handle
  17 #   $ ./subx run apps/handle
  18 # Expected result is a successful lookup followed by a hard abort:
diff --git a/html/apps/hex.subx.html b/html/apps/hex.subx.html
index 37772e7d..2a0245ac 100644
--- a/html/apps/hex.subx.html
+++ b/html/apps/hex.subx.html
@@ -64,7 +64,7 @@ if ('onhashchange' in window) {
    2 # from stdin, and convert them into binary bytes (octets) on stdout. Ignore
    3 # comments between '#' and newline.
    4 #
-   5 # To run (from the subx/ directory):
+   5 # To run:
    6 #   $ ./subx translate *.subx apps/hex.subx -o apps/hex
    7 #   $ echo '80 81 82  # comment'  |./subx run apps/hex  |xxd -
    8 # Expected output:
diff --git a/html/apps/pack.subx.html b/html/apps/pack.subx.html
index 1b6eab45..0f49d205 100644
--- a/html/apps/pack.subx.html
+++ b/html/apps/pack.subx.html
@@ -64,7 +64,7 @@ if ('onhashchange' in window) {
    2 # of whitespace-separated ascii hex bytes on stdout. Label definitions and
    3 # uses are left untouched.
    4 #
-   5 # To run (from the subx/ directory):
+   5 # To run:
    6 #   $ ./subx translate *.subx apps/pack.subx -o apps/pack
    7 #   $ echo '05/add-to-EAX 0x20/imm32'  |./subx run apps/pack
    8 # Expected output:
diff --git a/html/apps/survey.subx.html b/html/apps/survey.subx.html
index 0ebd542a..de10a1e0 100644
--- a/html/apps/survey.subx.html
+++ b/html/apps/survey.subx.html
@@ -67,7 +67,7 @@ if ('onhashchange' in window) {
    4 #   a) replace labels
    5 #   b) add segment headers with addresses and offsets correctly filled in
    6 #
-   7 # To build (from the subx/ directory):
+   7 # To build:
    8 #   $ ./subx translate *.subx apps/survey.subx -o apps/survey
    9 #
   10 # The expected input is a stream of bytes with segment headers, comments and
diff --git a/vimrc.vim b/vimrc.vim
index 3f0cca8c..bf81ebd2 100644
--- a/vimrc.vim
+++ b/vimrc.vim
@@ -34,7 +34,6 @@ augroup END
 "   opening a second file in a new or existing window (shouldn't mess up existing highlighting)
 "   reloading an existing file (shouldn't mess up existing highlighting)
 
-" assumes CWD is subx/
 command! -nargs=1 E call EditSubx("edit", )
 if exists("&splitvertical")
   command! -nargs=1 S call EditSubx("vert split", )
-- 
cgit 1.4.1-2-gfad0