summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2018-12-29 20:13:35 -0800
committerH. Peter Anvin <hpa@zytor.com>2018-12-29 20:13:35 -0800
commit6a4f0b36c803f2028810022f6ad2d9c22d1483e7 (patch)
tree184b6f133b9be9282e69cf2292dd4642fbde8d46
parente88f752e67967033511a5121a54db47f639c39be (diff)
downloadnasm-6a4f0b36c803f2028810022f6ad2d9c22d1483e7.tar.gz
tokens.dat: TOKEN_SIZE sizes belong in inttwo, not in flags
TOKEN_SIZE size values ended up in the wrong place, which caused parser errors due to being mistaken as flags. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--asm/tokens.dat9
1 files changed, 8 insertions, 1 deletions
diff --git a/asm/tokens.dat b/asm/tokens.dat
index bd89d0a0..9f1513c4 100644
--- a/asm/tokens.dat
+++ b/asm/tokens.dat
@@ -31,6 +31,13 @@
##
## --------------------------------------------------------------------------
+# The token parameters are in the other:
+# TOKEN_TYPE, t_inttwo, t_flags, t_integer
+#
+# * is replaced with the token name converted to upper case.
+# {xxx*yyy} is replaced with the token name stripped from the prefix
+# xxx and suffix yyy before converting to upper case.
+
#
# Tokens other than instructions and registers
#
@@ -60,7 +67,7 @@ xrelease
bnd
nobnd
-% TOKEN_SIZE, 0, SIZE_*, S_*
+% TOKEN_SIZE, SIZE_*, 0, S_*
byte
word
dword