aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL/src/LuaSL_compile.c
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-01-05 01:22:19 +1000
committerDavid Walter Seikel2012-01-05 01:22:19 +1000
commit3f78664fde0d8208f34ed7c653a2d02da5d323ad (patch)
tree47c1b3e28f5d61ed8c2c90de952181da6f2a2fc0 /LuaSL/src/LuaSL_compile.c
parentMove the object files out of the source directory. (diff)
downloadSledjHamr-3f78664fde0d8208f34ed7c653a2d02da5d323ad.zip
SledjHamr-3f78664fde0d8208f34ed7c653a2d02da5d323ad.tar.gz
SledjHamr-3f78664fde0d8208f34ed7c653a2d02da5d323ad.tar.bz2
SledjHamr-3f78664fde0d8208f34ed7c653a2d02da5d323ad.tar.xz
Add a compiler stub.
Diffstat (limited to 'LuaSL/src/LuaSL_compile.c')
-rw-r--r--LuaSL/src/LuaSL_compile.c19
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
4Eina_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