add default syntax for get_parser for compatibility with kerncraft

This commit is contained in:
JanLJL
2025-03-04 17:44:02 +01:00
parent 379e422290
commit 1be2f320b9
2 changed files with 2 additions and 1 deletions

View File

@@ -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":

View File

@@ -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