Skip to content

guiferpa/aurora

Repository files navigation

aurora

🌌 Aurora's just for studying programming language concepts

⚠ Don't use it to develop something that'll go to production environment

Summary

Get started

Install CLI

$ npm i -g @guiferpa/aurora

Using REPL mode

$ aurora
>> var result = 1_000 * 2
=
>> result + 1
= 2001
>> print(result)
2000
=

Execute from file

Create aurora source code file

var result = 10 * 20
print(result + 1)

Execute file

$ aurora run ./<file>.ar

That's the output from evaluator

201
=

Writing some code

🎈 Unfortunately this project there's no contributor enough to turn this doc better but be my guest discovering how to write some code looking at examples folder.

Extra options

Debug flag

All commands support tree (AST) mode

$ aurora --tree $ aurora --tree run ...

Setting tree mode the CLI show up the AST (Abstract syntax tree) from source code