From 5b75838211f16d9c88fb1bae3193e3693a1bee39 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sun, 23 Sep 2012 08:27:54 -0700 Subject: [PATCH] Parse bison output to prevent LexSetRegExp mistakes. --- GNUmakefile.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/GNUmakefile.in b/GNUmakefile.in index 941bb2d..1990dfa 100644 --- a/GNUmakefile.in +++ b/GNUmakefile.in @@ -204,6 +204,8 @@ distclean: clean Cycript.tab.cc Cycript.tab.hh location.hh position.hh: Cycript.yy $(bison) -v --report=state $< + ! grep '^ *$$default reduce using rule [0-9]* (LexSetRegExp)$$' Cycript.output -B 2 | grep 'shift, and go to state [0-9]*$$' + ! grep '^ *$$default reduce using rule [0-9]* (LexSetRegExp)$$' Cycript.output -B 2 | grep -v '\$default' | grep 'reduce using rule [0-9]* ([^)]*)$$' lex.cy.c: Cycript.l $(flex) -t $< | $(sed) -e 's/int yyl;/yy_size_t yyl;/;s/int yyleng_r;/yy_size_t yyleng_r;/' >$@ -- 2.45.2