143 Commits

Author SHA1 Message Date
David Gonzalez Martin
40c570f3f1 More self hosted work 2024-04-24 07:41:37 -06:00
David Gonzalez Martin
b88f3bbba0 More self-hosted work 2024-04-23 21:55:03 -06:00
David Gonzalez Martin
51899ca4af Fix slice expression with comptime range 2024-04-23 12:03:29 -06:00
David Gonzalez Martin
c56e80d30c Bitcast string 2024-04-23 09:45:47 -06:00
David Gonzalez Martin
03e2d6798f Trailing zeroes 2024-04-23 08:08:08 -06:00
David Gonzalez Martin
343b909829 Implement wrapping arithmetic 2024-04-22 22:54:42 -06:00
David Gonzalez Martin
5eb77c3daf Enable CI 2024-04-22 11:47:39 -06:00
David Gonzalez Martin
91002c91c0 Delete unneeded libc files 2024-04-20 08:43:30 -06:00
David Gonzalez Martin
28776701fc First comptime for implementation 2024-04-20 08:25:31 -06:00
David Gonzalez Martin
767c9d3b7a More enum metaprogramming 2024-04-18 21:46:48 -06:00
David Gonzalez Martin
99a6b04633 Basic enum metaprogramming 2024-04-18 17:39:11 -06:00
David Gonzalez Martin
b4dbf18d4a Improve handling of block termination in switches 2024-04-18 13:25:03 -06:00
David Gonzalez Martin
213082f532 Implement continue expression 2024-04-18 10:14:03 -06:00
David Gonzalez Martin
2ac5e19b32 One's complement implementation 2024-04-18 07:41:59 -06:00
David Gonzalez Martin
d68c2e8fc4 Actually implement polymorphism in functions 2024-04-17 21:18:21 -06:00
David Gonzalez Martin
98dce155c8 More self-hosted work 2024-04-17 19:17:16 -06:00
David Gonzalez Martin
c38306be15 Support native CPU feature detection 2024-04-17 12:29:37 -06:00
David Gonzalez Martin
166e9a5b8e lexer: count lines 2024-04-17 08:29:42 -06:00
David Gonzalez Martin
e44a6ee8b7 Implement file reading in the self-hosted compiler 2024-04-17 08:19:35 -06:00
David Gonzalez Martin
49c8f47459 More self-hosted work 2024-04-16 21:18:07 -06:00
David Gonzalez Martin
23399c5ea6 Some Windows improvements 2024-04-15 09:23:58 -06:00
David Gonzalez Martin
5bee0d0122 Provide debug info switch 2024-04-14 14:38:32 -06:00
David Gonzalez Martin
5914c54116 Remove dead code 2024-04-14 10:32:48 -06:00
David Gonzalez Martin
801582b56d Integrate optimization pipeline 2024-04-14 09:37:28 -06:00
David Gonzalez Martin
203bee684c Write initial self-hosted code 2024-04-13 23:16:26 -06:00
David Gonzalez Martin
5473d1c5a9 Print some arguments 2024-04-11 07:53:04 -06:00
David Gonzalez Martin
f2c978fd47 Fix struct debug info 2024-04-10 11:06:52 -06:00
David Gonzalez Martin
46f070294c Ditch allocator for arena 2024-04-10 10:31:33 -06:00
David Gonzalez Martin
60abe3f9d5 Write some LLVM optimization pipeline stub 2024-04-09 20:51:06 -06:00
David Gonzalez Martin
08ca8706b9 Some Windows fixes 2024-04-09 15:25:20 -06:00
David Gonzalez Martin
9244bd106d Basic polymorphic function 2024-04-08 19:45:13 -06:00
David Gonzalez Martin
80a4b656f9 Rework polymorphism 2024-04-08 18:59:17 -06:00
David Gonzalez Martin
84c279aa3d Self referential struct 2024-04-06 08:33:14 -06:00
David Gonzalez Martin
94af9fda83 First polymorphic type implementation 2024-04-05 09:31:45 -06:00
David Gonzalez Martin
1739e37ed3 Introduce sliceable structs 2024-04-03 07:51:08 -06:00
David Gonzalez Martin
5e0027db68 Adapt to Zig master last changes 2024-04-01 20:21:26 -06:00
David
10fefeeb9b
Revert "Rewrite test runner to be easier to work with" 2024-03-28 23:57:02 -06:00
David Gonzalez Martin
25114a053d Rewrite test runner to be easier to work with 2024-03-28 22:03:41 -06:00
David Gonzalez Martin
c1ec772654 zig fmt 2024-03-27 23:46:47 -06:00
David Gonzalez Martin
dfcda18a70 Improve clang integration
LLVM can now be compiled with nat
2024-03-27 16:51:20 -06:00
David Gonzalez Martin
328b907506 Tiny C++ integration 2024-03-24 20:38:26 -06:00
David Gonzalez Martin
f7e0435931 Add libcxx and libunwind 2024-03-24 17:47:27 -06:00
David Gonzalez Martin
809de4411d Misc advancements towards compiling C++ 2024-03-24 14:50:18 -06:00
David Gonzalez Martin
53494373ed Fix UnpinnedArray unspeakable bug 2024-03-24 09:43:41 -06:00
David Gonzalez Martin
ac3923f4d3 Implement basic C ABI support 2024-03-24 08:58:05 -06:00
David Gonzalez Martin
3f0e8079eb Implement first C ABI test 2024-03-14 10:27:48 -06:00
David Gonzalez Martin
55dd12b12f Make path for C ABI tests 2024-03-13 20:57:09 -06:00
David Gonzalez Martin
1954c643f0 Try to link system LLVM libraries 2024-03-12 23:36:19 -06:00
David Gonzalez Martin
37cb207d60 Some C improvements 2024-03-09 12:10:40 -06:00
David Gonzalez Martin
8e4fc03d1b Modernize std API 2024-03-08 16:35:40 -06:00