Better memory management
We leak HParser
instances (notice the test suite is not valgrind-clean); if we use the suggested syntax in #61 (h_compile(p, h_get_backend("glr(1)"))
), we could also end up leaking HParserBackendWithParams
unless we level up a bit at memory management. Ideally we should be able to make the common case of querying for one of these objects not require manually freeing it later, so perhaps some sort of simple garbage collection system is appropriate. In any case, we should not leak things.