Sofia teascade
teascade pushed to char at teascade/reid-llvm 2025-07-22 14:07:56 +02:00
1224c612c7 Codegen & compile char, change *str to *char
108cf6efa5 Add FCmp to codegen
9b9398ac26 Add lexing of escaped characters, add parsing of characters
e220900ac3 Start adding chars
9c0d373f9d Fix casting to same type
Compare 6 commits »
teascade pushed to main at teascade/reid-llvm 2025-07-22 13:13:52 +02:00
c03a5188ea Finish casting codegen
e73b939de0 Add all cast instructions to lib
a6c9752883 Use unordered comparisons in floats
104205ee5d Type-infer and check typecasting
3378f556ec Add AST -> MIR for typecasting
Compare 5 commits »
teascade pushed to main at teascade/reid-llvm 2025-07-19 12:56:59 +02:00
f2c38d42b9 Add variable debug declarations to all variables
59ce454f91 Store all variables in pointers
94fbd51d35 Commit out adding records for now
a5bca6be82 Improve debug info debug logging somewhat
e12d0be08b Start adding debug-records
Compare 7 commits »
teascade pushed to main at teascade/reid-llvm 2025-07-18 23:30:55 +02:00
e1d014bcc2 Fix warnings
f81fc7e925 Update LLVM compilation guide to use ninja
9749a29680 Upgrade to LLVM 20.1
92f12e90eb Make debug information work
b169e67ca4 Add debug locations to returns
Compare 9 commits »
teascade pushed to main at teascade/reid-llvm 2025-07-18 00:22:56 +02:00
9bb4f97e6b Start adding debug information
teascade pushed to main at teascade/reid-llvm 2025-07-17 19:26:08 +02:00
292688a840 Fix some warnings
teascade pushed to main at teascade/reid-llvm 2025-07-17 19:20:52 +02:00
ce2278ce45 Fix using custom type-labels for e.g. return type
0f782dcb96 Fix parse error returning the token after the error
6dfd98eba3 Use true source for error formatting
df4febf1ef Add formatting of the printed lines to errors
9d1b18f083 Add FullToken array to error raporting
Compare 9 commits »
teascade pushed to main at teascade/reid-llvm 2025-07-17 11:38:06 +02:00
cb2604dc22 Update readme
teascade pushed to main at teascade/reid-llvm 2025-07-17 11:36:21 +02:00
c07e488f48 Update state.load a bit to make a better default for it
8ffb3baa8d Add Any-mutability for StackValues
8abee593f0 Fix value transfer in structs and arrays
Compare 3 commits »
teascade pushed to main at teascade/reid-llvm 2025-07-16 23:05:56 +02:00
9a4f0dc5d8 Allow for cloning inner values
965ad5797f Implement rudamentary borrow
e4ce897f94 Fix expression-indexing
Compare 3 commits »
teascade pushed to main at teascade/reid-llvm 2025-07-16 22:22:17 +02:00
d2cf97af66 Move should_load to separate State
d034754202 Possibly fix array_structs
c41aab33a9 Add optional data to PassState Scope
c19384d77b Refactor a bit
3870b421a9 Refactor indexing/accessing a bit, no mutability
Compare 5 commits »
teascade pushed to main at teascade/reid-llvm 2025-07-16 20:19:52 +02:00
4ad871ff3d Remove dbg prints
d4616ea025 Add array_structs.reid to test arrays and structs together
79c98a18f7 Fix some warnings, remove unused code
1eb3e8c095 Refactor IndexedVariableReference being a bit smarter
dbd048c21c Fix struct indexing when setting a field
Compare 8 commits »
teascade pushed to main at teascade/reid-llvm 2025-07-16 16:53:51 +02:00
233ddb60f7 Fix struct gep return type, refactor a bit
2a879b5ef4 Implement codegen for structs
d1a37058df Fix warnings
29996c4a30 Add builder methods to create custom types
31185d921e Properly implement structs in lib
Compare 5 commits »
teascade pushed to main at teascade/reid-llvm 2025-07-15 23:20:39 +02:00
97fc468d78 Update how struct access is displayed
teascade pushed to main at teascade/reid-llvm 2025-07-15 23:17:04 +02:00
77439ee34a Implement typechecking for structs
aafab49f82 Fix struct access type inference
7075b6f73f Update order of prints
1d1e574136 Implement type inference for structs
e13b6349f0 Add ScopeTypes to Pass
Compare 5 commits »
teascade pushed to main at teascade/reid-llvm 2025-07-15 21:03:57 +02:00
b012a46e91 Process Struct ASTs into MIR
f139a5ad6c Add MIR support for struct types
d9a1e8456d Add struct indexing parsing
c83d53ae53 Add struct type and expression parsing
5fca72a3f9 Add lexing support for structs
Compare 6 commits »
teascade pushed to main at teascade/reid-llvm 2025-07-15 19:09:47 +02:00
1acaa29a12 Fix module scopes being linked
6788ef1690 Use AvailableExternally-linkage for externs for imports
6f8c02ac04 Add compilation time to cli
Compare 3 commits »
teascade pushed to main at teascade/reid-llvm 2025-07-15 18:35:51 +02:00
dc9450f64a Fix libtest.sh
teascade pushed to main at teascade/reid-llvm 2025-07-15 02:13:24 +02:00
19c883ea33 Add e2e tests
teascade pushed to main at teascade/reid-llvm 2025-07-15 00:20:51 +02:00
824978de49 Remove array binary