diff options
author | Kartik Agaram <vc@akkartik.com> | 2021-11-09 09:23:31 -0800 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2021-11-09 09:23:31 -0800 |
commit | 3ff2fe607c2cb5690d201d3b83ddcc957e949b7a (patch) | |
tree | 2dd6019731bad313ecf0423d6063c9d0fa0bb77e /html/linux/apps/factorial4.subx.html | |
parent | ef8fd8851a883eefd7bd55ffc31d6e00f67d50a8 (diff) | |
download | mu-3ff2fe607c2cb5690d201d3b83ddcc957e949b7a.tar.gz |
.
Diffstat (limited to 'html/linux/apps/factorial4.subx.html')
-rw-r--r-- | html/linux/apps/factorial4.subx.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/html/linux/apps/factorial4.subx.html b/html/linux/apps/factorial4.subx.html index 879a7a44..223e3ee0 100644 --- a/html/linux/apps/factorial4.subx.html +++ b/html/linux/apps/factorial4.subx.html @@ -14,13 +14,13 @@ pre { white-space: pre-wrap; font-family: monospace; color: #000000; background- body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } +.SpecialChar { color: #d70000; } .subxComment { color: #005faf; } +.subxS1Comment { color: #0000af; } .LineNr { } +.subxTest { color: #5f8700; } .subxFunction { color: #af5f00; text-decoration: underline; } -.subxS1Comment { color: #0000af; } -.SpecialChar { color: #d70000; } .Constant { color: #008787; } -.subxTest { color: #5f8700; } --> </style> @@ -64,14 +64,14 @@ if ('onhashchange' in window) { <span id="L6" class="LineNr"> 6 </span><span class="subxComment"># control flow</span> <span id="L7" class="LineNr"> 7 </span><span class="subxComment">#</span> <span id="L8" class="LineNr"> 8 </span><span class="subxComment"># To run:</span> -<span id="L9" class="LineNr"> 9 </span><span class="subxComment"># $ ./translate_subx init.linux [01]*.subx apps/factorial4.subx -o factorial</span> -<span id="L10" class="LineNr">10 </span><span class="subxComment"># $ bootstrap/bootstrap run factorial</span> +<span id="L9" class="LineNr"> 9 </span><span class="subxComment"># $ ./translate_subx init.linux [01]*.subx apps/factorial4.subx</span> +<span id="L10" class="LineNr">10 </span><span class="subxComment"># $ ./a.elf</span> <span id="L11" class="LineNr">11 </span><span class="subxComment"># Expected result:</span> <span id="L12" class="LineNr">12 </span><span class="subxComment"># $ echo $?</span> <span id="L13" class="LineNr">13 </span><span class="subxComment"># 120</span> <span id="L14" class="LineNr">14 </span><span class="subxComment">#</span> <span id="L15" class="LineNr">15 </span><span class="subxComment"># You can also run the automated test suite:</span> -<span id="L16" class="LineNr">16 </span><span class="subxComment"># $ bootstrap/bootstrap run factorial test</span> +<span id="L16" class="LineNr">16 </span><span class="subxComment"># $ ./a.elf test</span> <span id="L17" class="LineNr">17 </span><span class="subxComment"># Expected output:</span> <span id="L18" class="LineNr">18 </span><span class="subxComment"># ........</span> <span id="L19" class="LineNr">19 </span><span class="subxComment"># Every '.' indicates a passing test. Failing tests get a 'F'.</span> |