about summary refs log tree commit diff stats
path: root/html/subx/examples
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-12-30 01:42:06 -0800
committerKartik Agaram <vc@akkartik.com>2018-12-30 01:42:06 -0800
commitebd355215059d07c5830a5aeb165376b7cb757e1 (patch)
treedbcc52a96224033b9f4053007f03c9fea5c95ccb /html/subx/examples
parent395b3ffbebb4656fdc5096887bc1ca7df5180da3 (diff)
downloadmu-ebd355215059d07c5830a5aeb165376b7cb757e1.tar.gz
4895
Diffstat (limited to 'html/subx/examples')
-rw-r--r--html/subx/examples/ex1.subx.html4
-rw-r--r--html/subx/examples/ex10.subx.html4
-rw-r--r--html/subx/examples/ex11.subx.html4
-rw-r--r--html/subx/examples/ex12.subx.html4
-rw-r--r--html/subx/examples/ex2.subx.html4
-rw-r--r--html/subx/examples/ex3.subx.html4
-rw-r--r--html/subx/examples/ex4.subx.html4
-rw-r--r--html/subx/examples/ex5.subx.html4
-rw-r--r--html/subx/examples/ex6.subx.html4
-rw-r--r--html/subx/examples/ex7.subx.html4
-rw-r--r--html/subx/examples/ex8.subx.html4
-rw-r--r--html/subx/examples/ex9.subx.html4
12 files changed, 24 insertions, 24 deletions
diff --git a/html/subx/examples/ex1.subx.html b/html/subx/examples/ex1.subx.html
index 4a3c685b..b4bb151b 100644
--- a/html/subx/examples/ex1.subx.html
+++ b/html/subx/examples/ex1.subx.html
@@ -56,8 +56,8 @@ if ('onhashchange' in window) {
 <span id="L2" class="LineNr"> 2 </span><span class="subxComment"># Just return 42.</span>
 <span id="L3" class="LineNr"> 3 </span><span class="subxComment">#</span>
 <span id="L4" class="LineNr"> 4 </span><span class="subxComment"># To run (from the subx directory):</span>
-<span id="L5" class="LineNr"> 5 </span><span class="subxComment">#   $ subx translate examples/ex1.2.subx -o examples/ex1</span>
-<span id="L6" class="LineNr"> 6 </span><span class="subxComment">#   $ subx run examples/ex1</span>
+<span id="L5" class="LineNr"> 5 </span><span class="subxComment">#   $ ./subx translate examples/ex1.2.subx -o examples/ex1</span>
+<span id="L6" class="LineNr"> 6 </span><span class="subxComment">#   $ ./subx run examples/ex1</span>
 <span id="L7" class="LineNr"> 7 </span><span class="subxComment"># Expected result:</span>
 <span id="L8" class="LineNr"> 8 </span><span class="subxComment">#   $ echo $?</span>
 <span id="L9" class="LineNr"> 9 </span><span class="subxComment">#   42</span>
diff --git a/html/subx/examples/ex10.subx.html b/html/subx/examples/ex10.subx.html
index 3b6ab07e..329f698d 100644
--- a/html/subx/examples/ex10.subx.html
+++ b/html/subx/examples/ex10.subx.html
@@ -59,8 +59,8 @@ if ('onhashchange' in window) {
 <span id="L1" class="LineNr"> 1 </span><span class="subxComment"># String comparison: return 1 iff the two args passed in at the commandline are equal.</span>
 <span id="L2" class="LineNr"> 2 </span><span class="subxComment">#</span>
 <span id="L3" class="LineNr"> 3 </span><span class="subxComment"># To run (from the subx directory):</span>
-<span id="L4" class="LineNr"> 4 </span><span class="subxComment">#   $ subx translate examples/ex10.subx -o examples/ex10</span>
-<span id="L5" class="LineNr"> 5 </span><span class="subxComment">#   $ subx run examples/ex10 abc abd</span>
+<span id="L4" class="LineNr"> 4 </span><span class="subxComment">#   $ ./subx translate examples/ex10.subx -o examples/ex10</span>
+<span id="L5" class="LineNr"> 5 </span><span class="subxComment">#   $ ./subx run examples/ex10 abc abd</span>
 <span id="L6" class="LineNr"> 6 </span><span class="subxComment"># Expected result:</span>
 <span id="L7" class="LineNr"> 7 </span><span class="subxComment">#   $ echo $?</span>
 <span id="L8" class="LineNr"> 8 </span><span class="subxComment">#   0  # false</span>
diff --git a/html/subx/examples/ex11.subx.html b/html/subx/examples/ex11.subx.html
index 5b7807aa..30b462f4 100644
--- a/html/subx/examples/ex11.subx.html
+++ b/html/subx/examples/ex11.subx.html
@@ -67,8 +67,8 @@ if ('onhashchange' in window) {
 <span id="L6" class="LineNr">  6 </span><span class="subxComment"># a null-terminated 'kernel string' with a length-prefixed 'SubX string'.</span>
 <span id="L7" class="LineNr">  7 </span><span class="subxComment">#</span>
 <span id="L8" class="LineNr">  8 </span><span class="subxComment"># To run (from the subx directory):</span>
-<span id="L9" class="LineNr">  9 </span><span class="subxComment">#   $ subx translate examples/ex11.subx -o examples/ex11</span>
-<span id="L10" class="LineNr"> 10 </span><span class="subxComment">#   $ subx run examples/ex11  # runs a series of tests</span>
+<span id="L9" class="LineNr">  9 </span><span class="subxComment">#   $ ./subx translate examples/ex11.subx -o examples/ex11</span>
+<span id="L10" class="LineNr"> 10 </span><span class="subxComment">#   $ ./subx run examples/ex11  # runs a series of tests</span>
 <span id="L11" class="LineNr"> 11 </span><span class="subxComment">#   ......  # all tests pass</span>
 <span id="L12" class="LineNr"> 12 </span><span class="subxComment">#</span>
 <span id="L13" class="LineNr"> 13 </span><span class="subxComment"># (We can't yet run the tests when given a &quot;test&quot; commandline argument,</span>
diff --git a/html/subx/examples/ex12.subx.html b/html/subx/examples/ex12.subx.html
index 60eb5b06..e6c1470a 100644
--- a/html/subx/examples/ex12.subx.html
+++ b/html/subx/examples/ex12.subx.html
@@ -59,8 +59,8 @@ if ('onhashchange' in window) {
 <span id="L2" class="LineNr"> 2 </span><span class="subxComment"># Create a new segment using mmap, save the address, write to it.</span>
 <span id="L3" class="LineNr"> 3 </span><span class="subxComment">#</span>
 <span id="L4" class="LineNr"> 4 </span><span class="subxComment"># To run (from the subx directory):</span>
-<span id="L5" class="LineNr"> 5 </span><span class="subxComment">#   $ subx translate examples/ex12.subx -o examples/ex12</span>
-<span id="L6" class="LineNr"> 6 </span><span class="subxComment">#   $ subx run examples/ex12</span>
+<span id="L5" class="LineNr"> 5 </span><span class="subxComment">#   $ ./subx translate examples/ex12.subx -o examples/ex12</span>
+<span id="L6" class="LineNr"> 6 </span><span class="subxComment">#   $ ./subx run examples/ex12</span>
 <span id="L7" class="LineNr"> 7 </span><span class="subxComment"># You shouldn't get a segmentation fault.</span>
 <span id="L8" class="LineNr"> 8 </span>
 <span id="L9" class="LineNr"> 9 </span>== code
diff --git a/html/subx/examples/ex2.subx.html b/html/subx/examples/ex2.subx.html
index 5a4eb9dd..a7c19e82 100644
--- a/html/subx/examples/ex2.subx.html
+++ b/html/subx/examples/ex2.subx.html
@@ -55,8 +55,8 @@ if ('onhashchange' in window) {
 <span id="L1" class="LineNr"> 1 </span><span class="subxComment"># Add 1 and 1, and return the result in the exit code.</span>
 <span id="L2" class="LineNr"> 2 </span><span class="subxComment">#</span>
 <span id="L3" class="LineNr"> 3 </span><span class="subxComment"># To run (from the subx directory):</span>
-<span id="L4" class="LineNr"> 4 </span><span class="subxComment">#   $ subx translate examples/ex2.subx -o examples/ex2</span>
-<span id="L5" class="LineNr"> 5 </span><span class="subxComment">#   $ subx run examples/ex2</span>
+<span id="L4" class="LineNr"> 4 </span><span class="subxComment">#   $ ./subx translate examples/ex2.subx -o examples/ex2</span>
+<span id="L5" class="LineNr"> 5 </span><span class="subxComment">#   $ ./subx run examples/ex2</span>
 <span id="L6" class="LineNr"> 6 </span><span class="subxComment"># Expected result:</span>
 <span id="L7" class="LineNr"> 7 </span><span class="subxComment">#   $ echo $?</span>
 <span id="L8" class="LineNr"> 8 </span><span class="subxComment">#   2</span>
diff --git a/html/subx/examples/ex3.subx.html b/html/subx/examples/ex3.subx.html
index 1d06a94d..655f9fbf 100644
--- a/html/subx/examples/ex3.subx.html
+++ b/html/subx/examples/ex3.subx.html
@@ -58,8 +58,8 @@ if ('onhashchange' in window) {
 <span id="L1" class="LineNr"> 1 </span><span class="subxComment"># Add the first 10 numbers, and return the result in the exit code.</span>
 <span id="L2" class="LineNr"> 2 </span><span class="subxComment">#</span>
 <span id="L3" class="LineNr"> 3 </span><span class="subxComment"># To run (from the subx directory):</span>
-<span id="L4" class="LineNr"> 4 </span><span class="subxComment">#   $ subx translate examples/ex3.subx -o examples/ex3</span>
-<span id="L5" class="LineNr"> 5 </span><span class="subxComment">#   $ subx run examples/ex3</span>
+<span id="L4" class="LineNr"> 4 </span><span class="subxComment">#   $ ./subx translate examples/ex3.subx -o examples/ex3</span>
+<span id="L5" class="LineNr"> 5 </span><span class="subxComment">#   $ ./subx run examples/ex3</span>
 <span id="L6" class="LineNr"> 6 </span><span class="subxComment"># Expected result:</span>
 <span id="L7" class="LineNr"> 7 </span><span class="subxComment">#   $ echo $?</span>
 <span id="L8" class="LineNr"> 8 </span><span class="subxComment">#   55</span>
diff --git a/html/subx/examples/ex4.subx.html b/html/subx/examples/ex4.subx.html
index d4cb221e..21d9c19d 100644
--- a/html/subx/examples/ex4.subx.html
+++ b/html/subx/examples/ex4.subx.html
@@ -57,8 +57,8 @@ if ('onhashchange' in window) {
 <span id="L1" class="LineNr"> 1 </span><span class="subxComment"># Read a character from stdin, save it to a global, write it to stdout.</span>
 <span id="L2" class="LineNr"> 2 </span><span class="subxComment">#</span>
 <span id="L3" class="LineNr"> 3 </span><span class="subxComment"># To run (from the subx directory):</span>
-<span id="L4" class="LineNr"> 4 </span><span class="subxComment">#   $ subx translate examples/ex4.subx -o examples/ex4</span>
-<span id="L5" class="LineNr"> 5 </span><span class="subxComment">#   $ subx run examples/ex4</span>
+<span id="L4" class="LineNr"> 4 </span><span class="subxComment">#   $ ./subx translate examples/ex4.subx -o examples/ex4</span>
+<span id="L5" class="LineNr"> 5 </span><span class="subxComment">#   $ ./subx run examples/ex4</span>
 <span id="L6" class="LineNr"> 6 </span>
 <span id="L7" class="LineNr"> 7 </span>== code
 <span id="L8" class="LineNr"> 8 </span>
diff --git a/html/subx/examples/ex5.subx.html b/html/subx/examples/ex5.subx.html
index 1b6a4db8..9dd1a45e 100644
--- a/html/subx/examples/ex5.subx.html
+++ b/html/subx/examples/ex5.subx.html
@@ -57,8 +57,8 @@ if ('onhashchange' in window) {
 <span id="L1" class="LineNr"> 1 </span><span class="subxComment"># Read a character from stdin, save it to a local on the stack, write it to stdout.</span>
 <span id="L2" class="LineNr"> 2 </span><span class="subxComment">#</span>
 <span id="L3" class="LineNr"> 3 </span><span class="subxComment"># To run (from the subx directory):</span>
-<span id="L4" class="LineNr"> 4 </span><span class="subxComment">#   $ subx translate examples/ex5.subx -o examples/ex5</span>
-<span id="L5" class="LineNr"> 5 </span><span class="subxComment">#   $ subx run examples/ex5</span>
+<span id="L4" class="LineNr"> 4 </span><span class="subxComment">#   $ ./subx translate examples/ex5.subx -o examples/ex5</span>
+<span id="L5" class="LineNr"> 5 </span><span class="subxComment">#   $ ./subx run examples/ex5</span>
 <span id="L6" class="LineNr"> 6 </span>
 <span id="L7" class="LineNr"> 7 </span>== code
 <span id="L8" class="LineNr"> 8 </span><span class="subxComment">#   instruction                     effective address                                                   register    displacement    immediate</span>
diff --git a/html/subx/examples/ex6.subx.html b/html/subx/examples/ex6.subx.html
index b6a36df8..e06a0885 100644
--- a/html/subx/examples/ex6.subx.html
+++ b/html/subx/examples/ex6.subx.html
@@ -58,8 +58,8 @@ if ('onhashchange' in window) {
 <span id="L1" class="LineNr"> 1 </span><span class="subxComment"># Print out a (global variable) string to stdout.</span>
 <span id="L2" class="LineNr"> 2 </span><span class="subxComment">#</span>
 <span id="L3" class="LineNr"> 3 </span><span class="subxComment"># To run (from the subx directory):</span>
-<span id="L4" class="LineNr"> 4 </span><span class="subxComment">#   $ subx translate examples/ex6.subx -o examples/ex6</span>
-<span id="L5" class="LineNr"> 5 </span><span class="subxComment">#   $ subx run examples/ex6</span>
+<span id="L4" class="LineNr"> 4 </span><span class="subxComment">#   $ ./subx translate examples/ex6.subx -o examples/ex6</span>
+<span id="L5" class="LineNr"> 5 </span><span class="subxComment">#   $ ./subx run examples/ex6</span>
 <span id="L6" class="LineNr"> 6 </span><span class="subxComment">#   Hello, world!</span>
 <span id="L7" class="LineNr"> 7 </span>
 <span id="L8" class="LineNr"> 8 </span>== code
diff --git a/html/subx/examples/ex7.subx.html b/html/subx/examples/ex7.subx.html
index 164701ab..942b9ab2 100644
--- a/html/subx/examples/ex7.subx.html
+++ b/html/subx/examples/ex7.subx.html
@@ -62,8 +62,8 @@ if ('onhashchange' in window) {
 <span id="L5" class="LineNr">  5 </span><span class="subxComment"># the character read.</span>
 <span id="L6" class="LineNr">  6 </span><span class="subxComment">#</span>
 <span id="L7" class="LineNr">  7 </span><span class="subxComment"># To run (from the subx directory):</span>
-<span id="L8" class="LineNr">  8 </span><span class="subxComment">#   $ subx translate examples/ex7.subx -o examples/ex7</span>
-<span id="L9" class="LineNr">  9 </span><span class="subxComment">#   $ subx run examples/ex7</span>
+<span id="L8" class="LineNr">  8 </span><span class="subxComment">#   $ ./subx translate examples/ex7.subx -o examples/ex7</span>
+<span id="L9" class="LineNr">  9 </span><span class="subxComment">#   $ ./subx run examples/ex7</span>
 <span id="L10" class="LineNr"> 10 </span><span class="subxComment"># Expected result:</span>
 <span id="L11" class="LineNr"> 11 </span><span class="subxComment">#   $ echo $?</span>
 <span id="L12" class="LineNr"> 12 </span><span class="subxComment">#   97</span>
diff --git a/html/subx/examples/ex8.subx.html b/html/subx/examples/ex8.subx.html
index 5990b476..cadea305 100644
--- a/html/subx/examples/ex8.subx.html
+++ b/html/subx/examples/ex8.subx.html
@@ -59,8 +59,8 @@ if ('onhashchange' in window) {
 <span id="L1" class="LineNr"> 1 </span><span class="subxComment"># Example reading commandline arguments: compute length of first arg.</span>
 <span id="L2" class="LineNr"> 2 </span><span class="subxComment">#</span>
 <span id="L3" class="LineNr"> 3 </span><span class="subxComment"># To run (from the subx directory):</span>
-<span id="L4" class="LineNr"> 4 </span><span class="subxComment">#   $ subx translate examples/ex8.subx -o examples/ex8</span>
-<span id="L5" class="LineNr"> 5 </span><span class="subxComment">#   $ subx run examples/ex8 abc de fghi</span>
+<span id="L4" class="LineNr"> 4 </span><span class="subxComment">#   $ ./subx translate examples/ex8.subx -o examples/ex8</span>
+<span id="L5" class="LineNr"> 5 </span><span class="subxComment">#   $ ./subx run examples/ex8 abc de fghi</span>
 <span id="L6" class="LineNr"> 6 </span><span class="subxComment"># Expected result:</span>
 <span id="L7" class="LineNr"> 7 </span><span class="subxComment">#   $ echo $?</span>
 <span id="L8" class="LineNr"> 8 </span><span class="subxComment">#   3  # length of 'abc'</span>
diff --git a/html/subx/examples/ex9.subx.html b/html/subx/examples/ex9.subx.html
index 1c654479..dfe0a8ba 100644
--- a/html/subx/examples/ex9.subx.html
+++ b/html/subx/examples/ex9.subx.html
@@ -61,8 +61,8 @@ if ('onhashchange' in window) {
 <span id="L4" class="LineNr"> 4 </span><span class="subxComment"># letter of second arg.</span>
 <span id="L5" class="LineNr"> 5 </span><span class="subxComment">#</span>
 <span id="L6" class="LineNr"> 6 </span><span class="subxComment"># To run (from the subx directory):</span>
-<span id="L7" class="LineNr"> 7 </span><span class="subxComment">#   $ subx translate examples/ex9.subx -o examples/ex9</span>
-<span id="L8" class="LineNr"> 8 </span><span class="subxComment">#   $ subx run examples/ex9 z x</span>
+<span id="L7" class="LineNr"> 7 </span><span class="subxComment">#   $ ./subx translate examples/ex9.subx -o examples/ex9</span>
+<span id="L8" class="LineNr"> 8 </span><span class="subxComment">#   $ ./subx run examples/ex9 z x</span>
 <span id="L9" class="LineNr"> 9 </span><span class="subxComment"># Expected result:</span>
 <span id="L10" class="LineNr">10 </span><span class="subxComment">#   $ echo $?</span>
 <span id="L11" class="LineNr">11 </span><span class="subxComment">#   2</span>