Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 0de1df1

Browse files
committedMay 16, 2024·
[Bison] Raised Minimum Bison Version from 3.0 to 3.3
Raised the minimum Bison version to 3.3 since deprecation warnings were showing up in libblifparse and libsdcparse which could not be resolved unless the Bison version was 3.3.
1 parent f4bd1be commit 0de1df1

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)
Please sign in to comment.