Sodium is a basic interpreted language, built to explore language development and systems programming. The language takes inspiration from Robert Nystrom's Crafting Interpreters and Thorsten Ball's Writing An Interpreter In Go. It's called Sodium because of its simple, lightweight, and highly unstable nature.
Warning
Sodium is in early stages of development and is not guaranteed to have working functionality.
In order to build the language from source, clone the repository to your local machine. Once there, use Cargo to build the langauge and its dependencies.
cargo buildFrom there, use Cargo to run the language along with the name of a file to be run.
cargo run examples/hello.naSodium is a very simple language to use. Once the language and its tools have been successfully built, follow the snippets below along with longer examples found in the examples directory to learn the language. Further docmentation describing all the features of the language can be found in the LANGUAGE.md file.
The most basic program in Sodium is a quick Hello World.
print("Hello, World!");
To create a variable, use the let keyword. To complete a statement, use a semicolon.
let x = 5;
let y = "dog";