&-/: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
the scratch interpriter doesn't seem to exist |
|||
Line 13: | Line 13: | ||
&-printv: prints a variable's value. |
&-printv: prints a variable's value. |
||
==Implementation== |
|||
Python (unfinished) |
|||
def ads(program): |
|||
a=program.split("\n") |
|||
while len(a)>0: |
|||
b=a[0] |
|||
print(b) |
|||
if b=="&-hlwr":print("Hello World!") |
|||
if b=="&-halt":break |
|||
if b[0:8]=="&-print ":print(b[8:len(b)]) |
|||
a.pop(0) |
|||
ads("""""") |
|||
[[Category:2023]] [[Category:Languages]] [[Category:Output only]] [[Category:Total]] [[Category:Unusable for programming]] [[Category:Unimplemented]] |
[[Category:2023]] [[Category:Languages]] [[Category:Output only]] [[Category:Total]] [[Category:Unusable for programming]] [[Category:Unimplemented]] |
Revision as of 10:43, 17 November 2024
- This article is not detailed enough and needs to be expanded. Please help us by adding some more information.
&-/ is an esolang made by emelchenko.
Commands
&-hlwr: prints "Hello World!".
&-halt: ends the program.
&-print: prints a string.
&-variable: declares a variable.
&-printv: prints a variable's value.
Implementation
Python (unfinished)
def ads(program): a=program.split("\n") while len(a)>0: b=a[0] print(b) if b=="&-hlwr":print("Hello World!") if b=="&-halt":break if b[0:8]=="&-print ":print(b[8:len(b)]) a.pop(0) ads("""""")