*python

From Esolang
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

Arguments:[arg1]|[arg2]|[arg3]
Variable creation::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:return func_name [h]|[i]
C's printf command... kinda:form[]
Halts program:#PQW (Command taken from 25 bytes o:)
Goto statement:Ln

Errors

If you try to do recursion:

Syntax not obeyed:Recursion cannot be returned

If the program doesn't end (A.K.A. EOF Error)

File end:EOF reached

Examples

Hello, world!

form[print[string[Hello, world\n]]];#PQW

Truth-machine

:i,form[input[]];
:check i is 0;
  [Yes?]|[form[0];#PQW]
  [No?]|[while 1[form[1]]

Cat program

:i,form[input[]];
form[print[i]]