X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/1cff1a902880bc31e319df2645b5294f196b4b26..64a505ff07b28093bb91a680f8a2c2292327e896:/Makefile.am diff --git a/Makefile.am b/Makefile.am index fba2439..eb0c884 100644 --- a/Makefile.am +++ b/Makefile.am @@ -110,11 +110,15 @@ Scanner.cpp: Scanner.lpp ! grep -n '^ jam-transitions: ' lex.backup | grep -v ': EOF \[\(\]\| \\2\)' ! grep -F ': warning, ' Scanner.output || true -Scanner.lo: Parser.hpp +Scanner.lo: Parser.hpp IdentifierStart.h IdentifierContinue.h +Parser.lo: Parser.hpp +Parser.cpp: Parser.hpp CLEANFILES += Parser.cpp Parser.hpp stack.hh Parser.output -Parser.cpp Parser.hpp stack.hh Parser.output: Parser.ypp +Parser.hpp: Parser.ypp $(BISON) -v --report=state -Werror -o Parser.cpp $< ! grep -n '^State [0-9]* conflicts:' Parser.output + ! grep -n '^ *.* *reduce using rule [0-9]* (Lex[A-Z][^)]*)$$' Parser.output | grep -v '$$default' ! grep -n '^ *$$default *reduce using rule [0-9]* (Lex[A-Z][^)]*)$$' Parser.output -B 2 | grep 'shift, and go to state [0-9]*$$' ! grep -n '^ *$$default *reduce using rule [0-9]* (Lex[A-Z][^)]*)$$' Parser.output -B 2 | grep -v '$$default' | grep 'reduce using rule [0-9]* ([^)]*)$$' + perl -pi -e 's/yytranslate_ \(yylex \(/(yylex_ (/g' Parser.cpp