additions from backlog, issues, osgameclones

This commit is contained in:
Trilarion
2021-09-15 10:11:05 +02:00
parent 03fe991683
commit 219a89f164
58 changed files with 604 additions and 195 deletions

View File

@ -98,7 +98,7 @@ class EntryTransformer(lark.Transformer):
def start(self, x):
return x
# TODO turns out ValueWithComment does not really solve problem but actually creates even some, are there alternatives like inheriting from string?
class ValueWithComment:
"""
All our property values can have (optional) comments. This is the class that represents them to us and implements
@ -130,6 +130,8 @@ class ValueWithComment:
else:
return '{}'.format(self.value)
def __hash__(self):
return hash(self.value)
def parse(parser, transformer, content):
tree = parser.parse(content)