SkillAgentSearch skills...

LuaComp

A general purpose preprocessor and postprocessor written in Lua.

Install / Use

/learn @lunaboards-dev/LuaComp
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

LuaComp

A general purpose preprocessor and postprocessor written in Lua.

Building

See manual/README.md

How-To

Merging source files

-- myfile.lua
local my_lib = {}

function my_lib.hello_world()
  print("Hello, world!")
end
-- main.lua
--#include "my_file.lua"
my_lib.hello_world()

Getting enviroment variables

print("This was compiled in the shell "..$(SHELL))

Macros

@[[function my_macro(a, b)]]
print("Hello, @[{a}]. Your lucky number is @[{b}].")
@[[end]]

@[[my_macro("world", 7)]]
@[[my_macro("user", 42)]]
@[[my_macro("Earth", 0)]]
@[[my_macro("Satna", 666)]]

Related Skills

View on GitHub
GitHub Stars6
CategoryDevelopment
Updated2y ago
Forks1

Languages

Lua

Security Score

70/100

Audited on Sep 1, 2023

No findings