Re:A Simple Compiler in JavaScript
by trygvis on Sunday January 21, 2018 @03:09AM
(#16197280)
Aaw, this would have been great if it didn't use `eval`, but just executed `+`, `-` etc directly.
[ Parent
| on HN ]
Re:A Simple Compiler in JavaScript
by packetslave on Sunday January 21, 2018 @03:11AM
(#16197286)
It doesn't use the built-in eval(). There's a local function in the code named "eval" that executes the operation -- not the best choice of names, really.