Can now be imported as module.
This commit is contained in:
parent
8f8a0c8992
commit
ecf31948b6
|
@ -1,9 +1,8 @@
|
|||
|
||||
local lexer = require 'lua_lang'
|
||||
local lexer = assert(require((... and select('1', ...):match('.+%.') or '')..'lua_lang'), '[assert-gooder]: Could not load vital library: lua_lang')
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
|
||||
local function get_value_of_string (string_str)
|
||||
if string_str:sub(1, 1) == '"' or string_str:sub(1, 1) == '\'' then
|
||||
return string_str:sub(2, -2)
|
||||
|
|
2
init.lua
Normal file
2
init.lua
Normal file
|
@ -0,0 +1,2 @@
|
|||
|
||||
return assert(require((... and select('1', ...):match('.+%.') or '')..'assert-gooder'), '[assert-gooder]: Could not load vital library: assert-gooder')
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
local Lexer = require 'Lexer'
|
||||
local Lexer = assert(require((... and select('1', ...):match('.+%.') or '')..'Lexer'), '[assert-gooder]: Could not load vital library: Lexer')
|
||||
|
||||
return Lexer {
|
||||
{ 'and', 'AND' },
|
||||
|
|
Loading…
Reference in New Issue
Block a user