Last active
July 5, 2023 19:57
-
-
Save righ1113/ea06c98aa1464504cab6a392c7f83a66 to your computer and use it in GitHub Desktop.
Quine in Egison
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| E:\me\Egison\quine>egison quine.egi | |
| main args := let s := "main args := let s := Z in print (S.replace (pack [upperCase 'z']) (show s) s)" in print (S.replace (pack [upperCase 'z']) (show s) s) | |
| E:\me\Egison\quine>type quine.egi | |
| main args := let s := "main args := let s := Z in print (S.replace (pack [upperCase 'z']) (show s) s)" in print (S.replace (pack [upperCase 'z']) (show s) s) | |
| E:\me\Egison\quine>egison quine2.egi | |
| main args := | |
| print (S.append s (show s)) where | |
| s := "main args :=\n print (S.append s (show s)) where\n s := " | |
| E:\me\Egison\quine>type quine2.egi | |
| main args := | |
| print (S.append s (show s)) where | |
| s := "main args :=\n print (S.append s (show s)) where\n s := " | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment