Skip to content

Instantly share code, notes, and snippets.

@nddrylliog
Created October 8, 2012 16:52
Show Gist options
  • Save nddrylliog/3853558 to your computer and use it in GitHub Desktop.
Save nddrylliog/3853558 to your computer and use it in GitHub Desktop.
An ooc quine
q := 34 as Char
l := [
"q := 34 as Char"
"l := ["
"]"
"for (i in 0..2) {"
" l[i] println()"
"}"
"for (i in 0..12) {"
" q print(); l[i] print(); q println()"
"}"
"for (i in 2..12) {"
" l[i] println()"
"}"
]
for (i in 0..2) {
l[i] println()
}
for (i in 0..12) {
q print(); l[i] print(); q println()
}
for (i in 2..12) {
l[i] println()
}
q := "q := %c%s%c%cq printfln(34, q, 34, 10)"
q printfln(34, q, 34, 10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment