From abc0029313669a254e7c37f34c80cf07b8207cff Mon Sep 17 00:00:00 2001 From: TSUYUSATO Kitsune Date: Mon, 23 Dec 2024 09:59:25 +0900 Subject: [PATCH] Quine in Erg --- README.md | 3 ++- quine.er | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 quine.er diff --git a/README.md b/README.md index 260bc27..8a541ca 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ I have three policies: Languages --- -Quine is implemented in 313 programming languages! +Quine is implemented in 314 programming languages!
List of Languages @@ -334,6 +334,7 @@ Quine is implemented in 313 programming languages! - [YSH](https://www.oilshell.org/release/latest/doc/ysh-tour.html) - [Nushell](https://www.nushell.sh) - [DuckScript](https://sagiegurari.github.io/duckscript/) + - [Erg](https://github.com/erg-lang/erg)
diff --git a/quine.er b/quine.er new file mode 100644 index 0000000..aea6a94 --- /dev/null +++ b/quine.er @@ -0,0 +1,3 @@ +s = """s = ""{0:c}{1}{0:c}"" +print! s.format(34, s)""" +print! s.format(34, s)