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 shift/reduce-conflicts (sr)
 of the touchstone-parser build by parse_touchstone.ypp and scan_touchstone.lpp:
   -sr conflicts solved by remove useless/redundant grammatic rules
   -verification of equalness of generated output from both the converter before and
    after the code change done with touchstone input R50C1pF.s1p done

Signed-off-by: ThomasZecha <[email protected]>
  • Loading branch information
ThomasZecha committed Oct 22, 2024
1 parent dc4f759 commit f2a8601
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/parse_touchstone.ypp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ using namespace qucs;

%}

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

%token InvalidCharacter
%token Float
Expand Down Expand Up @@ -102,15 +102,6 @@ Dataset: /* nothing */ { }
touchstone_line->setNext($2);
touchstone_line = $2;
}
| Dataset DataLine { /* last line, no trailing end-of-line */
if (!touchstone_vector)
touchstone_vector = $2; /* save first vector location */
if (touchstone_line)
touchstone_line->setNext($2);
touchstone_line = $2;
logprint (LOG_ERROR, "line %d: no trailing end-of-line found, "
"continuing...\n", touchstone_lineno);
}
| Dataset Eol { /* skip this line */ }
;

Expand Down

0 comments on commit f2a8601

Please sign in to comment.