]> granicus.if.org Git - yasm/commitdiff
Eliminate conflicts by setting associativity (and precedence too).
authorPeter Johnson <peter@tortall.net>
Thu, 5 Jul 2001 09:50:51 +0000 (09:50 -0000)
committerPeter Johnson <peter@tortall.net>
Thu, 5 Jul 2001 09:50:51 +0000 (09:50 -0000)
svn path=/trunk/yasm/; revision=115

modules/parsers/nasm/bison.y.in
modules/parsers/nasm/nasm-bison.y
src/bison.y.in
src/parsers/nasm/bison.y.in
src/parsers/nasm/nasm-bison.y

index f282e8b51cde7b40140064073889246b15f82d99..0c155b2245acbc03b02e2fbe9785b15787feef22 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: bison.y.in,v 1.17 2001/07/05 09:32:58 mu Exp $
+/* $Id: bison.y.in,v 1.18 2001/07/05 09:50:51 peter Exp $
  * Main bison parser
  *
  *  Copyright (C) 2001  Peter Johnson, Michael Urman
@@ -90,8 +90,13 @@ extern void yyerror(char *);
 %type <syminfo> immlabel
 %type <sym> label_id
 
+%left '|'
+%left '^'
+%left '&'
+%left LEFT_OP RIGHT_OP
 %left '-' '+'
-%left '*' '/'
+%left '*' '/' '%'
+%nonassoc '~'
 
 %%
 input: /* empty */
index 5dbfced1ceadc0fa342ee66ef1bdff511171452a..f3132d3a165820bfa5d5bae50ba91b41d50c0119 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: nasm-bison.y,v 1.17 2001/07/05 09:32:58 mu Exp $
+/* $Id: nasm-bison.y,v 1.18 2001/07/05 09:50:51 peter Exp $
  * Main bison parser
  *
  *  Copyright (C) 2001  Peter Johnson, Michael Urman
@@ -90,8 +90,13 @@ extern void yyerror(char *);
 %type <syminfo> immlabel
 %type <sym> label_id
 
+%left '|'
+%left '^'
+%left '&'
+%left LEFT_OP RIGHT_OP
 %left '-' '+'
-%left '*' '/'
+%left '*' '/' '%'
+%nonassoc '~'
 
 %%
 input: /* empty */
index f282e8b51cde7b40140064073889246b15f82d99..0c155b2245acbc03b02e2fbe9785b15787feef22 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: bison.y.in,v 1.17 2001/07/05 09:32:58 mu Exp $
+/* $Id: bison.y.in,v 1.18 2001/07/05 09:50:51 peter Exp $
  * Main bison parser
  *
  *  Copyright (C) 2001  Peter Johnson, Michael Urman
@@ -90,8 +90,13 @@ extern void yyerror(char *);
 %type <syminfo> immlabel
 %type <sym> label_id
 
+%left '|'
+%left '^'
+%left '&'
+%left LEFT_OP RIGHT_OP
 %left '-' '+'
-%left '*' '/'
+%left '*' '/' '%'
+%nonassoc '~'
 
 %%
 input: /* empty */
index f282e8b51cde7b40140064073889246b15f82d99..0c155b2245acbc03b02e2fbe9785b15787feef22 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: bison.y.in,v 1.17 2001/07/05 09:32:58 mu Exp $
+/* $Id: bison.y.in,v 1.18 2001/07/05 09:50:51 peter Exp $
  * Main bison parser
  *
  *  Copyright (C) 2001  Peter Johnson, Michael Urman
@@ -90,8 +90,13 @@ extern void yyerror(char *);
 %type <syminfo> immlabel
 %type <sym> label_id
 
+%left '|'
+%left '^'
+%left '&'
+%left LEFT_OP RIGHT_OP
 %left '-' '+'
-%left '*' '/'
+%left '*' '/' '%'
+%nonassoc '~'
 
 %%
 input: /* empty */
index 5dbfced1ceadc0fa342ee66ef1bdff511171452a..f3132d3a165820bfa5d5bae50ba91b41d50c0119 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: nasm-bison.y,v 1.17 2001/07/05 09:32:58 mu Exp $
+/* $Id: nasm-bison.y,v 1.18 2001/07/05 09:50:51 peter Exp $
  * Main bison parser
  *
  *  Copyright (C) 2001  Peter Johnson, Michael Urman
@@ -90,8 +90,13 @@ extern void yyerror(char *);
 %type <syminfo> immlabel
 %type <sym> label_id
 
+%left '|'
+%left '^'
+%left '&'
+%left LEFT_OP RIGHT_OP
 %left '-' '+'
-%left '*' '/'
+%left '*' '/' '%'
+%nonassoc '~'
 
 %%
 input: /* empty */