Open dammyng opened 3 years ago
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.
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 expected24
I can actually work on this