about summary refs log tree commit diff stats
path: root/lil/giblang.lil
diff options
context:
space:
mode:
authorelioat <elioat@tilde.institute>2023-05-03 21:08:54 -0400
committerelioat <elioat@tilde.institute>2023-05-03 21:08:54 -0400
commitc4af194999cf6f58999a3e12bc87a54cfadfa054 (patch)
treec48b2c6866ad5eaa4dbcc9e1f2c8c674d0653072 /lil/giblang.lil
parentf79279fb25afa9a571f8e2d53cb49cf44b3e6ff0 (diff)
downloadtour-c4af194999cf6f58999a3e12bc87a54cfadfa054.tar.gz
*
Diffstat (limited to 'lil/giblang.lil')
-rw-r--r--lil/giblang.lil17
1 files changed, 15 insertions, 2 deletions
diff --git a/lil/giblang.lil b/lil/giblang.lil
index b2569f9..b92f20b 100644
--- a/lil/giblang.lil
+++ b/lil/giblang.lil
@@ -3,5 +3,18 @@ vow: ("a", "e", "i", "o", "u", "y", "ee", "ai", "ae", "au")
 
 sys.seed:sys.ms
 
-syl:random[vow 1],random[cons 1] # 1 syllable 
-rand:random[(1,2,3) 1] # random number between 1 and 3, inclusive
+on syl do
+	"" fuse random[vow 1],random[cons 1]
+end
+
+on apply func do 
+	func[]
+end
+
+x:apply[syl]
+show[x]
+
+wrd:(syl[],syl[],syl[]) # I'd like to support a random number of syllables within a given range
+word:"" fuse wrd
+
+show[word]