Skip to content
/ dust Public

An experimental interpreted language

Notifications You must be signed in to change notification settings

uben0/dust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DUST language interpreter

The DUST language is only a experimental laguage to train at creation of compileur. It does not have any specification, or a well defined grammar.

The repository contains an interpreter, and can run the following code:

fn fib n := cond {
    n == 0 then 0;
    n == 1 then 1;
    true then fib (n - 1) + fib (n - 2);
};

i := 0;
while i < 10 then {
    print (fib i);
    i = i + 1;
};

Which will print the 10 first elements of the fibonacci sequence.

About

An experimental interpreted language

Topics

Resources

Stars

Watchers

Forks

Languages