mirror of
https://codeberg.org/ProgramSnail/lang.git
synced 2025-12-05 22:48:43 +00:00
printing fixes
This commit is contained in:
parent
0bb72e0b10
commit
469cb3581f
23 changed files with 318 additions and 151 deletions
|
|
@ -85,7 +85,7 @@ func
|
|||
'a
|
||||
'b
|
||||
'c
|
||||
: A B C -> D
|
||||
: A B C -> D;
|
||||
|
||||
func 'a 'b 'c
|
||||
:
|
||||
|
|
@ -127,7 +127,7 @@ func = {
|
|||
|
||||
// operators, containers, modifiers
|
||||
|
||||
func {
|
||||
func = {
|
||||
|
||||
x + y;
|
||||
|
||||
|
|
@ -167,10 +167,11 @@ func {
|
|||
<> x;
|
||||
|
||||
x?;
|
||||
}
|
||||
|
||||
// other
|
||||
|
||||
func {
|
||||
func = {
|
||||
|
||||
x
|
||||
.func a b c;
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ func_2 = {
|
|||
maybe_something!;
|
||||
|
||||
// open optional: if null then return default value (operator)
|
||||
%x := maybe_something ?| value
|
||||
%x := maybe_something ?| value;
|
||||
|
||||
%y := Fruit @apple ();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue