Commit Graph

21 Commits

Author SHA1 Message Date
48a3eb0e85 Improve binop result calculation 2026-04-13 23:50:07 +03:00
57dc022241 Improve binop typechecking 2026-04-13 23:16:39 +03:00
51c54e375a Add better error raporting 2026-04-13 21:47:18 +03:00
28483812ea Allow implicit cast from char to int 2026-04-13 21:45:58 +03:00
e0f2a1620e Implicitly add cast if implicit cast is found 2026-04-13 21:36:44 +03:00
ee0e30934a Allow typechecker to perform implicit casts 2026-04-13 21:32:34 +03:00
c8d4b653da Fix bug with binop assignment typechecking 2026-04-13 21:24:34 +03:00
fa01b22b81 Add compilation of casts 2026-04-13 21:08:57 +03:00
810dd3595e Allow implicitly converting IntLiteralExpr to other int types 2026-04-13 20:15:48 +03:00
4baeaff705 Add rest of typechecking 2026-04-13 18:26:47 +03:00
d6b730945c Check binops 2026-04-13 18:17:33 +03:00
e3e0cd9f9f Check return type as well 2026-04-13 17:25:36 +03:00
3f4b8569ea Fix bug with parameter typechecking 2026-04-13 17:23:53 +03:00
185f25d412 Typecheck parameter types 2026-04-13 17:21:07 +03:00
a901806dfb Add a function to test if types are equal 2026-04-13 17:09:50 +03:00
8ec4e538f5 Fix a bug, add type kind 2026-04-13 16:56:33 +03:00
cf965dd47a Fix some bugs 2026-04-13 16:50:29 +03:00
85dbce112f Fill typechecking methods 2026-04-13 01:08:34 +03:00
d11da4d1e6 Make expressions return type on typecheck 2026-04-13 00:55:38 +03:00
902610aaea Add statement typecheckings 2026-04-13 00:54:14 +03:00
e45f120f1c Add typecheck-functions to AST 2026-04-13 00:35:14 +03:00