/$$ /$$$$$$ /$$$$$$
| $$ /$$__ $$ /$$__ $$
| $$ | $$ \ $$| $$ \__/
| $$ | $$ | $$| $$ /$$$$
| $$ | $$ | $$| $$|_ $$
| $$ | $$ | $$| $$ \ $$
| $$$$$$$$| $$$$$$/| $$$$$$/
|________/ \______/ \______/
LANGUAGE OF GODS
log is a simple interpreted stack-based programming language written in elixir.
Here is the hello world program:
vpush 'all your codebase are belong to us.'
print
Adding:
vpush 9 10
add
print
You can run the example programs with
mix escript.build && ./log examples/helloworld.log
-
Parser supports the
print
command -
Parser supports
add
andsub
commands for addition and subtraction -
Parser can pop a variable number of arguments off a stack
-
Parser can pop arguments off a stack
-
Parser can push arguments onto a stack
-
Lexer can parse string literals
-
Lexer can parse source code into tokens.