Go over row box parsing #832
Draft
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
@mmatera : this branch possibly parses boxing operators better. But I am not sure. The below seem to match better WMA output, but one thing that is tricky is that there is a level of box evaluation going on and our box evaluation is probably wrong.
And then there are the unit tests. Our unit test
test/core/parser/test_parser.pyseems to work with both existing master and these changes. And it has tests for SuperscriptBox that purport that the existing code should be doing the right thing, but inside mathics, I am not seeing that.So it is also possible that the existing parser is okay, but our boxing routines are completely at fault, aside from the syntax error show below.
I think I can easily fix the parsing error, but I don't want to do this until I understand what the situation is in master, what is wrong with it, and that we determine that this is a parsing problem. Likewise, failures in FormBox tests raise the question: is it the parser that is at fault, our boxing routines, or our test expectations.
Please let me know your thoughts or investigation in this.
The above should be
SuperscriptBox[x, RowZBox[{y, ^ z}]]. Continuing...