Commit Graph

128 Commits

Author SHA1 Message Date
cc943915b2 Make non-existant globals return nil 2026-03-21 23:54:34 +02:00
5246028c90 Add UserData-value 2026-03-21 20:21:53 +02:00
641aa878bb Add UserData generic everywhere 2026-03-21 20:16:00 +02:00
d717718a9c Turn and and or into keywords 2026-03-21 15:58:45 +02:00
8a50965f2e Update how result_or_metamethod-functions work 2026-03-21 15:38:35 +02:00
76fa290988 Fix __eq 2026-03-21 15:27:29 +02:00
c37682aa19 Update display impl for value 2026-03-21 15:21:52 +02:00
3360f14913 Make tables indexable via pointer value 2026-03-21 15:21:04 +02:00
10bc804a01 Make tables indexable 2026-03-21 15:17:16 +02:00
ce3ee7a273 Separate metamethod errors from meta-metamethod errors 2026-03-21 15:07:35 +02:00
1811b91922 Fix __newindex metamethod, test __call 2026-03-21 14:59:26 +02:00
71c11e87e5 Add __call metamethod 2026-03-21 14:56:06 +02:00
875cfc1220 Add __newindex metamethod 2026-03-21 14:50:24 +02:00
90c3b90065 Add __index metamethod 2026-03-21 14:44:25 +02:00
21300b71cf Remove dbg prints 2026-03-20 22:43:58 +02:00
6937c76a86 Add From str to IndexableValue 2026-03-20 22:41:39 +02:00
b4918e7312 Add better error messages to metamethods 2026-03-20 21:32:01 +02:00
239fc9a0f8 Add all metamethods 2026-03-20 21:22:52 +02:00
c919f3a6ea Add rudamentary metatables 2026-03-20 21:04:24 +02:00
5c4dbacaa7 Add calling metamethods 2026-03-20 20:45:51 +02:00
232a729fe2 Add metatable to Tables 2026-03-20 20:25:17 +02:00
4ac41e7df1 Clean up some code 2026-03-20 20:12:18 +02:00
8fe3ffc8e0 Fix concat 2026-03-20 19:28:49 +02:00
fb12568e33 Fix parsing concat 2026-03-20 19:23:53 +02:00
68da93541d Add all operators to VM properly 2026-03-20 19:18:52 +02:00
ed5c9d8b8f Add parsing for the rest of binary and unary operators 2026-03-20 18:45:27 +02:00
260963f7cd Add _ENV-table as special case for the VM 2026-03-20 18:32:50 +02:00
131c01c8f0 Fix parsing of _ENV 2026-03-20 18:30:00 +02:00
b3492032e4 Fix warning 2026-03-20 18:28:21 +02:00
ee4b5435a4 Fix doctest 2026-03-20 18:27:41 +02:00
f12f3b629b Make environment a true table 2026-03-20 18:27:04 +02:00
56943d612a Move Constant to Value 2026-03-20 18:17:31 +02:00
2710a43bb2 Move value to vm/value 2026-03-20 18:16:07 +02:00
139887fd73 Move some other stuff to value as well 2026-03-20 18:14:01 +02:00
b1ddd31fb7 Move value to own file 2026-03-20 18:12:07 +02:00
ced6e79bcc Add block statements 2026-03-20 18:04:35 +02:00
fb82ce6feb Add empty ;-statement 2026-03-20 18:01:40 +02:00
8bb49321ae Add expressions in parenthesis 2026-03-20 18:00:13 +02:00
3eaf91760e Fix various issues with upvalues 2026-03-20 16:05:02 +02:00
57b2793ede Fix upvalues 2026-03-20 15:24:50 +02:00
84eb837534 Add for-in, fix a bunch of bugs 2026-03-20 00:07:26 +02:00
2e853f29b4 Move function call compilation to own function 2026-03-19 22:43:51 +02:00
11f4e4e8a3 Fix while, add to test.lua 2026-03-19 21:37:59 +02:00
50e826061b Add repeat until 2026-03-19 21:36:05 +02:00
42164ef6fe Add while-loop 2026-03-19 21:29:52 +02:00
4c9b9085fd Add if/elseif/else 2026-03-19 17:46:47 +02:00
50bd615767 Add compiling of the else-block 2026-03-19 17:35:31 +02:00
b6a38101f7 Add parsing of elseif and else 2026-03-19 17:31:12 +02:00
0faeeae0ea Implement labels and goto 2026-03-19 17:07:20 +02:00
a7908fb39a Add break-keyword 2026-03-19 16:50:05 +02:00