Lua for learning and laufs
Luaf tries to support as much as possible of PUC lua plus more on top. It also adds some additions to it that were recently added to luaJIT as well such as compound assignments, shorthand function definition, nil coalescing and more!
err := luaf.Confg(filepath, &cfg) to use this library as complicated config tool.io.stat(filepath): get file information.io.dir(dirpath): list directory entries, can be used like for i, path in ipairs(io.dir("~/.config")) do endio.touch(filepath [, atime [, mtime]]): touch a file, either creating it our updating its time.io.walk(path, fn): walk a directory recursively and call the function for each.os.chdir(path): change the current working directory.os.currentdir(): get the current working directory.os.link(old, new[, symlink]): create a symlink for a file.os.mkdir(dirname): create directory.os.rmdir (dirname): delete directory.require("class"): built in class library.require("tmpl"): built in templating library.require("term"): built in terminal tools like cli arg parsing and ansi codes.require("encoding"): built in json and lua encodings for data storage.const declaration const MAX_ITEM = 100continue statement1_000_000~>>!, &&, ||, !=?? examples: local a = options.greet ?? "Hello world!"?. examples: a?.[key] a?.field a?.[key] obj?.:method(…) obj:method?.(…)+=, -=, *=, /=, %=, &=, |=, <<=, >>=, ~>>=, ..=local a = ok ? "yes" : "no"f = a -> a+1 f = |a| -> a+1 f = |a| -> do return a+1 endluaf test will find paths that end with _test.lua and run them.luaf doc will generate documentation based on doc tags in the source code.lint, fmt, and lsp.