Skip to content

retrooper/turbolang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

turbolang

TurboLang is a compiled programming language. This is the implementation of the compiler for TurboLang. This compiler was written using C++ 17.

Sample Program written in TurboLang

import "io"
import "string"
import "time"
i32 main() {
    println("Hey, what is your name?");
    i8[1024] data;
    readLine(&data);
    i8* outputData = &data;
    printf("Welcome to my program, %s.\n", outputData);
    sleepms(2000);
    printf("How old are you %s?", outputData);
    i32 age;
    scanf("%i", &age);
    if (age < 13) {
        println("You are so young? Leave LOL\n");
    }
    elif (age > 35) {
        printf("You're a bit old XD. %i already??\n", age);
    }
    else {
        printf("You are %i? Thats fine..\n", age);
    }
    sleepms(2000);
    println("Alright, I've got to go!");
    return 0;
}

How to Build The Project

Dependencies:

  • CMake
  • llvm (Available in AUR package manager)
  • wclang (Available in AUR package manager)
  • osxcross (Available in AUR package manager)

About

This is a compiler for the TurboLang programming language.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages