AP
<mwette> nyacc has a routine `pretty-print-c99' that takes C AST in SXML and generates C code.
It is fairly mature. And you can use parse-c99 to generate SXML ASTs from C code.
Size: a a a
AP
<mwette> nyacc has a routine `pretty-print-c99' that takes C AST in SXML and generates C code.
It is fairly mature. And you can use parse-c99 to generate SXML ASTs from C code.
AP
AP
import random
syllables = ["ko", "ne", "fa", "re", "da", "ge", "ro", "su"]
def randw():
return "".join(random.choice(syllables) for i in range(random.randint(3,6)))
СЗ
AP
AP
import random
syllables = ["ка", "бы", "не", "бы", "ло", "зи", "мы", "го", "ро", "да"]
def randw():
return "".join(random.choice(syllables) for i in range(random.randint(3,6)))
for i in range(10):
print(randw())
$ python3 gen.py
гобыкароро
гобыро
каголобы
мыкамыка
лолобыда
быбыка
мызимынебы
гомынемыго
робыбыгода
каломыго
СЗ
AS
СЗ
СЗ
СЗ
СК
СЗ
СК
💭П
💭П