68 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: #4
Co-committed-by: tema5002 <tema5002@tuta.io>
2026-05-26 18:37:00 +02:00
4fbb006072 build.lua: changes 2026-05-24 14:23:12 +02:00
09ac2a17f9 build.lua: allow fail on rmdir, rm -rf to ignore nonexistent 2026-05-24 14:12:46 +02:00
6d57f1fe6b build.lua: assert to suppress lsp warning
lol
2026-05-24 12:45:35 +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: #3
Co-committed-by: tema5002 <tema5002@tuta.io>
2026-05-24 12:08:07 +02:00
0d6b1c6729 build.lua: add clean & run for first argument
Co-authored-by: tema5002 <tema5002@tuta.io>
Reviewed-on: #2
Co-committed-by: tema5002 <tema5002@tuta.io>
2026-05-23 21:00:20 +02:00
9acff5f893 main, parser: fix memory leak/unitialized mem 2026-05-23 20:28:56 +02:00
bb73054e2c updated gitignore 2026-05-23 20:17:26 +02:00
5359461e9c Merge pull request 'update build.lua and change char* to const char*' (#1) from tema5002/noom:main into main
Reviewed-on: #1
2026-05-23 18:58:20 +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
c95df11c88 build.lua: maybe windows support 2026-05-09 10:54:48 +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
ab1b9d7963 build.lua: add compiler.c 2026-04-26 19:36:24 +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