Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
10
Task/Inverted-syntax/Latitude/inverted-syntax-1.latitude
Normal file
10
Task/Inverted-syntax/Latitude/inverted-syntax-1.latitude
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
local 'raining = True.
|
||||
local 'needUmbrella = False.
|
||||
|
||||
if (raining) then {
|
||||
needUmbrella = True.
|
||||
} else {}.
|
||||
|
||||
{ raining. } ifTrue {
|
||||
needUmbrella = True.
|
||||
}.
|
||||
14
Task/Inverted-syntax/Latitude/inverted-syntax-2.latitude
Normal file
14
Task/Inverted-syntax/Latitude/inverted-syntax-2.latitude
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#'Method when := {
|
||||
localize.
|
||||
if ($1) then {
|
||||
this.
|
||||
} else { }.
|
||||
}.
|
||||
|
||||
#'Method unless := {
|
||||
#'self when ($1 not).
|
||||
}.
|
||||
|
||||
;; Example usage
|
||||
{ needUmbrella = True. } when (raining).
|
||||
{ needUmbrella = True. } unless (raining not).
|
||||
7
Task/Inverted-syntax/Latitude/inverted-syntax-3.latitude
Normal file
7
Task/Inverted-syntax/Latitude/inverted-syntax-3.latitude
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
global let= := { self slot ($2) = #'$1. }.
|
||||
|
||||
local 'a = 6.
|
||||
println: a. ;; 6
|
||||
|
||||
let 6 = 'b.
|
||||
println: b. ;; 6
|
||||
Loading…
Add table
Add a link
Reference in a new issue