mirror of
https://github.com/RRZE-HPC/OSACA.git
synced 2026-01-04 18:20:09 +01:00
singelton for isa parsers
This commit is contained in:
@@ -15,9 +15,12 @@ class BaseParser(object):
|
||||
SEGMENT_EXT_ID = 'segment_extension'
|
||||
INSTRUCTION_ID = 'instruction'
|
||||
OPERANDS_ID = 'operands'
|
||||
_parser_constructed = False
|
||||
|
||||
def __init__(self):
|
||||
self.construct_parser()
|
||||
if not self._parser_constructed:
|
||||
self.construct_parser()
|
||||
self._parser_constructed = True
|
||||
|
||||
@staticmethod
|
||||
def detect_ISA(file_content):
|
||||
|
||||
Reference in New Issue
Block a user