Allow underscores in numeric literals

Fixes #539

Changes \@'s output to start with "_u", not "_", so it will be valid within labels but not numerics
This commit is contained in:
Rangi
2020-12-09 11:01:51 -05:00
committed by Eldred Habert
parent 58739b0bf2
commit af530859f0
7 changed files with 47 additions and 22 deletions

View File

@@ -1,19 +1,19 @@
warning: unique-id.asm(12) -> unique-id.asm::m(4): [-Wuser]
_1
_u1
warning: unique-id.asm(12) -> unique-id.asm::m(5) -> unique-id.asm::m::REPT~1(6): [-Wuser]
_2
_u2
warning: unique-id.asm(12) -> unique-id.asm::m(5) -> unique-id.asm::m::REPT~2(6): [-Wuser]
_3
_u3
warning: unique-id.asm(12) -> unique-id.asm::m(8): [-Wuser]
_1
_u1
warning: unique-id.asm(14) -> unique-id.asm::m(4): [-Wuser]
_4
_u4
warning: unique-id.asm(14) -> unique-id.asm::m(5) -> unique-id.asm::m::REPT~1(6): [-Wuser]
_5
_u5
warning: unique-id.asm(14) -> unique-id.asm::m(5) -> unique-id.asm::m::REPT~2(6): [-Wuser]
_6
_u6
warning: unique-id.asm(14) -> unique-id.asm::m(8): [-Wuser]
_4
_u4
FATAL: unique-id.asm(15):
Macro argument '\@' not defined
while expanding symbol "print"