Skip to content

An interpreter for my toy programming language lim lang.

Notifications You must be signed in to change notification settings

Exar04/lim-lang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

lim-lang

    int data1 = 3;
    pub int data2 = 4;
    int dataExp = 2 * 4 + 123;
    bool databool = true;
    float data = 3.14;
    string dataStr = "data";
    // dataStr = "newData";

    int []arr = [1,2,3]
    arr[2]


    if 5 < 10 {
        print("worked if");
    } else if data1 != data2 {
        print("worked else if data1 != data2 ")
    } else if data1 >= data2 {
        print("worked else if data1 >= data2 ")
    }else {
        print("worked else");
    }

    fn printNumber(int num){
        print("This is the number",num);
    }

    pub fn printNextNumber(int num){
        print("This is the next number",num + 1);
    }

    // int arrAdr = &arr;
    // print(arrAdr);
    // print(*arrAdr[0])

About

An interpreter for my toy programming language lim lang.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages