Re: Collecting statistics after parsing

Hans Ã…berg <[email protected]> Tue, 4 May 2021 20:54:17 +0200
Newsgroups gmane.comp.parsers.bison.general
Message-ID <[email protected]>
> On 4 May 2021, at 20:09, Maury Markowitz <[email protected]> wrote:
> 
> Before I reinvent the wheel: I'm wondering if anyone has some boilerplate code for printing out the frequency of tokens found in the source?

The Bison parser calls yylex when getting new tokens, so you might it make it.