Nekol
Jump to navigation
Jump to search
Nekol is a esolang created to be simple
Exist two types of commands, the commands and subcommands
The commands are used as commands, like in python
The subcommands are used in commands and are writen with ( and )
Codes are represented with { and }
His have this commands:
Command | Type | Description |
---|---|---|
in x replace y with z | Command | Set stack[last] to replace every y with z in x |
var x with y | Command | Create an variable x with value y (you can't redefine variables values with this command) |
del var x | Command | Delete variables x |
read x | Subcommand | Read Variable x |
set var x to y | Subcommand | Set variable x to y |
x + y | Subcommand | Addition |
x - y | Subcommand | Subtraction |
x * y | Subcommand | Multiplicationd |
x / y | Subcommand | Division |
switch/case | Command | This command are like any switch/case in programing lenguages |
input | Subcommand | Pick an input and return it |
random x y | Subcommand | random number from x to y |
task c | Command | Create a task and push it to task stack |
run n | Command | Run task[x] item of task stack and remove it |
repeat n c | Command | Repeat n times the code c |
push x | Command | Push x to stack |
pop | Subcommand | Pop stack |
forever c | Command | Run code c forever |
join chars | Subcommand | Join chars into a string |
out x | Command | Output x |
code c | Subcommand | Return code c |
unicode x | Subcommand | Return the ascii from a decimal |
as x | Subcommand | Return the equivalent ascii decimal of charter x |
round x | Subcommand | Round number x |
out Hello, World!
Cat:
out (input)
var x with (input) switch x { case 1 { forever { out 1 } } case 0 { out 0 } }
Interpreter:
here are the interpreter: Neko in snap!