sharp 0.1.0

A modern, statically-typed programming language with Python-like syntax, compiled to native code via LLVM. Game engine ready!
1
2
3
4
5
6
7
8
9
10
11
12
13
; ModuleID = 'sharp_module'
source_filename = "sharp_module"

define i64 @compute() {
entry:
  ret i64 42
}

define i64 @main() {
entry:
  %calltmp = call i64 @compute()
  ret i64 %calltmp
}