Skip to content

Commit 69ff0b1

Browse files
Merge pull request #2529 from AlexandreSinger/feature-remove-warnings
[Bison] Raised Minimum Bison Version to 3.3
2 parents f2b9bc2 + 907539b commit 69ff0b1

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

libs/EXTERNAL/libblifparse/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
1313
endif()
1414

1515
#Flex and Bison are used to generate the parser
16-
find_package(BISON REQUIRED 3.0)
16+
find_package(BISON REQUIRED 3.3)
1717
find_package(FLEX REQUIRED)
1818

1919
file(GLOB_RECURSE LIB_SOURCES src/blif*.cpp)

libs/EXTERNAL/libblifparse/src/blif_parser.y

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/* C++ parsers require Bison 3 */
2-
%require "3.0"
1+
/* C++ parsers require Bison 3.3 */
2+
%require "3.3"
33
%language "C++"
44

55
/* Write-out tokens header file */
@@ -34,7 +34,7 @@
3434
%define api.namespace {blifparse}
3535

3636
/* Name the parser class */
37-
%define parser_class_name {Parser}
37+
%define api.parser.class {Parser}
3838

3939
/* Match the flex prefix */
4040
%define api.prefix {blifparse_}

libs/EXTERNAL/libsdcparse/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
1313
endif()
1414

1515
#Flex and Bison are used to generate the parser
16-
find_package(BISON REQUIRED 3.0)
16+
find_package(BISON REQUIRED 3.3)
1717
find_package(FLEX REQUIRED)
1818

1919
file(GLOB_RECURSE LIB_SOURCES src/sdc*.cpp)

libs/EXTERNAL/libsdcparse/src/sdc_parser.y

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/* C++ parsers require Bison 3 */
2-
%require "3.0"
1+
/* C++ parsers require Bison 3.3 */
2+
%require "3.3"
33
%language "C++"
44

55
/* Write-out tokens header file */
@@ -34,7 +34,7 @@
3434
%define api.namespace {sdcparse}
3535

3636
/* Name the parser class */
37-
%define parser_class_name {Parser}
37+
%define api.parser.class {Parser}
3838

3939
/* Match the flex prefix */
4040
%define api.prefix {sdcparse_}

0 commit comments

Comments
 (0)