*python
Jump to navigation
Jump to search
- This article is not detailed enough and needs to be expanded. Please help us by adding some more information.
*python (or it's python) is an esolang created by User:Ractangle where it's syntax is python but with major changes.
Syntax
List:[[arg1]|[arg2]|[arg3]]
Variable creation and edition::varname,varval;
Function definition:
:func func_name [arg1]|[arg2]; *Commands here :end;
Conditional:
:check a is 8; [Yes?]|[*Commands here] [No?]|[*Commands here]
Function call:#func>[[h]|[i]]
or #func
C's printf command... kinda:form[]
Goto statement:Ln
Also the program can be self-modified by using it as a variable like this
:L1,L2;
Examples
Hello, world!
form[print[string[Hello, world\n]]];#H
Truth-machine
:i,form[input[]]; *form[print[number[1]]] :L2,L2[1:]+";L2"; :check i is 0; [Yes?]|[form[number[0]];#H] [No?]|[L2] :end;
Cat program
:i,form[input[]]; form[print[i]];#H