]> git.saurik.com Git - bison.git/blobdiff - src/state.h
* src/state.h (SHIFT_DISABLE, SHIFT_IS_DISABLED): New.
[bison.git] / src / state.h
index 535742971c0ecdddfeebab424db58e484eecad70..3bf9022f0135189204c079d518eaf6a1515c17e0 100644 (file)
@@ -146,6 +146,15 @@ typedef struct shifts
 #define SHIFT_IS_ERROR(Shifts, Shift) \
   (SHIFT_SYMBOL (Shifts, Shift) == error_token_number)
 
+/* When resolving a SR conflicts, if the reduction wins, the shift is
+   disabled.  */
+
+#define SHIFT_DISABLE(Shifts, Shift) \
+  (Shifts->shifts[Shift] = 0)
+
+#define SHIFT_IS_DISABLED(Shifts, Shift) \
+  (Shifts->shifts[Shift] == 0)
+
 
 /*-------.
 | Errs.  |