Open stefnotch opened 3 years ago
Also, the :=
parser might have to be rewritten a little bit to do some custom parsing for the right side. Let's first see how the next MathJson version handles various things.
Test case: % := 1/100
Another one is subscripts. I often use subscripts to differentiate the same variables for different domains. Wearth=m*gearth and Wmars=m*gmars
When parsing or serializing an expression, we need to get all the currently defined variables and add them to the dictionary. That way,
cat := 3
followed bycat =
will work correctly