about summary refs log tree commit diff stats
path: root/src/tmp.lil
diff options
context:
space:
mode:
authorelioat <elioat@tilde.institute>2022-12-07 18:22:50 -0500
committerelioat <elioat@tilde.institute>2022-12-07 18:22:50 -0500
commite5c1793d5dc751dd75e8e41be1fcfafbeddbb469 (patch)
treebc5fec69808a391bee0e71a077786d5ccd1778ce /src/tmp.lil
parent05f7c6eee09b468a9ddff63ab20a62bc962421c5 (diff)
downloaddecember-2022-e5c1793d5dc751dd75e8e41be1fcfafbeddbb469.tar.gz
sketching out an idea
Diffstat (limited to 'src/tmp.lil')
-rw-r--r--src/tmp.lil40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/tmp.lil b/src/tmp.lil
new file mode 100644
index 0000000..3238b96
--- /dev/null
+++ b/src/tmp.lil
@@ -0,0 +1,40 @@
+# lil includes a fun query system as well as language features for both
+# functional programming and vector programming -- this invites interesting
+# opportunities for applications built around little databases/datasets and
+# the manipulation and querying of that data! 
+
+# I'm not 100% certain what I'm going to build with these features, yet, but
+# I will use this as a space to explore what lil has to offer.
+
+people.name:"Alice","Sam","Thomas","Sara","Walter"
+people.age:25,28,40,34,43
+people.job:"Chef","Sous Chef","Baker","Front of house","Baker"
+people:table people
+
+t:select from people
+
+show[t]
+
+s:select where ("S%m" parse name) from people
+
+show[s]
+
+d:select where ("Baker" = job) from people
+
+show[d]
+
+a:select name where ("Alice" = name) from people
+
+show[a]
+
+w:update job:"Amazing Chef" where job = "Chef" from people
+
+show[w]
+
+l:insert name:"John" job:"Critic" age:32 into people
+
+show[l]
+
+on cons x y do
+	x,y
+end
\ No newline at end of file