,()
Jump to navigation
Jump to search
,() (a.k.a out-parens-comma) is an esolang invented by User:None1. Its name is inspired by (,) (a.k.a in-parens-comma), but it has nothing to do with it.
Commands
| Command | Meaning |
|---|---|
| , | Input a number and store it in the accmulator |
| ( | If the accumulator is zero, output the accumulator once and halt, otherwise output the accumulator infinitely |
| ) | Output the program's source code and halt |
Examples programs
Truth Machine
,(
More elaborate:
,()
Quine
)
Interpret APLWSI
,
0 interpreter
(
Implementation
Python
code,x=input(),0
for i in code:
if i==',':
x=int(input())
if i=='(':
print(x)
if not x:
break
while x:
print(x)
if i==')':
print(code)
break