Skip to content

Commit

Permalink
Quine in DuckScript
Browse files Browse the repository at this point in the history
  • Loading branch information
makenowjust committed Dec 22, 2024
1 parent 71d4e79 commit 733a936
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ I have three policies:
Languages
---

Quine is implemented in 312 programming languages!
Quine is implemented in 313 programming languages!

<details>
<summary>List of Languages</summary>
Expand Down Expand Up @@ -333,6 +333,7 @@ Quine is implemented in 312 programming languages!
- [NGS](https://ngs-lang.org)
- [YSH](https://www.oilshell.org/release/latest/doc/ysh-tour.html)
- [Nushell](https://www.nushell.sh)
- [DuckScript](https://sagiegurari.github.io/duckscript/)

</details>

Expand Down
6 changes: 6 additions & 0 deletions quine.ds
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
p = set "%"
s = set "cCA9IHNldCAiJSIKcyA9IHNldCAiJXMiCnEgPSBiYXNlNjQgLWRlY29kZSAke3N9CnEgPSBieXRlc190b19zdHJpbmcgJHtxfQpxID0gcmVwbGFjZSAke3F9ICR7cH1zICR7c30KcHJpbnQgJHtxfQo="
q = base64 -decode ${s}
q = bytes_to_string ${q}
q = replace ${q} ${p}s ${s}
print ${q}

0 comments on commit 733a936

Please sign in to comment.