- [BASE]
attribute(startFunc)
Create an attribute to modity the running env, when an attribute be created and called,startFunc
will be run with same args.- [ATTRIBUTE]
relative(file)/import(relpath)
Userelative(file)
to create an env which records full path and dir of the file, then can useimport(relpath)
to require file in relative path. - [ATTRIBUTE]
namespace(base).XXX(func)/usingNamespace(base).XXX()
- Use
namespace(base).XXX(func)
to create a XXX namespace table in last namespace orbase
or_G
, then run thefunc
which new global variables infunc
env will be insert into XXX namespace, can index multiple namespaces once. (e.g.:namespace().A.B.C(func)
) - Use
usingNamespace(base).XXX()
to create an env, which will redirect global variable searching from_G
to XXX namespace in last namespace orbase
or_G
, this also can index multiple namespaces once.
- Use
- [ATTRIBUTE]
class().XXX([BaseClass], defineFunc)
Create a C++-like class name XXX extendsBaseClass
, which has class member access, static/non-static, and hassuper
andcls
in non-static function env, andcls
in static function env.
IN-PLAN: support implement or multi-extends- [ATTRIBUTE]
public()/protected()/private()
Change defines to certain access scope. - [ATTRIBUTE]
static()
Change next define to static, and change back when done.
- [ATTRIBUTE]
- [ATTRIBUTE]
-
Notifications
You must be signed in to change notification settings - Fork 0
Issacy/LuaCode
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published