mirror of
https://github.com/Dummi26/mers.git
synced 2025-03-10 14:13:52 +01:00
add Objects to readme
This commit is contained in:
parent
d21715c2d3
commit
342874bf4d
@ -14,13 +14,13 @@ Mers is simple. There are only few expressions:
|
|||||||
|
|
||||||
- Values (`1`, `"my string"`, ...)
|
- Values (`1`, `"my string"`, ...)
|
||||||
- Blocks (`{}`)
|
- Blocks (`{}`)
|
||||||
- Tuples (`()`)
|
- Tuples (`()`) and Objects (`{}`)
|
||||||
- Assignments (`=`)
|
- Assignments (`=`)
|
||||||
- Variable initializations (`:=`)
|
- Variable initializations (`:=`)
|
||||||
- Variables (`my_var`, `&my_var`)
|
- Variables (`my_var`, `&my_var`)
|
||||||
- If statements (`if <condition> <then> [else <else>]`)
|
- If statements (`if <condition> <then> [else <else>]`)
|
||||||
- Functions (`arg -> <do something>`)
|
- Functions (`arg -> <do something>`)
|
||||||
- Function calls `arg.function`
|
- Function calls `arg.function` or `arg1.function(arg2, arg3)` (= `(arg1, arg2, arg3).function`)
|
||||||
|
|
||||||
Everything else is implemented as a function.
|
Everything else is implemented as a function.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user