-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefinitions.lua
92 lines (53 loc) · 2.02 KB
/
definitions.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
--- pshy.compiler.definitions
--
-- This file provides example definitions for things defined by the compiler.
-- The compiler itself define those, you must not require this script.
--
-- @author TFM:Pshy#3752 DC:Pshy#7998
--
-- @error Please do not require this module.
--- pshy
-- Namespace of pshy's script, also used for some of the compiler variables.
local pshy = {}
_ENV.pshy = pshy -- to be removed
--- pshy.MAIN_VERSION
-- The version of this script (obtained from the repository tag).
-- Not present if only compiling pshy components.
pshy.MAIN_VERSION = "v0.0.3"
--- pshy.MAIN_MODULE_NAME
-- The main module (usually the last one included and first loaded).
pshy.MAIN_MODULE_NAME = "pshy.modulename"
--- pshy.PSHY_VERSION
-- The version of pshy's script (obtained from the repository tag).
pshy.PSHY_VERSION = "v0.9"
--- pshy.BUILD_TIME
-- The time at which the script was built (in seconds since epoch).
pshy.BUILD_TIME = 72748764824
--- pshy.INIT_TIME
-- The time at which the script started initializing.
-- This is simply a call to `os.time()`.
pshy.INIT_TIME = os.time()
--- pshy.modules
-- A map of module names to module tables.
-- See `pshy.compiler.modules` (`./modules.lua`).
pshy.modules = {}
--- pshy.module_list
-- A list of module tables in unconditional require order.
-- When executing, scripts may be required in a different order.
pshy.module_list = {}
--- pshy.require
-- Function behaving similarly to the Lua `require`.
-- See `pshy.compiler.require` (`./require.lua`).
--- __IS_MAIN_MODULE__
-- Defined as a local within the main module.
-- The main module is usually the last one included on the command-line.
local __IS_MAIN_MODULE__ = true
--- __MODULE_INDEX__
-- The index of the current module in `pshy.module_list`.
local __MODULE_INDEX__ = 1
--- __MODULE_NAME__
-- The name of the current module, also an index in `pshy.modules`.
local __MODULE_NAME__ = "pshy.compiler.definitions"
--- PSHY_PASTED
-- Global local, used to know if a module was pasted twice.
local __PSHY_PASTED__ = true