[D66] computertaal strings

René Oudeweg roudeweg at gmail.com
Fri Mar 24 04:32:56 CET 2023


Ik heb een eerste zeer eenvoudige versie van de computertaal strings 
waar alles een string is en geen getallen (getallen zijn strings) 
voorkomen gereed:

[reinold at fedora strings]$ cat program.ss

65 = PvdA
66 = groenlinks
67 = D66
upper 65
upper 66
upper 67
cat 65 66
cat 65 67
print 65

[reinold at fedora strings]$ ./strings68 program.ss
PVDAGROENLINKSD66
[reinold at fedora strings]$ ./strings68
strings68 version 0.01 : usage strings68 program.ss
reinold at fedora strings]$ ldd strings68
     linux-vdso.so.1 (0x00007ffccad79000)
     libc.so.6 => /lib64/libc.so.6 (0x00007f881f498000)
     /lib64/ld-linux-x86-64.so.2 (0x00007f881f696000)

Het kan nog niet veel (concat en upper/lowercase, print), maar het is 
een begin...

Het is slechts een demonstratie dat getallen ook variabelen kunnen zijn 
in computertalen...


R.O.




On 1/15/23 18:38, René Oudeweg wrote:
>
> Nerds,
>
>
> Ik ga het eens proberen met pacc:
>
> https://paccrat.org/
>
>     a compiler compiler
>
> generereert van PEG grammar een packrat parser.
>
>
> Hopelijk een beta versie voor 1 April...
>
>
> R.O.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.tuxtown.net/pipermail/d66/attachments/20230324/a8babc45/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: strings68.gz
Type: application/gzip
Size: 130176 bytes
Desc: not available
URL: <http://www.tuxtown.net/pipermail/d66/attachments/20230324/a8babc45/attachment-0001.gz>


More information about the D66 mailing list