node ./__tests__/run.js
OR
npm run tests
If you have nodemon installed you can automatically run the test on any file change
npm run watch-tests
- Simple expression parser
- Artimetic expression
- Variables
- Environment interface
- Define a variable -> (var x 10)
- Lookup a variable -> x
- Install some variables to globals like null, true, false etc.
- Handle variable types like true, false as boolean instead of string
- Assign a new value to a variable -> (set x 20)
- Environment interface
- Blocks
- Block declaration
- Nested env/scope
- Access outer variable by inner scope
- Refactor Tests
- Branch expression
- While Loop