Skip to content

wzid/phi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

phi φ

A compiler written in C using LLVM

The name is inspired from Euler's totient function which is also called Euler's phi function.

Watch my devlogs on YouTube here!

syntax

func get_name(): string => "phi";

// it would be cool if I could remove the : int and just infer the return type
func add_five(a: int): int => a + 5;

func main() {
    string name = get_name();
    int result = add_five(5);
    print(name);
    print(result);
}

About

A compiler written in C using LLVM

Topics

Resources

Stars

Watchers

Forks