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

Using square brackets and curly brackets #2

Closed
Jack10270 opened this issue Oct 17, 2022 · 7 comments
Closed

Using square brackets and curly brackets #2

Jack10270 opened this issue Oct 17, 2022 · 7 comments

Comments

@Jack10270
Copy link

Hi first thank you for making this, It is much better than other calculator plugins.
Can you make it so I can use square brackets [ ] and curly brackets { }
So if there are many brackets in the command I can use different brackets to make it more clear like a + {[b - (c / d)] * 3}

@NhanAZ
Copy link
Member

NhanAZ commented Oct 17, 2022

Temp solution: a + ((b - (c / d))* 3)

@NhanAZ
Copy link
Member

NhanAZ commented Oct 18, 2022

I can only solve this by replacing [ ], { } of the input to ( )
The result of the above solution will still be as expected, but if the expression contains an error, the error messages will use ( ) instead of { } and [ ]

@NhanAZ
Copy link
Member

NhanAZ commented Oct 18, 2022

As mentioned in #3
I think this still should be opened in https://github.com/Muqsit/arithmexp

@NhanAZ NhanAZ added the help wanted Extra attention is needed label Oct 18, 2022
@NhanAZ
Copy link
Member

NhanAZ commented Oct 18, 2022

This has been temporarily resolved by 16bb061
Download at: https://poggit.pmmp.io/p/Calculator/0.0.13
You need to set advancedBrackets to true in config.yml to enable this feature

@NhanAZ
Copy link
Member

NhanAZ commented Oct 19, 2022

I also opened an issue on the library Muqsit/arithmexp
You can see here: Muqsit/arithmexp#13

@Jack10270
Copy link
Author

Thank you !

@NhanAZ NhanAZ removed the help wanted Extra attention is needed label Oct 20, 2022
@NhanAZ
Copy link
Member

NhanAZ commented Oct 20, 2022

Solved by 9347610...760e69d

@NhanAZ NhanAZ closed this as completed Oct 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants