将 .py 和 .pyi 后缀名改为了 .vp 和 .vpi 后缀名

This commit is contained in:
2026-07-30 16:33:56 +08:00
parent f79c8ca643
commit cfc30d735c
322 changed files with 246 additions and 31772 deletions

View File

@@ -0,0 +1,24 @@
import stdint
import t, c
A: t.CChar | t.CPtr = "你好"
class BIT_TEST(t.Object):
a: t.CInt | t.Bit(1)
b: t.CInt | t.Bit(1)
c: t.CInt | t.Bit(1)
d: t.CInt | t.Bit(5)
class OOP_TEST(t.Object):
a: t.CInt
def __init__(self):
self.a = 0
def __call__(self) -> stdint.UINT:
return 123
class ENUM_TEST(t.CEnum):
A: t.State = 0
B: t.State
C: t.State
Len: t.State