From 6a4f1a224273118a5429094ddd83420b7d69b28d Mon Sep 17 00:00:00 2001 From: chai Date: Fri, 1 Jun 2018 08:31:47 +0800 Subject: =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- llsVM.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'llsVM.c') diff --git a/llsVM.c b/llsVM.c index e69de29..2102d60 100644 --- a/llsVM.c +++ b/llsVM.c @@ -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 -- cgit v1.1-26-g67d0