126 Commits

Author SHA1 Message Date
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
David Gonzalez Martin
367b004749 add system includes 2024-03-02 23:51:08 -06:00
David Gonzalez Martin
0c603f1ca3 Compile and link with musl libc 2024-03-02 23:42:56 -06:00
David Gonzalez Martin
4538c395f9 Avoid Zig standard library bloat
Fixes #101
2024-03-01 10:12:38 -06:00
David Gonzalez Martin
cd7ab8455a Introduce std tests and disable clang libs 2024-02-27 17:29:32 -06:00
David Gonzalez Martin
0f13c82072 Disable non-root package tests 2024-02-27 13:52:23 -06:00
David Gonzalez Martin
e9e5165345 Implement basic tests and error unions 2024-02-27 10:58:05 -06:00
David Gonzalez Martin
b185b0b8b8 fix macos build 2024-02-24 11:20:25 -06:00
David Gonzalez Martin
6ae42e05c5 Make build work 2024-02-21 18:32:42 -06:00
David Gonzalez Martin
ff21b7d698 remove assert builtin 2024-02-20 20:12:20 -06:00
David Gonzalez Martin
91038a2c65 Prefer trap to unreachable 2024-02-20 20:06:37 -06:00
David Gonzalez Martin
1ecf7fa908 Pass all tests on Apple M1 2024-02-20 19:55:42 -06:00
David Gonzalez Martin
f3de0b3110 Make some MacOS tests pass 2024-02-18 10:52:33 -06:00
David Gonzalez Martin
0875459581 Move LLVM interface code out of bootstrap 2024-02-18 09:14:46 -06:00
David Gonzalez Martin
e9991b8d9a pass more tests 2024-02-18 08:26:17 -06:00
David Gonzalez Martin
177bd18eeb Fix pointer to array issue 2024-02-12 19:57:03 -06:00
David Gonzalez Martin
bd6c637f7c Fix range compute 2024-02-12 12:53:05 -06:00
David Gonzalez Martin
13606f7d56 implement assert builtin 2024-02-12 08:48:23 -06:00