Commit Graph

30 Commits

Author SHA1 Message Date
Mark
b53c245776 fix empty ranges not being empty 2024-11-07 21:28:19 +01:00
Mark
923652eca9 add iterable ranges (range_inc / range_exc) 2024-11-07 16:53:15 +01:00
Mark
f979100bfb fix "weird" behavior with globalinfo not updating 2024-10-14 01:52:19 +02:00
Mark
754dd5df40 the math does math... at compile time, in types 2024-10-02 01:46:50 +02:00
Mark
c17ea580b2 make objects work better, especially destructuring 2024-09-28 01:51:20 +02:00
Mark
385019e43c replace Bool type with Bool=True/False + bugfix
Bool is a type alias for True/False

Bugfix:

[[T] String]
{
  [[T] Int]
  // this would use the outer T (String),
  // but now it correctly uses the inner T (Int).
  [T] 1
}
2024-08-29 15:04:32 +02:00
Mark
3a53290f9b better now yay 2024-07-03 12:54:57 +02:00
Mark
50928cca1d [no version bump yet] better and safer stdlib impl
only transformed configs/with_string so far,
but other configs/* should follow soon.
also, this will help with implementing
new stdlib functions in the future.
2024-07-02 22:04:42 +02:00
Mark
18cd3ee0ae functions no longer modify state, funcrefs exist
you can use &func as a function, too.
this allows the function to mutate its
inner state.
2024-07-01 20:51:09 +02:00
Mark
94111a5eaa add configs/bundle_pure 2024-06-23 22:14:29 +02:00
Mark
f59c0941f5 add more graceful errors (w/ stacktrace) to stdlib 2024-06-20 15:52:57 +02:00
Mark
cd21c2171e improve panic function, add stacktrace 2024-06-19 12:35:23 +02:00
Mark
2742112b09 Type no longer implements MersType 2024-04-16 13:38:50 +02:00
Mark
6d6853cc9f add function type annotation (Input1 -> Output1, Input2 -> Output2) 2024-02-15 10:55:13 +01:00
Mark
44da27b414 Add chain function and chained iterator, which behaves like Rust's flatten 2024-02-14 17:13:05 +01:00
Mark
2d373d1ba7 make some types/fields public 2024-01-16 10:38:45 +01:00
Mark
0759b769e0 early prototype of a language server
currently only provides hover info (but that's already quite useful for debugging)
2023-12-05 23:04:17 +01:00
Mark
8b60da8d99 relative paths in #include are relative to the file's parent directory, if possible 2023-12-05 09:55:00 +01:00
Mark
12925fed67 improved error messages
- some small bugs are now fixed
- include comments in error messages (if this causes issues, use --hide-comments)
- colors should make more sense now
- error-related things moved to mers_lib/src/errors/
2023-11-16 14:50:09 +01:00
Mark
fcd70c8dc4 improve iter types 2023-11-10 13:49:18 +01:00
Mark
d2fc8c1ebe Add division to examples/03 and add any and all functions for Iter<Bool> 2023-11-08 15:54:46 +01:00
Mark
2c9fb1b4a4 fix bug 2023-10-28 14:07:10 +02:00
Mark
a30ba84691 more iter functions 2023-10-27 19:19:29 +02:00
Mark
cb52c961a2 fix todo!()s in with_iters 2023-10-27 17:09:48 +02:00
Mark
5e20f92849 Added the concept of subtypes ...
... which `try` now uses to avoid some problems with inner types
2023-10-24 09:31:49 +02:00
Mark
ea95a16c30 added better error messages inspired by rustc/cargo
but not as good
2023-10-23 21:48:15 +02:00
Mark
b39a768099 . 2023-10-19 18:46:15 +02:00
Mark
2a7cb08596 mers rewrite is starting to be usable 2023-08-14 17:17:08 +02:00
Mark
07745488b3 sorted mers_lib/src/program/configs/ and added cargo features 2023-07-28 15:20:02 +02:00
Mark
b81dac682e full rewrite, kinda works 2023-07-28 00:33:15 +02:00