be a bit more liberal with prefixes
authorceriel <none@none>
Tue, 24 Jan 1989 13:51:05 +0000 (13:51 +0000)
committerceriel <none@none>
Tue, 24 Jan 1989 13:51:05 +0000 (13:51 +0000)
mach/i386/as/mach4.c

index b8da727..51ac50e 100644 (file)
@@ -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);