aboutsummaryrefslogtreecommitdiff
path: root/src/parse/parsetree.rs
AgeCommit message (Collapse)Author
5 daysfeat: implemented coproducts according to testsJoel Kronqvist
6 daystest: added boilerplate and tests for coproduct parsing, type checking and ↵Joel Kronqvist
evaluation
10 daysfeat: vector concatenationJoel Kronqvist
11 daysfeat: statics for fixed point recursionJoel Kronqvist
11 daysfeat: added rest of types to the parserJoel Kronqvist
also fixed function tests in check.rs
11 daysfix: removed obsolete code for handling types as they are now parsed ↵Joel Kronqvist
directly to atoms
11 daysfeat: parsing of new types (T, (int ...), (int bool)) etc. also fixed bug in ↵Joel Kronqvist
into_type (it didn't handle lists recursively)
2025-08-11refactor: Added helper matches_pat for pattern matchingJoel Kronqvist
2025-08-10Added tests for functionsJoel Kronqvist
2025-08-10Added term level type literals (for function type signatures)Joel Kronqvist
2025-08-09Implemented print as ? -> ()Joel Kronqvist
2025-08-09Revert adding of print (its behavior was poorly designed).Joel Kronqvist
This reverts commit 3e1bf7f9946efe70d452c71494ac77ed39110804.
2025-08-06Added print, raised level on which UnboundGeneric error is returnedJoel Kronqvist
2025-08-06Added boilerplate and tests for let-bindsJoel Kronqvist
2025-08-05Added vectors and tests for their evaluation and typingJoel Kronqvist
2025-08-05Added boilerplate and tests for booleans, integer comparisons and boolean ↵Joel Kronqvist
operators.
2025-08-04Added repl and some documentation. Improved error messages. Removed dead code.Joel Kronqvist
* Removed same_variant in parse::parsetree * Added SExp::multistep (for use of the repl) Improved error messages: * Added parenthesis around types * Changed how errors propagate inferring generics: added the error variant ArgumentsDontMatchGeneric, implemented the displaying of it, added tests for it. * Had to change some tests to match for the new changes
2025-07-31Added parse_to_ast for public use from other modulesJoel Kronqvist
2025-07-31Implemented 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-30Added tests for tokens_to_astJoel Kronqvist
2025-07-27Implemented tokenize with tests - note it doesn't check syntaxJoel Kronqvist
2025-07-27Implemented parse_tokenJoel Kronqvist
2025-07-27Created parse_token and added tests for itJoel Kronqvist