Skip to content

Commit

Permalink
refactor: avoid "%pure-parser" deprecation warning from Bison 3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
QRWells committed Feb 20, 2024
1 parent d80c003 commit cd10920
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,16 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-14]
compiler: [{ c: gcc-13, cxx: g++-13 }, { c: clang-15, cxx: clang++-15 }]
compiler: [{ c: gcc-13, cxx: g++-13 }, { c: clang, cxx: clang++ }]
steps:
- uses: actions/checkout@v4
- name: Setup prerequisites for Linux
if: runner.os == 'Linux'
run: |
sudo apt -qq update
sudo apt install -y re2c ruby-full bison flex doxygen zlib1g-dev libomp-15-dev
sudo ln -f -s /usr/bin/clang-15 /usr/bin/clang
sudo ln -f -s /usr/bin/clang++-15 /usr/bin/clang++
- name: Setup prerequisites for macOS
if: runner.os == 'macOS'
Expand Down
2 changes: 1 addition & 1 deletion src/verifier/nc_parser.ypp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
#include "nc_lexer.hpp"
%}

%pure-parser
%define api.pure
%locations
%parse-param {nc::lexer *scanner}
%parse-param {AutomataRef automata}
Expand Down
2 changes: 1 addition & 1 deletion src/verifier/propsym_parser.ypp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
#include "propsym_lexer.hpp"
%}

%pure-parser
%define api.pure
%locations
%parse-param {propsym::lexer *scanner}
%parse-param {AutomataRef automata}
Expand Down

0 comments on commit cd10920

Please sign in to comment.