mirror of
https://github.com/RRZE-HPC/OSACA.git
synced 2026-01-04 18:20:09 +01:00
Fixed semantic and marker tests. Now only dump needs to be adjusted
This commit is contained in:
@@ -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})"
|
||||
|
||||
Reference in New Issue
Block a user