Jelajahi Sumber

LexerParser: Do not use GNU Bison's yacc mode, we use Bison extensions

Silence Bison warnings regarding use of Bison extensions.
Christoph Grüninger 4 tahun lalu
induk
melakukan
5a8a61a798

+ 1 - 1
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:"]

+ 1 - 1
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:"]

+ 1 - 1
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:"]

+ 1 - 1
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

+ 1 - 1
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\