Initial commit

This commit is contained in:
2020-01-30 22:31:36 +01:00
commit d4b4be940c
23 changed files with 1694 additions and 0 deletions

13
pjvm/jtypes/jtype.py Normal file
View File

@@ -0,0 +1,13 @@
class JType:
j_base_type: str
j_type: str
def __init__(self, value):
raise NotImplementedError()
def instance_of(self, other: "JType") -> bool:
if self.j_type == other.j_type:
return True
# TODO inheritance check
return False