Fixed semantic and marker tests. Now only dump needs to be adjusted

This commit is contained in:
stefandesouza
2023-12-03 16:49:33 +01:00
parent 2c32ccf37a
commit 93ae586745
20 changed files with 204 additions and 181 deletions

View File

@@ -4,8 +4,8 @@ from osaca.parser.operand import Operand
class LabelOperand(Operand):
def __init__(self, name_id=None, comment_id=None):
super().__init__(name_id)
def __init__(self, name=None, comment_id=None):
super().__init__(name)
self._comment_id = comment_id
@property
@@ -25,7 +25,7 @@ class LabelOperand(Operand):
return self._comment_id.pop(0)
def __str__(self):
return f"LabelOperand(name_id={self._name_id}, comment={self._comment_id})"
return f"LabelOperand(name={self._name}, comment={self._comment_id})"
def __repr__(self):
return f"LabelOperand(name_id={self._name_id}, comment={self._comment_id})"
return f"LabelOperand(name={self._name}, comment={self._comment_id})"