Skip to content
/ eiv Public

Implementation of a POC language where everything is a variable

License

Notifications You must be signed in to change notification settings

FinGu/eiv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eiv

Implementation of a POC language where everything is a variable

To compile and run, install rust and do: cargo run

With this, you'll have access to the basic cli of the interpreter.

To run individual files, you can just pass them as a parameter.

A few examples can be seen here

Syntax:

var_declaration = 5; // ; is optional
fn_declaration = (){
    //body
}
struct_declaration = {
    var = 5;
    method = (){
        //...
    }
}

Basic implemented types are numbers, bools, chars and arrays.

There are no 'strings', a "string" is simply syntax sugar for ['s','t','r','i','n','g']

The implementation of a string that i use internally is here

_type_, _add_, _eq_, _display_ are all methods that overload characteristics of the language

About

Implementation of a POC language where everything is a variable

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages