Skip to content
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

Add defined variables to dictionary #37

Open
stefnotch opened this issue Aug 21, 2021 · 3 comments
Open

Add defined variables to dictionary #37

stefnotch opened this issue Aug 21, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@stefnotch
Copy link
Owner

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 by cat = will work correctly

@stefnotch
Copy link
Owner Author

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.

@stefnotch
Copy link
Owner Author

Test case: % := 1/100

@stefnotch stefnotch added the enhancement New feature or request label Aug 26, 2021
@phcreery
Copy link
Collaborator

Another one is subscripts. I often use subscripts to differentiate the same variables for different domains. Wearth=m*gearth and Wmars=m*gmars

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants