Commit Graph

145 Commits

Author SHA1 Message Date
4a33e7d123 Fix binop parsing from last commit 2025-08-04 17:51:32 +03:00
79ecb3b9ba Fix token-ranges for derefs and binop rhs 2025-08-04 14:30:36 +03:00
1438ba7bd1 Add semantic highlighting for binop params 2025-08-03 19:39:40 +03:00
d9911a8ff5 Fix TokenRange for assoc function self 2025-08-03 19:27:54 +03:00
018f3e2561 Fix function signature meta for extern functions 2025-08-03 18:45:27 +03:00
c7f1b81c9d Improve associated functions so you can now call them on numbers too 2025-08-03 01:33:52 +03:00
101ee2d8e5 Account for intrinsic associated functions with autocomplete 2025-08-03 01:00:02 +03:00
4ea0913842 Add autocomplete for associated functions and struct fields 2025-08-03 00:13:53 +03:00
bb9f69ee53 Add autocomplete for imports 2025-08-02 23:03:11 +03:00
8595da0c30 Make LSP use a more general analysis structure 2025-08-02 21:11:33 +03:00
658450993a Fix hover types for for-loops 2025-08-02 20:10:48 +03:00
b71c253942 Add types to hovers in LSP, fix around and add metas 2025-07-29 21:39:14 +03:00
7d3aaa143a Start adding type-information to tooltips 2025-07-29 20:44:15 +03:00
6619f1f0a9 Add simple error diagnostic from parser 2025-07-29 19:53:12 +03:00
c262418f88 Add comments and whitespace to lexer 2025-07-29 16:41:07 +03:00
2dd3a5904b Add whitespace to lexer 2025-07-29 16:37:58 +03:00
735c3231b1 Make macros generate globals 2025-07-28 23:49:22 +03:00
33ed1fd813 Add macro call convention 2025-07-28 22:18:30 +03:00
beaba4e7de Mangle function names, except for user defined externs 2025-07-28 20:25:36 +03:00
b643c13582 Use metadata instead of names for allocator identification 2025-07-28 19:22:03 +03:00
726251e39c Fix warnings, cleanup 2025-07-28 18:22:51 +03:00
a4e18af983 Add intrinsic bit-operators 2025-07-28 12:16:14 +03:00
49084ea0af Add AST -> MIR for bitwise-operations and or 2025-07-28 11:59:20 +03:00
516833d26f Add parsing for bitwise or/and, xor and bitshifts 2025-07-28 11:53:50 +03:00
cea756b2ad Fix derefs with casts 2025-07-28 01:36:35 +03:00
1f56fa5dc3 Fix using self within self 2025-07-28 00:41:35 +03:00
dc360ef196 Implement importing of associated functions with types 2025-07-27 23:28:24 +03:00
9d5a20e76a Allow pub-keyword for impl-block 2025-07-27 22:55:34 +03:00
a6a903a45d Allow borrows in associated function &self 2025-07-27 22:45:34 +03:00
676554b6a0 Improve deref parsing 2025-07-27 22:24:38 +03:00
1c83ca44ab Add dot syntax for associated functions 2025-07-27 21:29:39 +03:00
0613fc5c53 Allow associated functions to take self as owned 2025-07-27 18:41:51 +03:00
46668b7099 Fix a bunch of warnings 2025-07-27 18:11:18 +03:00
ab94bd7df0 Add AST -> MIR processing for associated functions 2025-07-27 03:08:34 +03:00
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
0196fb53ed Import binops while importing types as well 2025-07-26 13:18:55 +03:00
269de327b8 Allow importing types 2025-07-26 00:57:39 +03:00
12e2851a8b Add Not-Unary 2025-07-25 23:40:57 +03:00
307137d0d9 Fix a significant problem in how the typerefs aren't narrowed properly 2025-07-25 20:16:54 +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
ea8a833bdf Fix warnings and issues 2025-07-25 00:32:49 +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