Skip to content

feat: implement basic FFI & restructure project

Kane Petra requested to merge LOOP-73-FFI into main

Closes LOOP-73

Implements FFI in a very poor (but working) way.

Improvements:

  1. Currently no type checking, for that we would have to parse the function signatures from the function in the lib
  2. No support for header files
  3. No import as root

I will implement all these things, but to make sure that this is not bottle necking other things it will be merged.

Syntax:

import "std" as std

std.println("Hello, World!")

no file extension to make it platform independent

Edited by Wouter Pennings

Merge request reports