Skip to content

Commit

Permalink
Fix build issues flex/bison part
Browse files Browse the repository at this point in the history
-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 <[email protected]>
  • Loading branch information
ThomasZecha committed Oct 22, 2024
1 parent f2a8601 commit abeec88
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/parse_netlist.ypp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ using namespace qucs;

%}

%name-prefix "netlist_"
%define api.prefix {netlist_}

%token InvalidCharacter
%token Identifier
Expand All @@ -62,17 +62,16 @@ using namespace qucs;
%token Character
%token STRING

%right '='
%right '?' ':'
%left Or
%left And
%left NotEqual Equal
%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 {
Expand Down

0 comments on commit abeec88

Please sign in to comment.