aboutsummaryrefslogtreecommitdiff
path: root/src/luax
diff options
context:
space:
mode:
authorStanisław Zagórowski <hasohasacz@gmail.com>2024-01-11 17:04:12 +0100
committerStanisław Zagórowski <hasohasacz@gmail.com>2024-01-11 17:04:12 +0100
commit0de7d2f2cc1856d01e810c76058d3c5f685a24af (patch)
tree99ec50ef588a1c4c8e5ec4257ee5b7ef139019cb /src/luax
parentf45abfdf2150d8136e3da48e1daba5473030c0be (diff)
status codes
Diffstat (limited to 'src/luax')
-rw-r--r--src/luax/mod.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/luax/mod.rs b/src/luax/mod.rs
index 2e6fe27..2bcc13d 100644
--- a/src/luax/mod.rs
+++ b/src/luax/mod.rs
@@ -1,3 +1,5 @@
+use rlua::Lua;
+
use crate::{error::LuaXError, Result};
mod lexer;
@@ -97,3 +99,9 @@ pub fn preprocess_dir(path: &std::path::Path) -> Result<usize> {
Ok(preprocessed)
}
+
+pub fn prepare_lua() -> Result<Lua> {
+ let lua = Lua::new();
+
+ Ok(lua)
+}