aiverson / luaExtensions

Extensions to lua syntax inspired by Groovy.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lua Extensions

This adds syntax inspired by Groovy's spread and safe access operators to Lua 5.2.3

for example

local tbl = {{a=1}, {a=2}, {a=3}}; tbl*.a --> {1, 2, 3}

local a = {b="test"}; a?.b --> "test"; a?.c --> nil

About

Extensions to lua syntax inspired by Groovy.


Languages

Language:C 94.6%Language:C++ 3.8%Language:Makefile 1.7%