Commit graph

14 commits

Author SHA1 Message Date
bd156e619f Trying to implement variable lookup and failing hard
* I'll probably have to rewrite environments as a Vec<HashMap> to make
    things simpler
2023-01-06 08:05:33 +01:00
10223cbb4e Interpreter - WIP refactor to prepare for using resolved variables 2023-01-05 07:54:18 +01:00
c5f099340b Errors refactoring - Code compiles. 2023-01-04 07:58:44 +01:00
360ec57914 Interpreter - Fixed typo 2023-01-02 20:06:12 +01:00
9d555acae0 Interpreter - Default environment includes native functions 2023-01-02 18:20:23 +01:00
113fffb872 Interpreter - Environment::default() implemented manually 2023-01-02 17:55:05 +01:00
2599c0ebdc Interpreter - Don't return interpreter results from the environment's methods 2023-01-02 11:25:48 +01:00
81aef09c5b Interpreter - Additional errors for variables
* Uninitialized variable usage
  * Redefining variables
2023-01-01 10:52:29 +01:00
d9e3ef2623 Environment - Rc<RefCell<...>> to store the parent 2022-12-31 17:26:40 +01:00
c71bdd8c87 Environment - Attempt at nesting support 2022-12-31 16:56:00 +01:00
f4111577ca Interpreter - Variable assignment 2022-12-31 16:36:29 +01:00
8d6191c7ee Environment - Support for assignment 2022-12-31 16:32:59 +01:00
8b44af08ba Interpreter - Initial environment implementation 2022-12-31 15:57:54 +01:00
7f94906412 Interpreter - Created environment module 2022-12-31 15:50:23 +01:00