Mark
e07010dcfc
add object field getting syntax obj:field
2025-02-07 17:50:59 +01:00
Mark
3cd8dc02d2
update readme
2025-02-05 12:12:13 +01:00
Mark
17e7ecdd43
update readme
2025-02-05 12:11:31 +01:00
Mark
5d663d8d39
improve README
2025-02-05 12:09:28 +01:00
Mark
6b2ae08731
add fs module
2025-02-04 15:45:02 +01:00
Mark
414017402e
list.insert/.replace/.remove replace list.get_mut
2024-12-17 21:12:13 +01:00
Mark
e34d841f9a
fix initializing object from <unreachable> not working
2024-11-07 23:00:08 +01:00
Mark
6630542644
fix negative ranges
2024-11-07 21:34:29 +01:00
Mark
b53c245776
fix empty ranges not being empty
2024-11-07 21:28:19 +01:00
Mark
d6ccbb7d54
version update
2024-11-07 17:09:10 +01:00
Mark
923652eca9
add iterable ranges (range_inc / range_exc)
2024-11-07 16:53:15 +01:00
Mark
e667749496
update merslsp
2024-10-25 10:50:11 +02:00
Mark
7896542d2f
fix max function
2024-10-23 12:07:32 +02:00
Mark
bdf7fb9380
fix max function
2024-10-23 12:06:58 +02:00
Mark
01541d5dad
use newer mers lib
2024-10-14 02:04:32 +02:00
Mark
f979100bfb
fix "weird" behavior with globalinfo not updating
2024-10-14 01:52:19 +02:00
Mark
8868746e17
add flag to change exit
behavior to RuntimeError
2024-10-14 00:30:57 +02:00
Mark
8e07f240cc
allow using other stdin/stdout/stderr via RunInfo
2024-10-14 00:23:14 +02:00
Mark
4e73ec0201
move exit: fn
from base
to stdio
2024-10-12 01:00:23 +02:00
Mark
d83f6f942f
bugfix for builtin functions using 3-tuples
2024-10-11 23:42:14 +02:00
Mark
786d72660f
update mers with newer mers_lib
2024-10-11 23:06:50 +02:00
Mark
203f701758
fix types (see prev. commit)
2024-10-11 23:05:53 +02:00
Mark
08999e646a
add about and version to -h and --help
2024-10-11 22:54:56 +02:00
Mark
bdd7260c12
bugfix, functions added via config have bad infos
...
functions added to a Config may have
`info::neverused()` as their info,
which also makes the DisplayInfo part of the info
not work, which can be a problem if the function
uses its infos to define object fields
or to format an object.
2024-10-11 22:18:58 +02:00
Mark
37f2e46d0c
version bump, no changes (only mers_lib changed)
2024-10-11 21:26:51 +02:00
Mark
ab55ce9bf1
make object fields trait public
2024-10-11 21:26:27 +02:00
Mark
6c43c604b8
improve ints in .try
2024-10-02 02:36:15 +02:00
Mark
754dd5df40
the math does math... at compile time, in types
2024-10-02 01:46:50 +02:00
Mark
c357e192a0
version bump
2024-09-28 01:53:27 +02:00
Mark
c17ea580b2
make objects work better, especially destructuring
2024-09-28 01:51:20 +02:00
Mark
9c8e918440
fix doc comment on is_included_in
2024-09-18 17:18:38 +02:00
Mark
062f100d40
show custom type names in error messages
2024-08-31 13:14:12 +02:00
Mark
817ed25f96
add warning to if-statement in check mode
...
warning is shown if the condition of an
if statement can never be true or false,
and the user used the check command.
warnings are not shown when you use `mers run`.
2024-08-29 15:48:01 +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
7f318d9e1c
add some basic tests
2024-07-03 20:24:14 +02:00
Mark
ac662c8e10
make merslsp compile again (it's still buggy tho)
2024-07-03 18:36:46 +02:00
Mark
0e42202f2c
version bump
2024-07-03 13:42:56 +02:00
Mark
25c605d801
transform read_line to new func
2024-07-03 13:39:15 +02:00
Mark
a9e5f9209c
make cli args available when running
2024-07-03 13:32:43 +02:00
Mark
3a53290f9b
better now yay
2024-07-03 12:54:57 +02:00
Mark
08a82733e9
convert more stdlib functions and add rounding
...
converted with_base and with_math
2024-07-03 11:59:22 +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
7acaafaa2f
fix some bugs
2024-06-27 18:11:37 +02:00
Mark
d01da83866
remove O: Write constraint on pretty_print_to
2024-06-26 21:21:44 +02:00
Mark
14c8e7717d
add HtmlDefaultTheme to pretty_print
2024-06-26 21:17:58 +02:00
Mark
50ebe5fb54
fix
2024-06-26 21:13:36 +02:00
Mark
af1715ef91
fix pretty_print_to
2024-06-26 21:05:19 +02:00
Mark
1b79cfc08f
fix some edge cases in parser
2024-06-26 20:27:29 +02:00
Mark
b6c0391833
version bump
2024-06-26 13:51:39 +02:00