Shunting-Yard Animation
somethingorotherwhatever.com
Shunting-Yard Animation
1–10 of 17 posts
Re: Shunting-Yard Animation
#2Re: Shunting-Yard Animation
#3Re: Shunting-Yard Animation
#4It also appears that separate digits aren't interpreted as decimal numerals (i.e. (1)(3) is the sequence 1,3 and not 13) which can look a bit misleading.
Re: Shunting-Yard Animation
#5I typed `100+88/4` and the resulting output was `100884+/`. Should the algorithm be inserting a symbol to delineate operands?
1 0 0 + 8 8 / 4
which is nonsensical, but it has no error detection so it rolled with it. Really `100` should be its own token, but there's no way to input that.Re: Shunting-Yard Animation
#6I'm not familiar with the algorithm and I don't see much explanation on the site (at least on mobile) but AFAICT this is turning parenthesized infix expressions into reverse Polish notation. In other words, it takes human-readable mathematical formulas and converts them into something a simple stack-based machine can compute in one forward pass. It also appears that separate digits aren't interpreted as decimal numer…
If you want to enter the number `13`, that should be one token, but there's no way to make a `13` token in this UI. You need to stick to single digits for this site to work correctly.
Re: Shunting-Yard Animation
#7Re: Shunting-Yard Animation
#8Re: Shunting-Yard Animation
#9I can’t figure out how to make it start processing the input on mobile Safari, am I missing something?
Re: Shunting-Yard Animation
#10I typed `100+88/4` and the resulting output was `100884+/`. Should the algorithm be inserting a symbol to delineate operands?
It treated that as 1 0 0 + 8 8 / 4 which is nonsensical, but it has no error detection so it rolled with it. Really `100` should be its own token, but there's no way to input that.