logoalt Hacker News

dcrazyyesterday at 4:59 PM1 replyview on HN

I typed `100+88/4` and the resulting output was `100884+/`. Should the algorithm be inserting a symbol to delineate operands?


Replies

justinpombrioyesterday at 5:29 PM

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.
show 1 reply