gdritter repos documents / master scraps / samples.ltk
master

Tree @master (Download .tar.gz)

samples.ltk @masterraw · history · blame

-- functions
x = 1 | 2 | 3
f of n = x | n * 10

use f.x

-- fixing
n = 1 | 2
fixed m = n
use "{n},{n}"
use "{m},{m}"

-- person
pron of
  Male   = "he"
  Female = "she"
  NB     = "xe"
person of
  Male   = "man"
  Female = "woman"
  NB     = "person"

fixed gender = Male | Female | NB
hair     = %{long short}
hair_col = %{brown black blonde red white}
eye_col  = %{blue black brown green}
mood     = %{happy sad angry}

use "This {person.gender} has {hair} {hair_col} hair and
     {eye_color} eyes; {pron.gender} appears to be quite
     {mood}."