ben-marshall/verilog-vcd-parser

Parsing multiple files

zhanghongce opened this issue · 2 comments

In scan_end function, the lexer state was popped. However in scan_begin, it was not pushed.
Initially, I was thinking this should be okay. But it turned out that if I instantiate another VCDFileParser after the first one was destructed, the second would result in segmentation fault even if it is parsing the same file.

In my case, after adding the change below:
zhanghongce@10b408c
it seems to work. But I'm not sure if this is the right fix.

It works. Thanks!