Commit Graph

71 Commits

Author SHA1 Message Date
09f1784810 Update AssociatedFunctionBlock parsing 2025-07-27 02:56:47 +03:00
5eef265652 Add parsing for associated function calls 2025-07-27 02:54:01 +03:00
a253c032d8 Add parsing for &self and &mut self 2025-07-27 02:49:08 +03:00
bee31f4b92 Add associated function parsing partially 2025-07-27 02:33:11 +03:00
12e2851a8b Add Not-Unary 2025-07-25 23:40:57 +03:00
0b3ee3bf92 Refactor some more 2025-07-25 15:55:14 +03:00
b288fee2d5 Fix parsing of explicitly typed literals 2025-07-25 03:04:04 +03:00
6634597c92 Add ability to specify variable types in let 2025-07-25 00:41:38 +03:00
dbd539fb76 Improve typed literal parsing somewhat 2025-07-25 00:14:03 +03:00
5b46e973d4 Add types to number-literals 2025-07-24 23:04:35 +03:00
0e63219205 Implement shorthand for array definition 2025-07-24 22:04:48 +03:00
be3c415a57 Implement void returns 2025-07-24 21:54:55 +03:00
22160b0802 Add octal, binary and hexadecimal representation 2025-07-24 21:33:03 +03:00
a09bccb255 Add hexadecimal numerics 2025-07-24 21:24:17 +03:00
27db67dd99 Possibly fix typechecking for binops 2025-07-24 18:42:10 +03:00
50af50c43f Typecheck custom binops 2025-07-24 13:07:49 +03:00
5ef329d570 Add custom binop parsing 2025-07-24 12:29:39 +03:00
c4017715d2 Codegen for/while loops 2025-07-23 21:07:12 +03:00
a251be2715 Make loops typecheck and type infere 2025-07-23 20:53:11 +03:00
1a5e3ef1d9 Add loops ast -> mir 2025-07-23 20:29:13 +03:00
ef4964ed86 Add parsing for for/while loops 2025-07-23 20:14:35 +03:00
431aae0b0d Add lexing to loops 2025-07-23 19:52:46 +03:00
b9459a19bb Add div/mod parsing 2025-07-23 14:59:51 +03:00
9df1593de9 Fix decimal parsing, add u128-support for integer parsing 2025-07-22 23:20:38 +03:00
5c5c9c5f7b Improve error for statement-failure 2025-07-22 20:54:06 +03:00
1224c612c7 Codegen & compile char, change *str to *char 2025-07-22 15:07:33 +03:00
9b9398ac26 Add lexing of escaped characters, add parsing of characters 2025-07-22 14:57:09 +03:00
c4ab4ac0b3 Add parsing of casting 2025-07-21 21:23:37 +03:00
471c2eaf87 Fix struct-parsing interfering with if-parsing 2025-07-21 20:52:39 +03:00
069c277516 Update String to be *str 2025-07-21 19:32:40 +03:00
eb99a4c74e Fix range in literals 2025-07-21 19:18:39 +03:00
7c7dde03f9 Fix error reporting on No-Main-Function and add fp compilation 2025-07-21 16:44:16 +03:00
bcc93dd60c Add parsing to floats 2025-07-21 16:18:14 +03:00
d65b0153a1 Implement unary operators as syntax sugar 2025-07-21 15:12:49 +03:00
3b43689650 Add parsing pointer-type 2025-07-21 13:25:01 +03:00
ce645519ce Fix NamedVarRefrence tokenrange 2025-07-21 10:52:33 +03:00
60818842a5 Add borrow mutability 2025-07-21 10:21:25 +03:00
8da32c25c5 Make borrows work as function parameters as well 2025-07-21 10:07:56 +03:00
ba8ee770fb Parse deref and borrow 2025-07-20 21:25:08 +03:00
e8e2b4cebd Implement parsing of multiple parameters 2025-07-20 15:32:56 +03:00
292688a840 Fix some warnings 2025-07-17 20:26:01 +03:00
ce2278ce45 Fix using custom type-labels for e.g. return type 2025-07-17 20:20:07 +03:00
0f782dcb96 Fix parse error returning the token after the error 2025-07-17 20:16:37 +03:00
c19384d77b Refactor a bit 2025-07-16 22:38:19 +03:00
3870b421a9 Refactor indexing/accessing a bit, no mutability 2025-07-16 22:04:11 +03:00
017b474f0c Fix StructValueIndex never constructed 2025-07-16 19:02:23 +03:00
d9a1e8456d Add struct indexing parsing 2025-07-15 21:28:02 +03:00
c83d53ae53 Add struct type and expression parsing 2025-07-15 21:19:37 +03:00
5fca72a3f9 Add lexing support for structs 2025-07-15 20:37:41 +03:00
fa4df50a04 Fix linking so that non-imported functions don't bother main-module 2025-07-14 22:22:55 +03:00