文言Python
Jump to navigation
Jump to search
- This is still a work in progress. It may be changed in the future.
文言Python is an esolang by User:yoyolin0409. Its inspiration comes from Wenyan, but not exactly the same. I'll add the syxtax later, I think?
Example
Hello, world!
曰三詞之合:Hello,、空之、world!
Cat
問五詞之合:Type、空之、anything、空之、here.,得一詞a 曰一詞a
A+B
問五詞之合:Type、空之、first、空之、number.,得一數a 問五詞之合:Type、空之、second、空之、number.,得一數b 曰一數一式a增b
Quine
吾有一詞名x為吾有一詞名y為多詞之合:一詞吾有一詞名x為、一令真曰x、一詞非換之、換之、曰二詞之合:y、x 吾有一詞名y為多物之合:一詞吾有一詞名x為、一令真曰x、一詞換之 曰二詞之合:y、x
7 bottles of tommyaweosme
吾有一陣以i為元圍從七到一每次去一 曰七詞之合:d bottles of tommyaweosme on the wall、換之、d bottles of tommyaweosme、換之、ntake one down、換之、get +100 health,以元i為元d 曰九詞之合:one last bottle of tommyaweosme on the wall、換之、none final bottle of tommyaweosme、換之、walk away、換之、keep it up there、換之、let it ferment into greatness
Ackermann function
吾有一書位於櫃器鑑名網何使 網之 吾有一術名ack需二數M、N 若M為零則 召回一數一式N增一 又若N為零則 召回使術ack以一式M去一、一為二數之果 若無則 召回使術ack以一式M去一、召回使術ack以一式M去一、一為二數之果為二數之果 問五字之合:Type、空之、basic、空之、number.,得一數x 問五字之合:How、空之、many、空之、time?,得一數y 曰使術ack以x、y為二數之果