3 ms·
Error handling involves quite a bit of manual work, memory management if you're allocating nodes during the parser and also trying to do error recovery is even
by pjc50 9y ago
Error handling involves quite a bit of manual work, memory management if you're allocating nodes during the parser and also trying to do error recovery is even worse. Best dealt with by a slab or pool allocator. It's not very OO-frinedly and you can only have one instance running at once. That was my experience of trying to manage several parsers for Verilog, VHDL, DEF and similar ecad formats.