mirror of
https://github.com/RRZE-HPC/OSACA.git
synced 2025-12-16 09:00:05 +01:00
add default syntax for get_parser for compatibility with kerncraft
This commit is contained in:
@@ -24,7 +24,7 @@ __all__ = [
|
||||
]
|
||||
|
||||
|
||||
def get_parser(isa, syntax):
|
||||
def get_parser(isa, syntax="ATT"):
|
||||
if isa.lower() == "x86":
|
||||
return ParserX86ATT() if syntax == "ATT" else ParserX86Intel()
|
||||
elif isa.lower() == "aarch64":
|
||||
|
||||
@@ -3,6 +3,7 @@ from collections import OrderedDict
|
||||
from enum import Enum
|
||||
from functools import partial
|
||||
|
||||
from osaca.parser import get_parser
|
||||
from osaca.parser.instruction_form import InstructionForm
|
||||
from osaca.parser.directive import DirectiveOperand
|
||||
from osaca.parser.identifier import IdentifierOperand
|
||||
|
||||
Reference in New Issue
Block a user