On Fri, May 16, 2008 at 5:36 PM, Erick Tryzelaar <[EMAIL PROTECTED]> wrote: > Yay! Almost got it to work! The only thing left is to figure out how > to handle external functions.
This seems like it's going to be a little more complicated. Consider the difference between: fun add: int * int -> int vs: fun foo: int * int -> int The first needs to compile to an instruction: add i32 $1, $2 whereas the second needs to declare the function: declare i32 @foo(i32, i32) and call it like this: call i32 @foo (i32 %x, i32 %y) Hmm. Maybe this would work: body foo = 'declare i32 @foo(i32, i32)'; fun foo: int * int -> int = "call i32 @foo(i32 %$1, i32 %$2)" requires foo; It's terribly ugly, but it might work for the first pass. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Felix-language mailing list Felix-language@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/felix-language