verilog-vcd-parser
verilog-vcd-parser copied to clipboard
Parsing multiple files
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: https://github.com/zhanghongce/verilog-vcd-parser/commit/10b408cc419be2df01fadf879fd46fbea2f0a813 it seems to work. But I'm not sure if this is the right fix.
It works. Thanks!