65 Commits

Author SHA1 Message Date
9c1abc43fb Initial work on generic narrowing, clean up and get rid of old unnecessary things, yeet inheritance 2025-02-20 11:51:29 +01:00
4ac9d1e6d3 Remove unnecessary generic instantiation step, cleanup old VM code, improve stringify() output and minor fixups 2025-02-16 13:20:12 +01:00
c4835cee78 Initial ground work on better type union checking 2025-02-16 11:01:22 +01:00
3c7f2efabb Fix weirdness with typevar declaration not being correctly wrapped 2025-02-15 12:34:56 +01:00
38fbe152a2 Unify generic instantiation code and simplify typevar logic 2025-02-14 15:41:49 +01:00
f72f7f884a Initial ground work for context-aware type checking 2024-07-12 19:09:47 +02:00
c4d51f91d8 Fix compilation issues, add initial parsing test suite and initial work on bytecode backend 2024-07-08 12:37:31 +02:00
4fc078d4d8 Initial work on parser tests. Parser bug fixes. Minor changes to type checker 2024-04-08 14:33:14 +02:00
740999bbc2 Minor changes to help text. Add AST checker module 2024-04-05 16:39:05 +02:00
3953751cef Migrate all tokenizer tests to new format 2024-04-05 16:24:45 +02:00
9d9093ca6c Improve testing capabilities, initial work on parser testing. WIP 2024-03-08 11:21:07 +01:00
e2b4037b73 Switch parameters to ordered hash map 2024-03-06 09:33:54 +01:00
40e11c5afe Bug fixes across the toolchain. Minor fixes and touch ups 2024-03-05 21:03:59 +01:00
eca8d362d2 Fix bugs with type declaration parsing 2024-03-05 19:53:41 +01:00
f321644c40 Bug fixes to the parser, typechecker cleanup. Added more CLI options 2024-03-05 16:56:09 +01:00
e7aa19835e Minor test additions 2024-03-04 12:42:55 +01:00
ecbdf120e3 More lexer bug fixes and tests. Minor changes to error reporting. Added intrinsic aliases 2024-02-23 13:15:11 +01:00
92993535d7 Fix bugs that weren't producing expression statements properly 2024-02-23 13:15:10 +01:00
20cca2c185 Add --cacheDir option 2024-02-23 13:15:10 +01:00
b0b7739a63 Change build directory 2024-02-23 13:15:10 +01:00
c5450a9e19 Build task now fails if tests fail 2024-02-23 13:15:10 +01:00
f1d2386175 Fix stringWithEscapes test and add more unicode tests 2024-02-23 13:15:10 +01:00
6db44570ae Improve unicode support in the tokenizer and add more tests 2024-02-23 13:15:09 +01:00
e061bb399b Added allTokens test 2024-02-23 13:15:09 +01:00
79f3803328 Improve test suite and fix bugs in the tokenizer 2024-02-23 13:15:09 +01:00
3b603d1fdf Minor formatting changes to test outcome printing (again) 2024-02-23 13:15:09 +01:00
0ec377b308 Minor formatting changes to test outcome printing 2024-02-23 13:15:08 +01:00
40cbed2b19 Improve test suite with outcome management 2024-02-23 13:15:08 +01:00
41abf59395 Add initial documentation to test suite 2024-02-23 13:15:08 +01:00
b2efb1c9b5 Update copyright/license notices & README with build instructions. Made peon buildable via nimble build 2024-02-23 13:15:08 +01:00
eb8f7c0a51 Update README 2024-02-23 13:15:07 +01:00
31ee29538e Improve error handling and error messages 2024-02-23 13:15:07 +01:00
c3bac2cf46 Add comments to generics example 2024-02-23 13:15:07 +01:00
ee90dad3d2 Turn peon into a proper nimble package and add initial test suite 2024-02-23 13:15:07 +01:00
887d1ce8f5 Added --noGen option 2024-02-23 13:15:06 +01:00
3f0a4708d3 Rework generic replacement mechanism 2024-02-23 13:15:06 +01:00
c0bd1daebf Significant parser refactoring and cleanup 2024-02-23 13:15:06 +01:00
d04f412347 Add extra generic test and comments 2024-02-23 13:15:06 +01:00
2f74c23774 Whoops 2024-02-23 13:15:05 +01:00
60d9b3c37e More fixes to generics 2024-02-23 13:15:05 +01:00
34d5f77f65 Added test for generics 2024-02-23 13:15:05 +01:00
a6a944a4fa Completely rework generics 2024-02-23 13:15:05 +01:00
838fc3d5a1 preparation for type system overhaul (please send help) 2024-02-23 13:15:04 +01:00
83051d67f8 Further work on porting the bytecode target 2024-02-23 13:15:04 +01:00
6181c49f1f Initial work on porting the bytecode backend to peon 0.2 2024-02-23 13:15:04 +01:00
8b39cc3bc0 Add parser support for selective import statements 2024-02-23 13:15:04 +01:00
3ad22dea12 Improve separation by splitting types from type checker 2024-02-23 13:15:03 +01:00
e11ada2fec Minor review and improvements 2024-02-23 13:15:03 +01:00
13eea04e74 Fix parsing bug with type declarations 2024-02-23 13:15:03 +01:00
8cac75ecef Minor fixes 2024-02-23 13:15:03 +01:00