Support 'MACRO mac' as well as 'mac: MACRO' for defining macros

The new syntax is used in documentation, but
the old syntax is not yet deprecated.
This commit is contained in:
Rangi
2021-02-23 15:57:21 -05:00
committed by Eldred Habert
parent 3c5e1caa7c
commit 953f79c0d9
6 changed files with 59 additions and 19 deletions

15
test/asm/macro-syntax.asm Normal file
View File

@@ -0,0 +1,15 @@
old: MACRO ; comment
println "out with the ", \1
ENDM ; comment
MACRO new ; comment
println "in with the ", \1
ENDM ; comment
old 1
new 2
bad1: MACRO bad2 ; comment
println "which?"
ENDM ; comment