So I've been messing with this for the past few minutes and figured the following with the current implementation.
For some reason, you can not do the following:
Yet, if you try to evaluate
on its own, you'll get an undefined error.
You can do the following, because it's fun...
Which for me, evaluates to /
Or you can do some more advanced math functions...
Which is interesting.
So yeah. Variables don't seem to work. Imports do. Anyone think of what I've missed, how to improve?
I'm thinking of implementing a simple top-down parser, with a few inbuilt functions etc etc.