diff options
Diffstat (limited to 'llsVM.c')
-rw-r--r-- | llsVM.c | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -0,0 +1,17 @@ +#include "lls/lls.h" + +int l_print() +{ + + return 0; +} + +const char* source = "print(\"hello, world\")"; + +int main(int args, char* argv[]) +{ + lls_Context* C = lls_newcontext(); + lls_bindfunction(C, "print", l_print); + lls_executesource(C, source, strlen(source)); + return 0; +}
\ No newline at end of file |