summaryrefslogtreecommitdiffstats
path: root/main.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2013-03-11 02:34:38 -0500
committerJesse Luehrs <doy@tozt.net>2013-03-11 02:34:38 -0500
commitbd93ba9d4419899694f16317d288125762dcaa33 (patch)
tree263578223520536a53fadcc23d1fe2e21d555d66 /main.rs
downloadrust-lua-bd93ba9d4419899694f16317d288125762dcaa33.tar.gz
rust-lua-bd93ba9d4419899694f16317d288125762dcaa33.zip
initial commit
Diffstat (limited to 'main.rs')
-rw-r--r--main.rs9
1 files changed, 9 insertions, 0 deletions
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);
+}