From abeec8802d90f4ebd7b7fa16bcc91961c32bcadd Mon Sep 17 00:00:00 2001 From: ThomasZecha Date: Tue, 22 Oct 2024 13:04:27 +0200 Subject: [PATCH] Fix build issues flex/bison part -fixed deprecated bison name-prefix directive warning and removed useless scanner token definition and replaced misleading operator assocativity with precedence: parse_netlist.ypp Signed-off-by: ThomasZecha --- src/parse_netlist.ypp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/parse_netlist.ypp b/src/parse_netlist.ypp index e8a3bdd9..a560108b 100644 --- a/src/parse_netlist.ypp +++ b/src/parse_netlist.ypp @@ -46,7 +46,7 @@ using namespace qucs; %} -%name-prefix "netlist_" +%define api.prefix {netlist_} %token InvalidCharacter %token Identifier @@ -62,7 +62,6 @@ using namespace qucs; %token Character %token STRING -%right '=' %right '?' ':' %left Or %left And @@ -70,9 +69,9 @@ using namespace qucs; %left Less Greater LessOrEqual GreaterOrEqual %left '-' '+' %left '*' '/' '%' -%right Not -%left NEG /* unary negation */ -%left POS /* unary non-negation */ +%precedence Not +%precedence NEG /* unary negation */ +%precedence POS /* unary non-negation */ %right '^' %union {