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
scan_endfunction, the lexer state was popped. However inscan_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.