Kite Programming Language

The Kite Compiler: part 3 of many

Written by Mooneer Salem on Saturday 29th of May, 2010 in General

Since the last post, Ive added binary operation support and the ability to have parameters in the method definition. As a result:

[Switching to process 68956]
Running…
Evaluates to: 42
; ModuleID = 'test_module'

%0 = type { void*, void* }
%1 = type { i32 }

define i32 @life_universe_everything(%0* %thd, i32 %param) {
entry:
  %0 = alloca %1*                                 ; <%1**> [#uses=1]
  store %1* null, %1** %0
  %1 = add i32 32, %param                         ; <i32> [#uses=1]
  ret i32 %1
}

Debugger stopped.
Program exited with status value:0.

More updates soon! :)

Add comment