Commit Graph

73 Commits

Author SHA1 Message Date
d3b1d3a3ac struct inside struct access works i think 2026-05-05 06:56:40 +10:00
6d577a0e5b add check to make sure enough args are passed to functions 2026-05-04 20:53:49 +10:00
0836495cd4 ensure number of args passed to constructor is correct 2026-05-04 20:47:36 +10:00
19fb905bc0 added inline functions 2026-05-04 20:14:51 +10:00
283455057e icon png 2026-05-04 20:03:29 +10:00
74cd568661 remove uneeded print 2026-05-04 19:59:53 +10:00
881f127c17 cast 2026-05-04 19:56:39 +10:00
be71e2eaac small bug fix, still tryna figure out nested structs 2026-05-04 19:27:13 +10:00
85edada2c0 THE STRUCT COMPIELD 2026-05-04 17:38:04 +10:00
7464b81f1e cant test this yet cause im on my mac 2026-05-04 09:52:59 +10:00
430257751d gotta write a way to get a pointer to a value for structs 2026-05-04 07:37:14 +10:00
9430514c3a assignment of struct fields is completely fucked 2026-05-03 20:39:33 +10:00
c8fd9a68fa removed uneeded print 2026-05-03 12:25:42 +10:00
cabdc58bb3 constructors working 2026-05-03 12:24:08 +10:00
52933d0011 parse new statements 2026-05-03 08:38:38 +10:00
e51e59c09e change how compiler typemap works to support structs 2026-05-03 07:27:07 +10:00
4894f94ea5 remove AST_TYPE_NAME 2026-05-03 07:22:25 +10:00
e955b39515 added some new logic to the parser so structs can be used as types 2026-05-03 07:20:38 +10:00
d55bf0ef50 bug with printing structs fixed 2026-05-02 22:12:22 +10:00
c754176e41 made the compiler support variables with no value 2026-05-02 22:07:15 +10:00
d9aaefe7bd change the way reassignment works to support the dot operator 2026-05-02 22:03:09 +10:00
1e1d616793 added dot operator 2026-05-02 21:37:37 +10:00
81e2abc5c5 print constructor 2026-05-02 20:59:10 +10:00
98a26d2a41 parse constructor def 2026-05-02 20:51:08 +10:00
92c376757b parse struct fields 2026-05-02 20:39:35 +10:00
78eb02d189 automatic promotion for ints in infix expressions 2026-05-02 13:34:37 +10:00
9e6970d04f removed ast print 2026-05-02 13:11:47 +10:00
9eaeaf7fbf removed testing files 2026-05-02 13:09:58 +10:00
0d061a81d5 added implicit casts for return types and variable types
just ints for now, will add floats later
2026-05-02 13:07:10 +10:00
7a4dc3b055 added credit for the repl_str function 2026-05-02 11:36:11 +10:00
27c14e0edd printf works :D 2026-05-02 11:35:50 +10:00
fb5abf9ee0 added strings 2026-05-02 11:18:21 +10:00
1dd172682b for loops working! 2026-05-02 10:30:05 +10:00
035a7a19fe started work on for loops and fixed bug in parser 2026-05-02 10:02:40 +10:00
072740bf51 while loops working 2026-05-02 09:31:27 +10:00
2320e4901f made syntax highlighting more consistent in syntax.md 2026-05-02 08:50:00 +10:00
21e2b97f62 IF STATEMENTS WORK 2026-05-02 08:34:04 +10:00
5c492f4cba FUNCTION CALLS ARE WORKING YIPEEE 2026-05-01 07:51:36 +10:00
04ac64db78 write module to file instead of printing it 2026-04-30 21:17:40 +10:00
d8de322c00 reassignment done 2026-04-30 21:14:55 +10:00
65454e160a VARIABLES WORK LETS FUCKING GOOOO 2026-04-30 21:06:22 +10:00
2e89e4a786 small fix 2026-04-30 20:43:58 +10:00
d1ce3989fc core compiler type resolver done, we are returning a value!!! :D 2026-04-30 20:16:03 +10:00
6ae4d6bf0d basic llvm setup 2026-04-30 18:57:35 +10:00
b34bd425ee ok thats it we're going LLVM 2026-04-30 17:56:54 +10:00
54b7ee1a7d ok im switching to LLVM after this commit im not smart enough 😭 2026-04-30 07:48:11 +10:00
7667fcd04e im going through the seven stages of grief 2026-04-29 21:09:58 +10:00
852a513505 FUNCTION CALLS FUCKING WORK BABBYYY 2026-04-29 06:28:36 +10:00
fbae99876f woops, maybe dont set a char* to 0 😭 2026-04-29 05:46:37 +10:00
6a9770b22b function calls are nearly fully working! :D 2026-04-29 05:43:04 +10:00