summaryrefslogtreecommitdiff
path: root/src/bindings
diff options
context:
space:
mode:
Diffstat (limited to 'src/bindings')
-rw-r--r--src/bindings/luajit/eolian.lua114
1 files changed, 59 insertions, 55 deletions
diff --git a/src/bindings/luajit/eolian.lua b/src/bindings/luajit/eolian.lua
index 409c94e..e9dc676 100644
--- a/src/bindings/luajit/eolian.lua
+++ b/src/bindings/luajit/eolian.lua
@@ -40,14 +40,15 @@ ffi.cdef [[
40 40
41 typedef enum 41 typedef enum
42 { 42 {
43 EOLIAN_IN_PARAM = 0, 43 EOLIAN_UNKNOWN_PARAM = 0,
44 EOLIAN_IN_PARAM,
44 EOLIAN_OUT_PARAM, 45 EOLIAN_OUT_PARAM,
45 EOLIAN_INOUT_PARAM 46 EOLIAN_INOUT_PARAM
46 } Eolian_Parameter_Dir; 47 } Eolian_Parameter_Dir;
47 48
48 typedef enum 49 typedef enum
49 { 50 {
50 EOLIAN_CLASS_UNKNOWN_TYPE = 0, 51 EOLIAN_CLASS_UNKNOWN_TYPE = 0,
51 EOLIAN_CLASS_REGULAR, 52 EOLIAN_CLASS_REGULAR,
52 EOLIAN_CLASS_ABSTRACT, 53 EOLIAN_CLASS_ABSTRACT,
53 EOLIAN_CLASS_MIXIN, 54 EOLIAN_CLASS_MIXIN,
@@ -56,7 +57,8 @@ ffi.cdef [[
56 57
57 typedef enum 58 typedef enum
58 { 59 {
59 EOLIAN_SCOPE_PUBLIC = 0, 60 EOLIAN_SCOPE_UNKNOWN = 0,
61 EOLIAN_SCOPE_PUBLIC,
60 EOLIAN_SCOPE_PRIVATE, 62 EOLIAN_SCOPE_PRIVATE,
61 EOLIAN_SCOPE_PROTECTED 63 EOLIAN_SCOPE_PROTECTED
62 } Eolian_Object_Scope; 64 } Eolian_Object_Scope;
@@ -142,7 +144,7 @@ ffi.cdef [[
142 } Eolian_Value_t; 144 } Eolian_Value_t;
143 145
144 typedef enum { 146 typedef enum {
145 EOLIAN_BINOP_INVALID = -1, 147 EOLIAN_BINOP_INVALID = 0,
146 148
147 EOLIAN_BINOP_ADD, /* + int, float */ 149 EOLIAN_BINOP_ADD, /* + int, float */
148 EOLIAN_BINOP_SUB, /* - int, float */ 150 EOLIAN_BINOP_SUB, /* - int, float */
@@ -168,7 +170,7 @@ ffi.cdef [[
168 } Eolian_Binary_Operator; 170 } Eolian_Binary_Operator;
169 171
170 typedef enum { 172 typedef enum {
171 EOLIAN_UNOP_INVALID = -1, 173 EOLIAN_UNOP_INVALID = 0,
172 174
173 EOLIAN_UNOP_UNM, /* - sint */ 175 EOLIAN_UNOP_UNM, /* - sint */
174 EOLIAN_UNOP_UNP, /* + sint */ 176 EOLIAN_UNOP_UNP, /* + sint */
@@ -178,7 +180,7 @@ ffi.cdef [[
178 } Eolian_Unary_Operator; 180 } Eolian_Unary_Operator;
179 181
180 typedef enum { 182 typedef enum {
181 EOLIAN_DECL_UNKNOWN = -1, 183 EOLIAN_DECL_UNKNOWN = 0,
182 EOLIAN_DECL_CLASS, 184 EOLIAN_DECL_CLASS,
183 EOLIAN_DECL_ALIAS, 185 EOLIAN_DECL_ALIAS,
184 EOLIAN_DECL_STRUCT, 186 EOLIAN_DECL_STRUCT,
@@ -187,7 +189,7 @@ ffi.cdef [[
187 } Eolian_Declaration_Type; 189 } Eolian_Declaration_Type;
188 190
189 typedef enum { 191 typedef enum {
190 EOLIAN_DOC_TOKEN_UNKNOWN = -1, 192 EOLIAN_DOC_TOKEN_UNKNOWN = 0,
191 EOLIAN_DOC_TOKEN_TEXT, 193 EOLIAN_DOC_TOKEN_TEXT,
192 EOLIAN_DOC_TOKEN_REF, 194 EOLIAN_DOC_TOKEN_REF,
193 EOLIAN_DOC_TOKEN_MARK_NOTE, 195 EOLIAN_DOC_TOKEN_MARK_NOTE,
@@ -433,9 +435,10 @@ end
433cutil.init_module(init, shutdown) 435cutil.init_module(init, shutdown)
434 436
435M.object_scope = { 437M.object_scope = {
436 PUBLIC = 0, 438 UNKNOWN = 0,
437 PRIVATE = 1, 439 PUBLIC = 1,
438 PROTECTED = 2 440 PRIVATE = 2,
441 PROTECTED = 3
439} 442}
440 443
441M.directory_scan = function(dir) 444M.directory_scan = function(dir)
@@ -479,12 +482,12 @@ M.database_validate = function()
479end 482end
480 483
481M.declaration_type = { 484M.declaration_type = {
482 UNKNOWN = -1, 485 UNKNOWN = 0,
483 CLASS = 0, 486 CLASS = 0,
484 ALIAS = 1, 487 ALIAS = 1,
485 STRUCT = 2, 488 STRUCT = 2,
486 ENUM = 3, 489 ENUM = 3,
487 VAR = 4 490 VAR = 4
488} 491}
489 492
490M.type_type = { 493M.type_type = {
@@ -849,9 +852,10 @@ M.Function = ffi.metatype("Eolian_Function", {
849}) 852})
850 853
851M.parameter_dir = { 854M.parameter_dir = {
852 IN = 0, 855 UNKNOWN = 0,
853 OUT = 1, 856 IN = 1,
854 INOUT = 2 857 OUT = 2,
858 INOUT = 3
855} 859}
856 860
857ffi.metatype("Eolian_Function_Parameter", { 861ffi.metatype("Eolian_Function_Parameter", {
@@ -1271,39 +1275,39 @@ M.Value = ffi.metatype("Eolian_Value", {
1271}) 1275})
1272 1276
1273M.binary_operator = { 1277M.binary_operator = {
1274 INVALID = -1, 1278 INVALID = 0,
1275 1279
1276 ADD = 0, 1280 ADD = 1,
1277 SUB = 1, 1281 SUB = 2,
1278 MUL = 2, 1282 MUL = 3,
1279 DIV = 3, 1283 DIV = 4,
1280 MOD = 4, 1284 MOD = 5,
1281 1285
1282 EQ = 5, 1286 EQ = 6,
1283 NQ = 6, 1287 NQ = 7,
1284 GT = 7, 1288 GT = 8,
1285 LT = 8, 1289 LT = 9,
1286 GE = 9, 1290 GE = 10,
1287 LE = 10, 1291 LE = 11,
1288 1292
1289 AND = 11, 1293 AND = 12,
1290 OR = 12, 1294 OR = 13,
1291 1295
1292 BAND = 13, 1296 BAND = 14,
1293 BOR = 14, 1297 BOR = 15,
1294 BXOR = 15, 1298 BXOR = 16,
1295 LSH = 16, 1299 LSH = 17,
1296 RSH = 17 1300 RSH = 18
1297} 1301}
1298 1302
1299M.unary_operator = { 1303M.unary_operator = {
1300 INVALID = -1, 1304 INVALID = 0,
1301 1305
1302 UNM = 0, 1306 UNM = 1,
1303 UNP = 1, 1307 UNP = 2,
1304 1308
1305 NOT = 2, 1309 NOT = 3,
1306 BNOT = 3 1310 BNOT = 4
1307} 1311}
1308 1312
1309M.Expression = ffi.metatype("Eolian_Expression", { 1313M.Expression = ffi.metatype("Eolian_Expression", {
@@ -1523,14 +1527,14 @@ M.Documentation = ffi.metatype("Eolian_Documentation", {
1523}) 1527})
1524 1528
1525M.doc_token_type = { 1529M.doc_token_type = {
1526 UNKNOWN = -1, 1530 UNKNOWN = 0,
1527 TEXT = 0, 1531 TEXT = 1,
1528 REF = 1, 1532 REF = 2,
1529 MARK_NOTE = 2, 1533 MARK_NOTE = 3,
1530 MARK_WARNING = 3, 1534 MARK_WARNING = 4,
1531 MARK_REMARK = 4, 1535 MARK_REMARK = 5,
1532 MARK_TODO = 5, 1536 MARK_TODO = 6,
1533 MARKUP_MONOSPACE = 6 1537 MARKUP_MONOSPACE = 7
1534} 1538}
1535 1539
1536M.doc_ref_type = { 1540M.doc_ref_type = {