diff options
author | Christoph GrĂ¼ninger <foss@grueninger.de> | 2021-01-22 13:53:41 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-01-25 17:05:20 (GMT) |
commit | 5a8a61a798c8ab915ec3cb0b05e108a0d5266254 (patch) | |
tree | 96d55068c80d601f36fc09ab81e48c40ce393de5 | |
parent | 4f9228a3001dd104a19c5eced3dcb36eef7102f4 (diff) | |
download | CMake-5a8a61a798c8ab915ec3cb0b05e108a0d5266254.zip CMake-5a8a61a798c8ab915ec3cb0b05e108a0d5266254.tar.gz CMake-5a8a61a798c8ab915ec3cb0b05e108a0d5266254.tar.bz2 |
LexerParser: Do not use GNU Bison's yacc mode, we use Bison extensions
Silence Bison warnings regarding use of Bison extensions.
-rw-r--r-- | Source/LexerParser/cmCommandArgumentParser.y | 2 | ||||
-rw-r--r-- | Source/LexerParser/cmDependsJavaParser.y | 2 | ||||
-rw-r--r-- | Source/LexerParser/cmExprParser.y | 2 | ||||
-rw-r--r-- | Source/LexerParser/cmFortranParser.y | 2 | ||||
-rwxr-xr-x | Utilities/Scripts/regenerate-parsers.bash | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/Source/LexerParser/cmCommandArgumentParser.y b/Source/LexerParser/cmCommandArgumentParser.y index 0c6aad5..1725b35 100644 --- a/Source/LexerParser/cmCommandArgumentParser.y +++ b/Source/LexerParser/cmCommandArgumentParser.y @@ -7,7 +7,7 @@ This file must be translated to C and modified to build everywhere. Run bison like this: - bison --yacc --name-prefix=cmCommandArgument_yy --defines=cmCommandArgumentParserTokens.h -ocmCommandArgumentParser.cxx cmCommandArgumentParser.y + bison --name-prefix=cmCommandArgument_yy --defines=cmCommandArgumentParserTokens.h -ocmCommandArgumentParser.cxx cmCommandArgumentParser.y Modify cmCommandArgumentParser.cxx: - "#if 0" out yyerrorlab block in range ["goto yyerrlab1", "yyerrlab1:"] diff --git a/Source/LexerParser/cmDependsJavaParser.y b/Source/LexerParser/cmDependsJavaParser.y index d15cffc..fbe1514 100644 --- a/Source/LexerParser/cmDependsJavaParser.y +++ b/Source/LexerParser/cmDependsJavaParser.y @@ -7,7 +7,7 @@ This file must be translated to C and modified to build everywhere. Run bison like this: - bison --yacc --name-prefix=cmDependsJava_yy --defines=cmDependsJavaParserTokens.h -ocmDependsJavaParser.cxx cmDependsJavaParser.y + bison --name-prefix=cmDependsJava_yy --defines=cmDependsJavaParserTokens.h -ocmDependsJavaParser.cxx cmDependsJavaParser.y Modify cmDependsJavaParser.cxx: - "#if 0" out yyerrorlab block in range ["goto yyerrlab1", "yyerrlab1:"] diff --git a/Source/LexerParser/cmExprParser.y b/Source/LexerParser/cmExprParser.y index 7ae2118..c5f3e76 100644 --- a/Source/LexerParser/cmExprParser.y +++ b/Source/LexerParser/cmExprParser.y @@ -7,7 +7,7 @@ This file must be translated to C and modified to build everywhere. Run bison like this: - bison --yacc --name-prefix=cmExpr_yy --defines=cmExprParserTokens.h -ocmExprParser.cxx cmExprParser.y + bison --name-prefix=cmExpr_yy --defines=cmExprParserTokens.h -ocmExprParser.cxx cmExprParser.y Modify cmExprParser.cxx: - "#if 0" out yyerrorlab block in range ["goto yyerrlab1", "yyerrlab1:"] diff --git a/Source/LexerParser/cmFortranParser.y b/Source/LexerParser/cmFortranParser.y index 1b54dd9..6bbea39 100644 --- a/Source/LexerParser/cmFortranParser.y +++ b/Source/LexerParser/cmFortranParser.y @@ -17,7 +17,7 @@ This file must be translated to C and modified to build everywhere. Run bison like this: - bison --yacc --name-prefix=cmFortran_yy + bison --name-prefix=cmFortran_yy --defines=cmFortranParserTokens.h -ocmFortranParser.cxx cmFortranParser.y diff --git a/Utilities/Scripts/regenerate-parsers.bash b/Utilities/Scripts/regenerate-parsers.bash index 6fb35c0..964ed0e 100755 --- a/Utilities/Scripts/regenerate-parsers.bash +++ b/Utilities/Scripts/regenerate-parsers.bash @@ -22,7 +22,7 @@ do if [[ (${in_file} -nt ${cxx_file}) || (${in_file} -nt ${h_file}) || (${forced} -gt 0) ]]; then echo "Generating Parser ${parser}" - bison --yacc --name-prefix=${prefix} --defines=${h_file} -o${cxx_file} ${in_file} + bison --name-prefix=${prefix} --defines=${h_file} -o${cxx_file} ${in_file} sed -i '/\/\* Else will try to reuse/ i\ #if 0 /^yyerrlab1:/ a\ |