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

Re: Heap Corruption

2020-12-10 Thread Jot Dot
Adrian, Thanks for the suggestions. > Heap corruption is always mean to debug… I agree. I don't have proper debug tools to debug this. Hopefully clang will help. I've never used clang so I'll read up and use it. > It could be that your heap was already corrupted way earlier, but only the > “dele

Re: Trailing comments in bison

2020-12-10 Thread Maury Markowitz
Ok, I managed to get this to work, and ultimately it was quite easy. First you do this in flex: '.* { yylval.s = g_string_new(strndup(yytext + 1, yyleng - 1)); return QUOTEREM; } // short form in MS !.* { yylval.s = g_string_new(strndup(yytext + 1, yyleng - 1)); return BANGREM;