-
-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Go over row box parsing #832
base: master
Are you sure you want to change the base?
Conversation
I am now thinking that there is nothing wrong with master, and the whatever problems that appear lie elsewhere. |
@rocky, I need to look at this again, but one clue that could be useful is that Maybe the most useful thing to start with this would be to add more pytests, to check the compatibility. |
There are already lots of tests in |
I am trying to find out what requires to be fixed here. I remember we had some issues posted, and also some prs, but I am not finding them. |
@rocky, in this branch https://github.com/Mathics3/mathics-core/tree/improving_parse_FormBox_0 , I put something that seems to be related to the parsing step. Still, there is one pytest that still is not working. Maybe it deserves to have a look. |
I will look at possibly next weekend sometime. |
@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.py
seems 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...