I played around with the LISP interpreter and I quite liked it :). Awesome job!
When I went through the code, I felt rather than having all the code in one class seperating the concerns would drastically improve readability and maintainability. For example, we can seperate the following responsibilities,
- Reading input from user
- Parsing
- Evaluating
And, if we keep the environment seperately then adding new functions need not have to touch any other part of the system.
I played around with the LISP interpreter and I quite liked it :). Awesome job!
When I went through the code, I felt rather than having all the code in one class seperating the concerns would drastically improve readability and maintainability. For example, we can seperate the following responsibilities,
And, if we keep the environment seperately then adding new functions need not have to touch any other part of the system.