Commit graph

75 commits

Author SHA1 Message Date
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
overflowerror
bed6d3b2d7 feat: Add if-else statement 2024-02-17 22:22:28 +01:00
overflowerror
a6922b8372 feat: Add ast construction for if-else 2024-02-17 21:46:57 +01:00
overflowerror
635f90e8e0 refactor: change program type to block 2024-02-17 21:40:41 +01:00
overflowerror
8c7f2c8603 feat: Add grammar support for if-else 2024-02-16 23:45:59 +01:00
overflowerror
035275084b fix: Memory leak in to_str macro 2024-02-16 23:38:58 +01:00
overflowerror
5c78266f8a feat: Add modulo 2024-02-16 23:33:16 +01:00
overflowerror
980bab6b2a feat: Add division 2024-02-16 23:24:56 +01:00
overflowerror
cf969566f2 cleanup: Better logging + begin of debug mode 2024-02-16 18:17:05 +01:00
overflowerror
5efc5659ba feat: Add support for addition, subtraction and multiplication 2024-02-16 18:16:51 +01:00
overflowerror
59257e47b6 feat: Extend parser to allow calculations 2024-02-16 14:05:11 +01:00
overflowerror
36b75d5654 feat: Added indicator for allocated regions 2024-02-16 13:41:21 +01:00
overflowerror
8ec648601d cleanup: Use non-standard index for add/sub macros 2024-02-16 13:14:50 +01:00
overflowerror
0d4cc9f864 cleanup: Move offset calculation to macro 2024-02-16 13:13:45 +01:00
overflowerror
7fb2f387de feat: Add to_str macro 2024-02-16 12:50:13 +01:00
overflowerror
bc600d11a2 feat: Add grammar support for numbers 2024-02-16 10:56:35 +01:00
overflowerror
62bcd95590 refactor: Move useful codegen macros to header 2024-02-16 10:32:18 +01:00
overflowerror
541fd31eb2 feat: Add plugin system 2024-02-15 21:22:34 +01:00
overflowerror
ba31675d71 feat: Prepare for proc macros 2024-02-15 20:55:41 +01:00
overflowerror
712d01a78b cleanup: Replace print_repeat function with macro 2024-02-15 20:13:34 +01:00
overflowerror
4438ff1159 cleanup: Add macros for common statements in codegen module 2024-02-15 20:10:17 +01:00