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

Bracket operations #8

Open
dammyng opened this issue Sep 17, 2020 · 1 comment
Open

Bracket operations #8

dammyng opened this issue Sep 17, 2020 · 1 comment

Comments

@dammyng
Copy link

dammyng commented Sep 17, 2020

import ShuntingYard from "shunting-yard.js"
const shuntingYard = new ShuntingYard();
console.log(shuntingYard.resolve("4(6)"))

The operation listed above return 4 instead of an expected 24

I can actually work on this

@Calamari
Copy link
Owner

Hello dammyng.

I am not sure if that really should qualify as a valid expression, since it is missing an explicit operator. But I don't have another hard argument against adding this convenience right now since it is what (we lazy) humans may like to do.

So if you like, you can give it a try.

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