Skip to content

An interpreted language that is simple, lightweight, and highly unstable, built in Rust.

Notifications You must be signed in to change notification settings

kelliherm/nalang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sodium

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 build

From there, use Cargo to run the language along with the name of a file to be run.

cargo run examples/hello.na

Getting Started

Sodium 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";

About

An interpreted language that is simple, lightweight, and highly unstable, built in Rust.

Resources

Stars

Watchers

Forks

Languages