[TUHS] Software written in B

Sebastien F4GRX f4grx at f4grx.net
Thu Jun 15 18:33:53 AEST 2023


Hello again,

OK for the absence of escapes. It's not a big deal.

And thank you for the authorization. I will surely follow your progress.


There is a typo in your goto.b decompilation, an AND operator is missing 
before testing for end of string, here is a patch:


diff --git a/examples/squoze_goto.b b/examples/squoze_goto.b
index bb39e66..8d48bb3 100644
--- a/examples/squoze_goto.b
+++ b/examples/squoze_goto.b
@@ -31,7 +31,7 @@ l:
                 goto l;
                 }
         while ((ch=getchar())==' ');
-       while (ch!=' ' & ch!='*n' ch!='*0') {
+       while (ch!=' ' & ch!='*n' & ch!='*0') {
                 lchar(s, i++, ch);
                 ch = getchar();
         }


Sebastien

Le 15/06/2023 à 10:21, Angelo Papenhoff a écrit :
> On 15/06/23, Sebastien F4GRX wrote:
>> I see that su.b contains non-ascii characters ($11,$12,$13,$14) which
>> tripped my linux console when I attempted a copy paste, since $13 is
>> XOFF :) Is there a way to escape these characters? Or update them, since
>> it looks like a password provided on command line.
> The last1120 C compiler does not have an escape mechanism for strings,
> so it's highly unlikely the B compiler had it.
>
>> May I have your authorization for copying these files into my own b
>> compiler repository ( https://git.sr.ht/~f4grx/bpars )? What licence and
>> attribution info shall I indicate?
> Sure, sure. I reversed goto.b today and am currently working on if.b. So
> just keep an eye on the files.
>
> best,
> Angelo


More information about the TUHS mailing list