Mark
e07010dcfc
add object field getting syntax obj:field
2025-02-07 17:50:59 +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
923652eca9
add iterable ranges (range_inc / range_exc)
2024-11-07 16:53:15 +01:00
Mark
bdf7fb9380
fix max function
2024-10-23 12:06:58 +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
203f701758
fix types (see prev. commit)
2024-10-11 23:05:53 +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
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
062f100d40
show custom type names in error messages
2024-08-31 13:14:12 +02:00
Mark
0e42202f2c
version bump
2024-07-03 13:42:56 +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
Mark
4c17fa1745
fix html output (newlines)
2024-06-26 13:50:02 +02:00
Mark
12d90a8022
fix pretty_print
2024-06-26 13:02:50 +02:00
Mark
7a945e80ba
improve and move theming traits
...
move pretty_print.rs from mers to mers_lib
2024-06-26 12:54:04 +02:00
Mark
f08784af3b
fix colors + fix dependency version mismatch
2024-06-26 01:22:13 +02:00
Mark
a78367f27c
add support for custom theming in mers errors
...
this also includes support for the NoTheme,
a theme which doesn't add any color to mers'
output.
If you compile mers with --no-default-features,
the `colored` dependency will disappear and
mers_lib will fall back to NoTheme.
2024-06-26 01:02:19 +02:00
Mark
94111a5eaa
add configs/bundle_pure
2024-06-23 22:14:29 +02:00
Mark
688e28c171
nicer errors
2024-06-21 15:50:41 +02:00
Mark
b11e4017ed
add divbyzero error for integer division
2024-06-20 15:57:53 +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
4770e3f939
fix readline
2024-06-17 18:47:49 +02:00
Mark
1c6cd90d59
fix read_line
2024-06-17 18:33:22 +02:00
Mark
206457489c
read_line now returns (String)/()
...
so that closed stdin is handled by the programmer
instead of (probably) causing an infinite loop
2024-06-17 18:26:27 +02:00
Mark
3e33d963f5
remove RunCommandError
custom type,
...
replace it with `{ run_command_error: String }`
instead, which is more standard mers style
2024-06-14 19:49:41 +02:00
Mark
1e2f0cb63c
add _ wildcard for type definitions
...
and make line/file indicators in errors
gray instead of fully white
2024-06-12 20:11:22 +02:00
Mark
945e19e10a
fix list cloning not cloning inner values
...
this would allow mutating values
through a list passed by value,
but now it doesn't, which is
how it always should have been.
2024-04-30 13:58:40 +02:00
Mark
a377c6e89a
temporary bugfix/patch
2024-04-16 14:27:02 +02:00
Mark
1f44b66f08
fix a deadlock when using recursive try
s
2024-04-15 17:26:06 +02:00
Mark
cd3495b364
version 0.8.0
2024-04-15 16:42:13 +02:00
Mark
754a661f83
0.7.3
2024-03-22 16:27:14 +01:00
Mark
1e658805d1
add compile_mut and check_mut
2024-03-22 16:24:10 +01:00