From: ceriel Date: Tue, 24 Jan 1989 13:51:05 +0000 (+0000) Subject: be a bit more liberal with prefixes X-Git-Tag: release-5-5~2673 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=3a546eb8dd0d448954b2e5b4406872b723c1f857;p=ack.git be a bit more liberal with prefixes --- diff --git a/mach/i386/as/mach4.c b/mach/i386/as/mach4.c index b8da7279e..51ac50ebc 100644 --- a/mach/i386/as/mach4.c +++ b/mach/i386/as/mach4.c @@ -7,11 +7,15 @@ */ operation - : { address_long = 1; operand_long = 1; } - prefix oper + : + prefix oper + { address_long = 1; operand_long = 1; } + | prefix1 /* to allow for only prefixes on a line */ ; prefix : /* empty */ - | prefix PREFIX + | prefix1 + ; +prefix1: prefix PREFIX { if ($2 == 0146) operand_long = ! operand_long; if ($2 == 0147) address_long = ! address_long; emit1($2);