[Bug 1469] New: Bison reported unused tokens in `nft`

bugzilla-daemon at netfilter.org bugzilla-daemon at netfilter.org
Wed Sep 23 17:33:12 CEST 2020


https://bugzilla.netfilter.org/show_bug.cgi?id=1469

            Bug ID: 1469
           Summary: Bison reported unused tokens in `nft`
           Product: nftables
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: trivial
          Priority: P5
         Component: nft
          Assignee: pablo at netfilter.org
          Reporter: s.egbert at sbcglobal.net

This is not a functional issue but a potential dead code issue.

I do not claim to know the future of these dead code but only to point them out
in the case that someone forgot them.

I ran the `bison` analyzer as followed:

```bash
cd nftables/src
bison --update  parser_bison.y
bison -x parser_bison.y
xsltproc /usr/share/bison/xslt/xml2xhtml.xsl parser_bison.xml > 
parser_bison.html
firefox parser_bison.html
```
And got the following report under `Reduction` section:
```console
Terminals unused in grammar

   "junk"
   "!"
   "nanosecond"
   "microsecond"
   "millisecond"
```

I was investigating constructing a Graphviz modeling of all the `nft` keywords.

-- 
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.netfilter.org/pipermail/netfilter-buglog/attachments/20200923/97840ec3/attachment.html>


More information about the netfilter-buglog mailing list