Commit graph

95 commits

Author SHA1 Message Date
overflowerror
c71a63e821 test: Add test for str subscripts 2024-05-02 14:34:24 +02:00
overflowerror
731ab2ff7a test: Add test case for array offsets in variables 2024-05-02 14:30:33 +02:00
overflowerror
14edad9a88 feat: Add support for array subscripts 2024-05-02 14:28:08 +02:00
overflowerror
aa28a78102 feat: Add read() builtin to read to array/string 2024-04-27 18:30:40 +02:00
overflowerror
b346c25033 test: Add newline to print char array test 2024-04-27 18:01:08 +02:00
overflowerror
6d7c58a512 fix: newline escapes in char literal 2024-04-27 17:08:12 +02:00
overflowerror
8c3c1d1991 fix: printing arrays works now 2024-04-27 16:56:35 +02:00
overflowerror
863d2f2e02 feat: preparation for arrays 2024-04-27 11:09:17 +02:00
overflowerror
764450a442 feat: Add first input builtin 2024-04-27 11:02:02 +02:00
overflowerror
cd6d710d13 refactor: Refactor codegen into components 2024-04-27 09:58:43 +02:00
overflowerror
820c7c1a93 feat: Add greater than or equals, and less than or equals operations 2024-04-27 09:24:40 +02:00
overflowerror
28f34b6922 feat: Add support for greater than and less than comparisons 2024-04-26 22:01:37 +02:00
overflowerror
537e86b405 chore: Call test test in common test target 2024-04-26 16:59:05 +02:00
overflowerror
0461a3d2ea feat: Change print syntax to builtin 2024-04-26 16:28:39 +02:00
overflowerror
8a645a635d feat: Make builtins work 2024-04-26 15:58:34 +02:00
overflowerror
e95e2adc6d feat: Add builtins to grammar 2024-04-26 15:44:07 +02:00
overflowerror
f91af58c43 refactor: Moved macro stuff to builtins 2024-04-26 14:54:08 +02:00
overflowerror
8126e835a3 feat: Add negation to codegen 2024-03-06 15:57:50 +01:00
overflowerror
7de4815ab8 feat: Add negation to grammar 2024-03-02 19:53:47 +01:00
overflowerror
237d9f584c feat: Change macro token to not conflict with boolean inversion 2024-03-02 19:51:17 +01:00
overflowerror
88dd752e2d feat: Add implementation of conjunction and disjunction 2024-03-02 19:48:09 +01:00
overflowerror
35aa317fde chore: Add variable initialization to avoid compiler warning 2024-02-28 21:57:16 +01:00
overflowerror
db26cc5182 feat: Add logic conjunction and disjunction to grammar and ast 2024-02-28 21:54:37 +01:00
overflowerror
f7f5238e51 test: Add some test cases for common module 2024-02-25 12:00:29 +01:00
overflowerror
4d75f1fccf feat: Add testing module 2024-02-25 11:54:59 +01:00
overflowerror
755bdcd189 feat(LSP): Begin of header parsing 2024-02-24 23:41:59 +01:00
overflowerror
c61076b835 feat: Split common module from compiler 2024-02-23 23:16:51 +01:00
overflowerror
a4faf552be feat: Add very basic web server for LSP 2024-02-22 20:06:09 +01:00
overflowerror
38c41fa3f0 feat: Begin of LSP 2024-02-22 18:34:01 +01:00
overflowerror
b14d745344 fix: Makefile broke on move 2024-02-22 18:33:02 +01:00
overflowerror
a246590350 chore: Add gitignore files for output directories 2024-02-22 18:25:39 +01:00
overflowerror
755ff6e2ff refactor: Move compiler files to new directory 2024-02-22 13:31:04 +01:00
overflowerror
aa6d180bc5 test: Add 100 bottles of beer test 2024-02-21 20:54:36 +01:00
overflowerror
a9400a8de9 fix: missing reset when assigning + cleanup 2024-02-21 20:53:30 +01:00
overflowerror
6892676eac feat: Add macro name to macro not found error 2024-02-21 20:45:16 +01:00
overflowerror
1e0c6efc51 test: fix memory corruption bug test 2024-02-21 20:41:41 +01:00
overflowerror
9be11d2b67 fix: More memory corruption bugs (yay) 2024-02-21 20:39:01 +01:00
overflowerror
c01a0ec171 test: Add test case for heap corruption bug 2024-02-21 20:22:04 +01:00
overflowerror
fd3909d3d5 fix: append character in strbuf 2024-02-21 20:20:33 +01:00
overflowerror
5d6c62a28b fix: uninitialized strbuf memory corruption 2024-02-21 20:16:05 +01:00
overflowerror
224a5917ea feat: Add equals and not-equals operators 2024-02-20 22:30:01 +01:00
overflowerror
3070393ff2 feat: Add while loops 2024-02-20 22:10:46 +01:00
overflowerror
f2553d5044 feat: Add while loops to grammar 2024-02-20 21:59:38 +01:00
overflowerror
94f6441aaf feat: Remove semicolon after if statements 2024-02-20 21:48:00 +01:00
overflowerror
1970130145 feat: Add proper block scope 2024-02-20 21:46:06 +01:00
overflowerror
442618ed87 fix: dict iterator gets stuck on first element in bucket 2024-02-20 21:44:24 +01:00
overflowerror
19ed35d535 refactor: Change to scope based system 2024-02-19 23:15:53 +01:00
overflowerror
f0a04a6a65 feat: Add support for reassigning variables 2024-02-18 21:19:33 +01:00
overflowerror
6eacf766cf refactor: Split declaration and assignment ast nodes
preparation for standalone assignments
2024-02-18 11:45:16 +01:00
overflowerror
2a88a986ee fix: missing reset in clone 2024-02-18 00:13:10 +01:00