57 Commits

Author SHA1 Message Date
be75ccd6f8 parser: apparently i don't know how realloc works 2026-06-02 21:04:34 +02:00
269d2c8ae9 documented the vm more 2026-05-27 15:43:13 +02:00
20f9ee0a14 basic VM stuff 2026-05-26 20:36:14 +02:00
8e8b01b7d9 main.c: remake cli tool, helper.c: add strcmp, use builtins in some paths
Co-authored-by: tema5002 <tema5002@tuta.io>
Reviewed-on: NeoFlock/noom#4
Co-committed-by: tema5002 <tema5002@tuta.io>
2026-05-26 18:37:00 +02:00
2a22544464 error: add the missing errors and some nitpicks 2026-05-24 12:43:37 +02:00
fbbe2e8285 error: add proper error strings
Co-authored-by: tema5002 <tema5002@tuta.io>
Reviewed-on: NeoFlock/noom#3
Co-committed-by: tema5002 <tema5002@tuta.io>
2026-05-24 12:08:07 +02:00
9acff5f893 main, parser: fix memory leak/unitialized mem 2026-05-23 20:28:56 +02:00
tema5002
d229116a8b update build.lua and change char* to const char* 2026-05-23 19:52:35 +03:00
6310ec69d2 Lex is unemployed 2026-05-14 23:45:37 +03:00
179829d8b5 doing Lex's work 2026-05-14 23:22:46 +03:00
669f3029d6 Move stuff 2026-05-12 12:55:11 +02:00
8e8642d7d6 parser: fix table literals with semicolons 2026-05-08 21:55:51 +02:00
9f6b6e1eec parser: error things 2026-05-08 18:29:42 +02:00
fc9f7c05b4 banger commit 2026-05-05 23:38:00 +03:00
27435f0fc5 Fix 2026-05-05 21:51:03 +02:00
98826534a1 Add very important stuff that compiles!!! 2026-05-05 21:46:48 +02:00
861fffb244 parser: vararg expr 2026-05-05 20:08:08 +02:00
67eb3fc552 parser: things 2026-04-30 15:22:04 +02:00
a08ff41995 parser: repeat until 2026-04-29 13:38:26 +02:00
f3651e85c5 parser: goto + labels 2026-04-29 13:23:59 +02:00
bba1be30d7 parser: for loops 2026-04-29 13:10:57 +02:00
7ad81d55e2 parser: returns 2026-04-29 12:28:14 +02:00
86973c92fa parser: lambda function literals 2026-04-28 20:29:18 +02:00
3126d0ccd7 parser: local function decl 2026-04-28 20:18:09 +02:00
9227e58e65 parser: function declaration 2026-04-28 20:09:23 +02:00
1f17da04f6 parser: variable attributes 2026-04-28 14:09:55 +02:00
c9ae8680b0 parser: assignment and function call statements 2026-04-27 20:17:58 +02:00
1346bf399f parser: parenthesized expressions 2026-04-27 18:07:09 +02:00
146b524587 parser: method call in expr 2026-04-27 16:20:16 +02:00
bab92a73ff parser: expressions with indexing, fields and basic calls 2026-04-26 19:35:45 +02:00
7a3cdff2d4 idk add some bytecode stuff 2026-04-24 14:15:27 +02:00
4d2ae0aa2e revert 3bfad074b4
revert added useful
2026-04-23 15:58:19 +02:00
3bfad074b4 added useful 2026-04-23 15:52:49 +02:00
f880635038 lexer: remove accidental stdio include 2026-04-22 17:33:09 +02:00
3d72500c5c parser: strings 2026-04-22 17:32:35 +02:00
5b99c73a1a lexer: strings 2026-04-22 17:29:48 +02:00
754fd13dfd lexer: comments 2026-04-21 22:57:49 +02:00
6bc9249094 lexer: disallow weird lexer number jank 2026-04-20 21:48:06 +02:00
d8f22e1c11 lexer: hex numbers have decimal exponents. of course. 2026-04-20 20:52:29 +02:00
b6391d55f8 lexer: hex literal floats and exponents 2026-04-20 20:48:52 +02:00
0e6a08d702 improve number lexing 2026-04-20 16:14:56 +02:00
bf52cf70ab lexer: lock things behind lua versions 2026-04-20 15:24:28 +02:00
1807520170 lexer, parser: pass around lua version 2026-04-19 17:07:05 +02:00
055f56fcc2 lexer + parser: add formatting for enums + build script: spaces -> tabs 2026-04-17 20:20:31 +02:00
95d1e919c5 parser: simplify code a little lol 2026-04-17 19:26:54 +02:00
3534e7a388 parser: support break and fix local decl 2026-04-17 19:22:02 +02:00
9d2293baa6 while loop parsing 2026-04-16 12:08:01 +02:00
b260b49b62 elseif, else 2026-04-16 11:53:26 +02:00
9ac3df1f37 i don't remember what i changed 2026-04-14 20:38:14 +02:00
a577ffe094 parsers are really fun to work on
... but maybe not as much in c...
2026-04-14 16:19:04 +02:00