reduced rikiki again and again

This commit is contained in:
Mindiell 2023-09-18 21:18:14 +02:00
parent 2b25e92cad
commit be0fcf5dc3
2 changed files with 3 additions and 2 deletions

View File

@ -9,6 +9,7 @@ Fun fact: Rikiki source code is *three times smaller* than this readme file.
* First version : 532 bytes
* Second version : 507 bytes
* Third version : 477 bytes
* Fourth version : 469 bytes
# Usage

View File

@ -9,5 +9,5 @@ c=s[0] if s else o(p).read()
l[p]=[x[0] for x in r.findall(k,c)]
h=r.sub(k,v,c,r.M)
j.dump(l,o("b","w"))
print(f'\n\n<pre>{h}<form method=POST><textarea name=s>{c}</textarea><input type=submit>')
[n==p and print(r.sub(k,v,m)) for m in l for n in l[m]]
[n==p and print(r.sub(k,"\n\n"+v,m)) for m in l for n in l[m]]
print(f'<pre>{h}<form method=POST><input type=submit><textarea name=s>{c}')