diff options
Diffstat (limited to 'main.rs')
-rw-r--r-- | main.rs | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -0,0 +1,9 @@ +extern mod lua; + +fn main() { + let state = lua::newstate(); + lua::openlibs(state); + lua::loadstring(state, os::args()[1]); + lua::call(state, 0, 0); + lua::close(state); +} |