Skip to content

[###--] Lua Minimal utils (finaly no only minimal...)

Notifications You must be signed in to change notification settings

tst2005/lua-mini

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 

Repository files navigation

lua mini

Some minimal util for lua.

Mainly :

  • class system
  • forward compat for load function
  • some other minor functions

Some code comes from thirdparties :

Components

assertlevel.lua

It's an assert function that accept the error function's third argument.

assoc.lua

A way to get an uniq value (as key) from two or more object.

local a, b, c = {}, {}, {}

local t = {}
local key = assoc(a, b, c)
t[key] = "abc"

class/*.lua

class.lua

compat-env.lua

Provide a minimalist forward compatibility layer for the load function

proxy/ro2rw.lua

Generate a read/writable table proxy indexed from a readonly table.

(memoize.lua)

FILLME

(misc.lua)

FILLME

pattern.lua

FILLME

quote_magics.lua

A function to convert plaintext to lua pattern to be matched using any string.* matching function (find, match, gsub, ...)

proxy/shadowself.lua

Use to use an instance like a usual standalone function

tcopy.lua

FILLME

toboolean.lua

A simple function to convert :

  • "true" string to true boolean value
  • "false" string to false boolean value
  • anything else to nil

weaktable.lua

FILLME

License

My code is under MIT License

About

[###--] Lua Minimal utils (finaly no only minimal...)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages