This commit is contained in:
2026-06-24 17:24:04 +02:00
commit 00c38a12d9
41 changed files with 7289 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
from __future__ import annotations
from dataclasses import dataclass
class Int:
pass
class Bool:
pass
class Unit:
pass
Int_Instance = Int()
Bool_Instance = Bool()
Unit_Instance = Unit()
class Any(Int, Bool, Unit):
pass
Any_Instance = Any()
type Type = Int | Bool | Unit | FunType
ParamsType = Type | list[Type | list['ParamsType']]
@dataclass
class FunType:
params: ParamsType
result: Type