Sofia teascade
teascade pushed to main at teascade/reid-llvm 2025-07-15 00:17:18 +02:00
28d632d51c Add Makefile by @neon, fix array typechecking during typeinference
teascade pushed to main at teascade/reid-llvm 2025-07-15 00:16:46 +02:00
29200bd4ef Add Makefile by @jens, fix array typechecking during typeinference
bcad9b57fe Make the compiler produce .o/.asm/.ll according to input file name
Compare 2 commits »
teascade pushed to main at teascade/reid-llvm 2025-07-14 22:43:16 +02:00
5b5ec48b8d Put all debug prints behind debug-assertions
teascade pushed to main at teascade/reid-llvm 2025-07-14 21:57:39 +02:00
0e5f12e0e2 Update README
teascade pushed to main at teascade/reid-llvm 2025-07-14 21:56:54 +02:00
587aa1d7f2 Fix warnings
teascade pushed to main at teascade/reid-llvm 2025-07-14 21:56:07 +02:00
1e759d49c7 Fix issue in type-inference pass about function params not registering
teascade pushed to main at teascade/reid-llvm 2025-07-14 21:52:57 +02:00
5acd1624fd Move test to inside-executable, and add tests that test it compiles
3f90b46dc8 Include stdlib in executable
Compare 2 commits »
teascade pushed to main at teascade/reid-llvm 2025-07-14 21:23:11 +02:00
fa4df50a04 Fix linking so that non-imported functions don't bother main-module
2b47c4efc7 Make linking modules together work, fix printing modules
848347e4a8 Add importer pass, make importer import module properly
a71843dfe9 Implement import-pass
464156b2dc Fix imports in MIR
Compare 13 commits »
teascade pushed to main at teascade/reid-llvm 2025-07-14 16:55:14 +02:00
83475b144c Codegen strings
73a3b15fb6 Add AST -> MIR for strings
b9dfa9b1ce Add parsing of string literals
d5b0e3ebf7 Add lexing of strings
Compare 4 commits »
teascade pushed to main at teascade/reid-llvm 2025-07-14 16:26:44 +02:00
e15f77d9de Update libtest and make examples/cli.rs
bc1cc99bcc Update examples
b64cdc4c71 Fix if-statement block return type evaluation
Compare 3 commits »
teascade pushed to main at teascade/reid-llvm 2025-07-14 01:31:15 +02:00
bad4713779 Fix index out of bounds off-by-one error
teascade pushed to main at teascade/reid-llvm 2025-07-14 01:28:10 +02:00
c2a087785e Update README and lib docs
1b9f3dbca0 Fix warnings
Compare 2 commits »
teascade pushed to main at teascade/reid-llvm 2025-07-14 01:24:12 +02:00
86eab29173 Make nested arrays work
5d06ecb874 Add broken support for nested arrays
d2587df4c9 Add mutability to arrays
d99c450e61 Fix some warnings
cbb1be1161 Implement GEP instead of the weird thing before
Compare 5 commits »
teascade pushed to main at teascade/reid-llvm 2025-07-13 21:05:08 +02:00
312a777203 Get arrays to compile while still not supporting mutability for a bit
d62d6e2845 Actually finish array-support for lib
a2e52e0bd2 Add Array support to llvm-lib
Compare 3 commits »
teascade pushed to main at teascade/reid-llvm 2025-07-13 19:15:16 +02:00
515c031f19 Finish type checking and inferrence for arrays
teascade pushed to main at teascade/reid-llvm 2025-07-13 18:39:51 +02:00
b14a62bc34 Add typechecking for arrays
4f8153643b Perform type inference for array and indexing expressions
64f07002b4 Update how array is displayed when printed
a18a5b4199 Continue progress, make set-statements as todos for later
10cf9341c5 Add return type for index and array expressions
Compare 7 commits »
teascade pushed to main at teascade/reid-llvm 2025-07-13 17:02:38 +02:00
bf8baa7cd4 Add parsing for setting indexed values
df6b5ef34b Add array indexing
8f95d445c0 Add array expression parsing
887071eeb6 Add parsing of array type
4e8228f903 Move binop type resolution to common implementation
Compare 5 commits »
teascade pushed to main at teascade/reid-llvm 2025-07-13 15:31:48 +02:00
a8ed7577a8 Move type checking properly to the typecheck-stage
teascade pushed to main at teascade/reid-llvm 2025-07-13 14:58:34 +02:00
92736e392e Refactor Type Hints -> Type Refs
teascade pushed to main at teascade/reid-llvm 2025-07-13 14:55:26 +02:00
f3f47831e9 Split type inference to it's very own pass
7d77e1df32 rename ScopeHint to TypeHint
0d631bfa89 Remove redundant TypeRef, add other optimizations
29e78cf1aa update errors
Compare 4 commits »