-
Notifications
You must be signed in to change notification settings - Fork 47
Description
Hi there, @alvinwan and TexSoup community! Thanks for this tool, it has been fun to use a lightweight and clean Python interface for parsing TeX.
Like #50, I'm parsing pretty complex TeX documents and see a variety errors for different files. The ideal behavior of TexSoup in my case is if it returned a partial tree even if it encounters a failure. For example, if it's expecting \end{environment} and doesn't see one, maybe it returns the "soup" of everything it's seen so far and skips the rest. Or maybe it inserts the expected \end command, like TeX engines usually do.
Is there some option to turn on fault tolerance like this, in this project or in tex2py? If not, where would you recommend I extend TexSoup's code to introduce such fault tolerance? And if I or someone implemented a feature like that, would this be something that would be considered pull request-worthy?
Thanks again for a useful tool, and cheers :)