- Compiled
- Native
- Stack-based
$ git clone https://github.com/rexionmars/snake.git
$ cd snake
docs/refs/
|
+-- Documentations and references
container/
|
+-- Standard scripts from translate code (temporary)
snake.py
|
+-- This file is the principal and contain base functions
Sanake has two modes of operation, the first mode to Simulate the program, and the second mode to Compile the program.
SNAKE without parameters returns the help menu
$ ./snake.py
simulate program
$ ./snake.py run <args>
or compile the program x86_64 Linux
$ ./snake.py compile <args>
this will generate an x86_64 Linux executable, in the tests folder
$ cd tests && ./output
A simple example using PUSH, PLUS, MINUS, DUMP
Use your favorite editor, i love neovim
$ nvim sun.snake
Example 1: sun two numbers
49 99 + .
Example 2: subtrac two numbers
13 9 - .
Example 3: if condition
17 1 + 18 = if
700 .
end