diff options
Diffstat (limited to 'LuaSL/src/LuaSL_compile.c')
-rw-r--r-- | LuaSL/src/LuaSL_compile.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/LuaSL/src/LuaSL_compile.c b/LuaSL/src/LuaSL_compile.c new file mode 100644 index 0000000..f4aa0c6 --- /dev/null +++ b/LuaSL/src/LuaSL_compile.c | |||
@@ -0,0 +1,19 @@ | |||
1 | #include "LuaSL.h" | ||
2 | |||
3 | |||
4 | Eina_Bool compileLSL(gameGlobals *game, char *script) | ||
5 | { | ||
6 | Eina_Bool result = EINA_FALSE; | ||
7 | |||
8 | // Parse the LSL script, validating it and reporting errors. | ||
9 | |||
10 | // Take the result of the parse, and convert it into Lua source. | ||
11 | // Each LSL script becomes a Lua state. | ||
12 | // LSL states are handled as Lua tables, with each LSL state function being a table function in a common metatable. | ||
13 | // LL and OS functions are likely to be C functions. | ||
14 | |||
15 | // Compile the Lua source by the Lua compiler. | ||
16 | |||
17 | return result; | ||
18 | } | ||
19 | |||