high-level, safe, and simple programming language
Go to file
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
.github/workflows . 2023-06-26 17:53:27 -04:00
examples fix example 6 2024-06-19 14:00:27 +02:00
learn_mers nicer errors 2024-06-21 15:50:41 +02:00
mers add warning to if-statement in check mode 2024-08-29 15:48:01 +02:00
mers_lib add warning to if-statement in check mode 2024-08-29 15:48:01 +02:00
merslsp make merslsp compile again (it's still buggy tho) 2024-07-03 18:36:46 +02:00
old move old mers to old/ and update gitignore 2023-07-28 15:24:38 +02:00
tree-sitter-mers add helix editor language config 2023-11-24 19:35:43 +01:00
.gitignore early prototype of a language server 2023-12-05 23:04:17 +01:00
main.mers nicer errors 2024-06-21 15:50:41 +02:00
Quickstart.md Type Annotations 2023-11-21 22:10:58 +01:00
README.md update link to mers/README.mdin README.md 2024-02-17 14:53:28 +01:00
TODO.md [no version bump yet] better and safer stdlib impl 2024-07-02 22:04:42 +02:00

mers

See the mers readme for more info.


"Hello, World!".println

Hello, World!


my_var := "Hello, Variable!"
my_var.println

Hello, Variable!


(1, 2, 3, 4).sum.println

10


(1, "2", 3, 4).sum.println

err1


(1, 2, 3, 4).as_list.debug

List<Int> :: [1, 2, 3, 4]


(1.0, 2.0).as_list.debug

List<Float> :: [1, 2]


(1, 2, 3.5).as_list.debug

List<Int/Float> :: [1, 2, 3.5]


int_list := (1, 2, 3).as_list
float_list := (4.5, 6.0).as_list
int_list.chain(float_list).as_list.debug

List<Int/Float> :: [1, 2, 3, 4.5, 6]