The goal of this library is to generate more helpful exception messages for matrix algebra expressions for numpy, pytorch, jax, tensorflow, keras, fastai.
This generally resulted in cleaner code and so was a worthwhile improvement. Basically we never want sub expression nodes in the AST so might as well get rid of that. I took the opportunity to change the way sub expression text is computed. Now each node has a pointer to the parser that created it which of course has access to the code it is parsing.
Fixes #22
This generally resulted in cleaner code and so was a worthwhile improvement. Basically we never want sub expression nodes in the AST so might as well get rid of that. I took the opportunity to change the way sub expression text is computed. Now each node has a pointer to the parser that created it which of course has access to the code it is parsing.