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])
-
Notifications
You must be signed in to change notification settings - Fork 0
Exar04/lim-lang
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
An interpreter for my toy programming language lim lang.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published