-
Notifications
You must be signed in to change notification settings - Fork 196
Expand file tree
/
Copy pathenums.lua
More file actions
107 lines (96 loc) · 2.61 KB
/
enums.lua
File metadata and controls
107 lines (96 loc) · 2.61 KB
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
-- This Script is Part of the Prometheus Obfuscator by levno-710
--
-- enums.lua
--
-- This Script provides some enums used by the Obfuscator.
local Enums = {};
local chararray = require("prometheus.util").chararray;
Enums.LuaVersion = {
LuaU = "LuaU" ,
Lua51 = "Lua51",
}
Enums.Conventions = {
[Enums.LuaVersion.Lua51] = {
Keywords = {
"and", "break", "do", "else", "elseif",
"end", "false", "for", "function", "if",
"in", "local", "nil", "not", "or",
"repeat", "return", "then", "true", "until", "while"
},
SymbolChars = chararray("+-*/%^#=~<>(){}[];:,."),
MaxSymbolLength = 3,
Symbols = {
"+", "-", "*", "/", "%", "^", "#",
"==", "~=", "<=", ">=", "<", ">", "=",
"(", ")", "{", "}", "[", "]",
";", ":", ",", ".", "..", "...",
},
IdentChars = chararray("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_0123456789"),
NumberChars = chararray("0123456789"),
HexNumberChars = chararray("0123456789abcdefABCDEF"),
BinaryNumberChars = {"0", "1"},
DecimalExponent = {"e", "E"},
HexadecimalNums = {"x", "X"},
BinaryNums = {"b", "B"},
DecimalSeperators = false,
EscapeSequences = {
["a"] = "\a";
["b"] = "\b";
["f"] = "\f";
["n"] = "\n";
["r"] = "\r";
["t"] = "\t";
["v"] = "\v";
["\\"] = "\\";
["\""] = "\"";
["\'"] = "\'";
},
NumericalEscapes = true,
EscapeZIgnoreNextWhitespace = true,
HexEscapes = true,
UnicodeEscapes = true,
},
[Enums.LuaVersion.LuaU] = {
Keywords = {
"and", "break", "do", "else", "elseif", "continue",
"end", "false", "for", "function", "if",
"in", "local", "nil", "not", "or",
"repeat", "return", "then", "true", "until", "while"
},
SymbolChars = chararray("+-*/%^#=~<>(){}[];:,."),
MaxSymbolLength = 3,
Symbols = {
"+", "-", "*", "/", "%", "^", "#",
"==", "~=", "<=", ">=", "<", ">", "=",
"+=", "-=", "/=", "%=", "^=", "..=", "*=",
"(", ")", "{", "}", "[", "]",
";", ":", ",", ".", "..", "...",
"::", "->", "?", "|", "&",
},
IdentChars = chararray("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_0123456789"),
NumberChars = chararray("0123456789"),
HexNumberChars = chararray("0123456789abcdefABCDEF"),
BinaryNumberChars = {"0", "1"},
DecimalExponent = {"e", "E"},
HexadecimalNums = {"x", "X"},
BinaryNums = {"b", "B"},
DecimalSeperators = {"_"},
EscapeSequences = {
["a"] = "\a";
["b"] = "\b";
["f"] = "\f";
["n"] = "\n";
["r"] = "\r";
["t"] = "\t";
["v"] = "\v";
["\\"] = "\\";
["\""] = "\"";
["\'"] = "\'";
},
NumericalEscapes = true,
EscapeZIgnoreNextWhitespace = true,
HexEscapes = true,
UnicodeEscapes = true,
},
}
return Enums;