Age | Commit message (Collapse) | Author | |
---|---|---|---|
2025-08-03 | Implemented type_check, added method parts for SExp | Joel Kronqvist | |
'parts' is different from 'into_vec', because it doesn't require flat structure and always succeeds | |||
2025-08-02 | Added tests for type_check. Implemented std::fmt::Display for many enums. ↵ | Joel Kronqvist | |
Added type variants List(Type), and UndefinedType for use in error messages. Implemented type utility arr(a, b). | |||
2025-08-01 | Added boilerplate for Type, TypeError and type_check | Joel Kronqvist | |
(small commit, had to sync between desktop and laptop) | |||
2025-08-01 | Modified quote so the values of lists are evaluated | Joel Kronqvist | |
2025-07-31 | Added parse_to_ast for public use from other modules | Joel Kronqvist | |
2025-07-31 | Implemented tokens_to_ast. On second thought we should've just parsed the ↵ | Joel Kronqvist | |
code straight to ast without tokenization (implementing a parser on tokens was such a pain...) | |||
2025-07-30 | Merge work done on laptop to desktop computer | Joel Kronqvist | |
Merge branch 'devel' of ssh://cron4.fi/~/melisp into devel | |||
2025-07-30 | Added tests for tokens_to_ast | Joel Kronqvist | |
2025-07-30 | Implemented evaluation according to tests. Quite a bit of changes were ↵ | Joel Kronqvist | |
required, see rest of commit message. SExp::Quote was added to let the interpreter know whether a list should be evaluated or treated as a literal list. It still needs code to be added for parsing it successfully. Some utility functions were needed: * SExp::is_value * SExp::consists_of_values * SExp::into_vec | |||
2025-07-29 | Added Nil and modified tests to make this more of a list interpreter rather ↵ | Joel Kronqvist | |
than just a do-what-you-want-with-s-expressions thing | |||
2025-07-27 | Implemented tokenize with tests - note it doesn't check syntax | Joel Kronqvist | |
2025-07-27 | Implemented parse_token | Joel Kronqvist | |
2025-07-27 | Created parse_token and added tests for it | Joel Kronqvist | |
2025-07-26 | Implemented substitution | Joel Kronqvist | |
2025-07-26 | Added variables and tests for their substitution | Joel Kronqvist | |
2025-07-26 | Implemented integer operator dynamics, fixed some tests and added a ↵ | Joel Kronqvist | |
combination test. | |||
2025-07-26 | Created necessary data structures and utilities for integers and their ↵ | Joel Kronqvist | |
operations; added tests for them | |||
2025-07-26 | Initialized project and added nom as dependency | Joel Kronqvist | |