Skip to content
/ ember Public

A dynamically typed, interpreted programming language.

License

Notifications You must be signed in to change notification settings

vasiltop/ember

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ember

Ember is a simple interpreted programming language that follows the fundamental syntax of many popular programming languages.

Test Status

Installation

git clone https://github.com/vasiltop/ember
cd ember
cargo build --release

Usage

ember <PATH>

Examples

Code examples can be found in the examples directory.

Variables

let name = "Ember";

Control Flow

if x == 1 && true {
    x = 4;
} else {
    x = 7;
}

for (let i = 0; i < 10; i = i + 1;) {
    print! i;
}

let i = 0;
while i < 10 {
    i = i + 1;
}

Functions

fn add(a, b) {
    return a + b;
}

let added = add(4, 2);