summary refs log tree commit diff stats
path: root/tests/global
Commit message (Expand)AuthorAgeFilesLines
* require errormsg to be specified before file.Arne Döring2018-12-111-1/+1
* make run the default action of a test in testerArne Döring2018-11-231-1/+3
* Make `static` blocks introduce their own scopeLemonBoy2018-06-241-0/+9
* tests: Trim .nim files trailing whitespaceAdam Strzelecki2015-09-041-1/+1
* some love for the testsuite; fixed regressionsAraq2015-03-011-1/+1
* fix some trivial errors in the test suite and some more regressions caused by...Zahary Karadjov2014-02-182-0/+19
* new tester; all tests categorizedAraq2014-01-132-0/+23
ioat <elioat@tilde.institute> 2022-12-07 15:57:23 -0500 committer elioat <elioat@tilde.institute> 2022-12-07 15:57:23 -0500 Planes grow' href='/elioat/december-2022/commit/src/ask.lil?id=05f7c6eee09b468a9ddff63ab20a62bc962421c5'>05f7c6e ^
bd337d3 ^
81c20cf ^
bd337d3 ^
81c20cf ^
05f7c6e ^

bd337d3 ^



783abea ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
                                                                       
                                                                           

                                                                           






















                                                                            



                                                          
       




                                                    
                                                                                                                             
 
                        
 

              



                                                                                                                                                                                   
               
# 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]

# save:writecsv[l "sis" ","] # where sis formats the column type, here string integer string -- the other option is boolean. 

# write["test.csv" save]

on cons x y do
	x,y
end

breakfast: insert food:("Eggs","Pancakes","Grapefruit") quantity:(3,4,1) tasty:(1,1,0) into 0 # NOTE, 0 here could also be the name of the variable, so, in this example, breakfast

show[breakfast]