Commit graph

107 commits

Author SHA1 Message Date
overflowerror
3021ff6f4a fix(bf): set stdout unbuffered + formating 2024-05-05 22:21:11 +02:00
overflowerror
5346b91cc2 feat: Add rmap - reverse map builtin 2024-05-05 22:14:12 +02:00
overflowerror
963e57c995 test: Add test case for extracting value with map 2024-05-05 21:55:33 +02:00
overflowerror
2d0d7691d7 feat: Add build infra + tests for brainfuck interpreter 2024-05-04 19:16:35 +02:00
overflowerror
9b1d59808e feat: Add simple brainfuck interpreter for testing 2024-05-03 21:32:46 +02:00
overflowerror
f9275890aa I forgot to add this expects file 2024-05-02 20:02:07 +02:00
overflowerror
cdc7eab841 fix: int overflow in hash_string() function results in negative bucket id 2024-05-02 17:36:51 +02:00
overflowerror
650e47f693 feat: Add else if shortcut 2024-05-02 17:00:47 +02:00
overflowerror
8b83b4733d test: Add tests for in-place editing in map loop 2024-05-02 15:48:42 +02:00
overflowerror
5b4d040488 feat: Add basic map loop implementation 2024-05-02 15:44:18 +02:00
overflowerror
3567a3c40b feat: Add map statement to parser 2024-05-02 15:20:26 +02:00
overflowerror
a381d95ff1 feat: Add support to subscript assignments 2024-05-02 14:52:17 +02:00
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