]> git.saurik.com Git - bison.git/blobdiff - data/java.m4
Allow specification of semantic predicates.
[bison.git] / data / java.m4
index 781a7df20885bad3024c30623908d6525a45baa1..32ff2156411649f51621b35c9fe1f95a0bc41bb3 100644 (file)
@@ -169,6 +169,13 @@ m4_define([b4_case], [  case $1:
   break;
     ])
 
+# b4_predicate_case(LABEL, CONDITIONS)
+# ------------------------------------
+m4_define([b4_predicate_case], [  case $1:
+     if (! ($2)) YYERROR;
+    break;
+    ])
+
 
 ## ---------------- ##
 ## Default values.  ##