[ prog / sol / mona ]

prog


The Art of Code

5 2020-06-09 09:24

polyquine.c.rb.pl.py (prints its own source code in C, Ruby, Perl, Python)

 #include/*
s='''*/<stdio.h>
main(){char*_;/*==;sub _:lvalue{$_}<<s;#';<<s#'''
def printf(a,*b):import sys;sys.stdout.write(a%b),
s
#*/
_=" #include/*%cs='''*/<stdio.h>%cmain(){char*_;/*==;sub _:lvalue{%c_}<<s;#';<<s#'''%cdef printf(a,*b):import sys;sys.stdout.write(a%%b),%cs%c#*/%c_=%c%s%c;printf(_,10,10,36,10,10,10,10,34,_,34,10,10,10,10);%c#/*%cs='''*/%c}//'''#==%c";printf(_,10,10,36,10,10,10,10,34,_,34,10,10,10,10);
#/*
s='''*/
}//'''#==

small JavaScript quine

$=_=>`$=${$};$()`;$()

quine relay
https://github.com/mame/quine-relay
This is a Ruby program that generates Rust program that generates Scala program that generates ...(through 128 languages in total)... REXX program that generates the original Ruby code again.

8


VIP:

do not edit these