1
0

Can now be imported as module.

This commit is contained in:
Jon Michael Aanes 2017-11-04 13:45:28 +01:00
parent 8f8a0c8992
commit ecf31948b6
3 changed files with 4 additions and 3 deletions

View File

@ -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
View File

@ -0,0 +1,2 @@
return assert(require((... and select('1', ...):match('.+%.') or '')..'assert-gooder'), '[assert-gooder]: Could not load vital library: assert-gooder')

View File

@ -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' },