I've started looking into improving the error reporting in the translator, but I
think if we just add this on to the current parsing code, things will end up
being too convoluted. The parsing code looks in need of refactoring. I think it
needs more helper classes, some kind of symbol table, and more generally a
better way of maintaining state than the way it is done currently.
I've started making some changes in this direction, moving all the
parsing-related code into one place. It might even end up being its own package
(pddl_parser), which would depend on pddl but not vice versa, to make the
separation of concerns clearer. Does this sound like something useful or rather
like a bad direction to move in?
|