From 6a4f0b36c803f2028810022f6ad2d9c22d1483e7 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Sat, 29 Dec 2018 20:13:35 -0800 Subject: 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 --- asm/tokens.dat | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 -- cgit v1.2.1