Commit Graph

49 Commits

Author SHA1 Message Date
7e5aaf56f1 Add broken table assignment 2026-03-17 19:14:11 +02:00
83bccbbf4d Add SETTABLE 2026-03-17 18:33:52 +02:00
8e57def387 Add basic tables 2026-03-17 18:18:31 +02:00
d4da1f9184 Add String-values and String-literals 2026-03-17 18:03:41 +02:00
093e96f8b2 Add possibility to execute code at any stage 2026-03-16 18:38:04 +02:00
1091f341b9 Add add_prototype-function 2026-03-16 18:10:54 +02:00
df8c196bb9 Improve register reuse 2026-03-16 17:57:57 +02:00
ac880cc16a Implement register reuse 2026-03-16 17:50:16 +02:00
d4b13f3193 Add RuntimeErrors 2026-03-16 17:19:16 +02:00
5162550095 Fix dangling anonymous functions 2026-03-16 17:05:11 +02:00
0fca17defb Add unary operators 2026-03-16 16:53:52 +02:00
f3870e2e1a Fix unm-instruction 2026-03-16 16:44:49 +02:00
d04ddd95d0 Add and/or/sub 2026-03-16 16:37:36 +02:00
763d818c51 Add equals 2026-03-16 16:16:53 +02:00
22d7a323af Add LE/GE 2026-03-16 16:13:11 +02:00
130cb2763b Fix local variable definitions 2026-03-16 16:08:05 +02:00
1eb62b078e Fix upvalues and stack values being different references 2026-03-16 15:56:57 +02:00
c9a0a5560d Fix bug with upvalues 2026-03-16 15:44:24 +02:00
eaf5e9a30a Add if-statements, fix some bugs 2026-03-16 15:36:29 +02:00
1f14f2b9f9 Add Test and JMP 2026-03-16 14:51:12 +02:00
0a6d13c5f6 Add regular expression statement, make sure rust functions work 2026-03-15 19:24:30 +02:00
c244edb9bc Implement setupval 2026-03-15 19:07:43 +02:00
88d09abcce Add reassignment 2026-03-15 19:01:35 +02:00
982bd48d64 Implement assigning to multiple variables 2026-03-15 18:38:27 +02:00
1673ae964a Implement assignment of multiple values 2026-03-15 18:32:22 +02:00
167649d9e4 Make some tweaks 2026-03-15 18:03:59 +02:00
05da3db5e6 Implement returning expression lists 2026-03-15 17:54:48 +02:00
3305d3c162 Allow returning expression lists 2026-03-15 15:23:37 +02:00
219d4b4f7e Fix function call expressions 2026-03-15 15:19:01 +02:00
46de03858a Implement functional add example 2026-03-15 00:52:38 +02:00
08e9b00b5c Add binops, fix function call codegen 2026-03-15 00:25:06 +02:00
493664cafc Fix function calling 2026-03-14 23:49:23 +02:00
9d471400d9 Implement upvalues 2026-03-14 23:33:40 +02:00
5c96834e5c Make parameters work 2026-03-14 23:19:01 +02:00
7c327beaa1 Implement functions 2026-03-14 23:02:28 +02:00
fc50632a6f Add print 2026-03-14 22:23:50 +02:00
fb851093f0 Add rudamentary compilation 2026-03-14 22:21:06 +02:00
8acf5a75cb Refine function call codegen, add a bit of vm 2026-03-14 21:05:53 +02:00
f71008e8c2 Get compliation to work 2026-03-14 19:33:22 +02:00
50f6459abe Add some compilation 2026-03-14 19:24:05 +02:00
d74a887c4e Find constants 2026-03-14 18:31:40 +02:00
12e2fab066 Parse number literals 2026-03-14 17:36:01 +02:00
6340f67152 Parse function calls 2026-03-14 17:25:03 +02:00
c051e8ee6b Change parsing implementation to lua spec 2026-03-14 16:56:13 +02:00
9c56d807fe Add parse for binary operators 2026-03-14 16:09:58 +02:00
af27da619d Parse re-assignment 2026-03-14 16:06:08 +02:00
b3fec86fbd Parse if-statement 2026-03-14 16:03:58 +02:00
5ed3edd433 Parse function params 2026-03-14 15:57:07 +02:00
044d2b9d25 Add very simple parsing 2026-03-14 15:55:00 +02:00