Re: Collecting statistics after parsing

2021-05-04 Thread Adrian Vogelsgesang via Users list for the GNU Bison parser generator
Hi Maury, Another potential approach: Hook the lexer function. Instead of embedding the counting directly into the bison grammar, you could do the counting directly in the `yylex` function, as a wrapper around your actual lexer. That way, you can separate the “structural concerns” of your langu

Re: Heap Corruption

2020-12-10 Thread Adrian Vogelsgesang via Users list for the GNU Bison parser generator
Hi Jot, skimming over your code, I couldn’t find anything particularly wrong or suspicious… If you could post a self-contained repro that would me to follow your steps and maybe debug this in more depth. In case it requires more than a few files, maybe you could upload your code to Github and