From bd93ba9d4419899694f16317d288125762dcaa33 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 11 Mar 2013 02:34:38 -0500 Subject: initial commit --- main.rs | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 main.rs (limited to 'main.rs') diff --git a/main.rs b/main.rs new file mode 100644 index 0000000..1e50e6f --- /dev/null +++ b/main.rs @@ -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); +} -- cgit v1.2.3-54-g00ecf