Skip to content

Commit

Permalink
yeet expression from symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
AngheloAlf committed Aug 30, 2023
1 parent bebeff7 commit 43ae9de
Show file tree
Hide file tree
Showing 10 changed files with 241,046 additions and 482,097 deletions.
5 changes: 0 additions & 5 deletions src/mapfile_parser/mapfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ class Symbol:
vram: int
size: int|None = None # in bytes
vrom: int|None = None
expression: str|None = None

def getVramStr(self) -> str:
return f"0x{self.vram:08X}"
Expand All @@ -84,9 +83,6 @@ def serializeSize(self) -> str|None:
return None
return f"0x{self.size:X}"

def serializeExpression(self) -> str|None:
return self.expression

@staticmethod
def printCsvHeader():
print(Symbol.toCsvHeader())
Expand All @@ -108,7 +104,6 @@ def toJson(self) -> dict[str, Any]:
"vram": self.getVramStr(),
"size": self.serializeSize(),
"vrom": self.getVromStr(),
"expression": self.serializeExpression()
}

return result
Expand Down
86,685 changes: 28,895 additions & 57,790 deletions tests/output/animalforest.jp.json

Large diffs are not rendered by default.

10,617 changes: 3,539 additions & 7,078 deletions tests/output/drmario64.cn.json

Large diffs are not rendered by default.

Loading

0 comments on commit 43ae9de

Please sign in to comment.