*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:#func>[[h]|[i]] or #func
C's printf command... kinda:form[]
Goto statement:Ln

Errors

If you try to run a non existent function:

Syntax not obeyed:funct doesn't exist

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

File end:EOF reached

Examples

Hello, world!

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

Truth-machine

:i,form[input[]];
:func o;
  form[number[1]];#o
:end;
:check i is 0;
  [Yes?]|[form[number[0]];#H]
  [No?]|[#o]

Cat program

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