summaryrefslogtreecommitdiff
path: root/llsVM.c
blob: 2102d608e973fa1c508d441adafdc91691f56471 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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;
}