mirror of
https://github.com/RRZE-HPC/OSACA.git
synced 2026-01-06 19:20:07 +01:00
add support for :: delimiter in x86 labels and identifiers
This commit is contained in:
@@ -38,14 +38,18 @@ class ParserX86ATT(BaseParser):
|
||||
rest = pp.Word(pp.alphanums + '$_.+-')
|
||||
identifier = pp.Group(
|
||||
pp.Optional(id_offset).setResultsName('offset')
|
||||
+ pp.Combine(first + pp.Optional(rest)).setResultsName('name')
|
||||
+ pp.Combine(pp.delimitedList(
|
||||
pp.Combine(first + pp.Optional(rest)), delim='::'), joinString='::'
|
||||
).setResultsName('name')
|
||||
+ pp.Optional(relocation).setResultsName('relocation')
|
||||
).setResultsName('identifier')
|
||||
# Label
|
||||
rest = pp.Word(pp.alphanums + '$_.+-()')
|
||||
label_rest = pp.Word(pp.alphanums + '$_.+-()')
|
||||
label_identifier = pp.Group(
|
||||
pp.Optional(id_offset).setResultsName('offset')
|
||||
+ pp.Combine(first + pp.Optional(rest)).setResultsName('name')
|
||||
+ pp.Combine(pp.delimitedList(
|
||||
pp.Combine(first + pp.Optional(label_rest)), delim='::'), joinString='::'
|
||||
).setResultsName('name')
|
||||
+ pp.Optional(relocation).setResultsName('relocation')
|
||||
).setResultsName('identifier')
|
||||
numeric_identifier = pp.Group(
|
||||
|
||||
Reference in New Issue
Block a user