labels may now start with numbers

This commit is contained in:
Julian Hammer
2020-08-03 15:53:29 +02:00
parent fa3056f364
commit da1d39e8e6

View File

@@ -26,7 +26,7 @@ class ParserX86ATT(BaseParser):
# Define x86 assembly identifier
relocation = pp.Combine(pp.Literal('@') + pp.Word(pp.alphas))
id_offset = pp.Word(pp.nums) + pp.Suppress(pp.Literal('+'))
first = pp.Word(pp.alphas + '_.', exact=1)
first = pp.Word(pp.alphanums + '_.', exact=1)
rest = pp.Word(pp.alphanums + '$_.+-')
identifier = pp.Group(
pp.Optional(id_offset).setResultsName('offset')