diff options
author | elioat <elioat@tilde.institute> | 2022-12-09 14:17:34 -0500 |
---|---|---|
committer | elioat <elioat@tilde.institute> | 2022-12-09 14:17:34 -0500 |
commit | 9f21b17e54e199d9ae9da71e33d53335bacfc45c (patch) | |
tree | 053c89c814c536766d3d0b85948181c56e94c45b | |
parent | eea643fc8c1db1297c4ed94e42099d9c479e2aa1 (diff) | |
download | december-2022-9f21b17e54e199d9ae9da71e33d53335bacfc45c.tar.gz |
you can dance if you want to
-rw-r--r-- | log.txt | 3 | ||||
-rw-r--r-- | src/catalogue.lil | 10 | ||||
-rw-r--r-- | src/test.csv | 6 |
3 files changed, 16 insertions, 3 deletions
diff --git a/log.txt b/log.txt index 817bf28..09f3d2b 100644 --- a/log.txt +++ b/log.txt @@ -6,4 +6,5 @@ 05 DEC: No huge progress to share -- explored a few other implementations of scheme and interface options, pausing on data (re)shaping and wrangling 06 DEC: Sort of a rest day, perhaps more after work, but today's been a *long* day. Poked a weeeeeeee little bit at the inspector function 07 DEC: Another busy day at work, but I had time to explore lil -- started a new project using it -08 DEC: Had a quick conversation with the mind behind lil about lil, continued to explore lil, and started work on an emacs major-mode for lil \ No newline at end of file +08 DEC: Had a quick conversation with the mind behind lil about lil, continued to explore lil, and started work on an emacs major-mode for lil +09 DEC: I was feeling wicked tired today, did a bit of head banging on some elisp, but also dove into some research on algorithms and complexity on which I make some weak sauce notes. I also continued work on the project using lil \ No newline at end of file diff --git a/src/catalogue.lil b/src/catalogue.lil index 52afd69..ab6b20a 100644 --- a/src/catalogue.lil +++ b/src/catalogue.lil @@ -39,8 +39,14 @@ catalogue:table catalogue # alternate syntax to make a table, # t: insert food:("Eggs","Pancakes","Grapefruit") quantity:(3,4,1) tasty:(1,1,0) into 0 +# validate that I can write a table to disk and read it back in show[catalogue] - out:writecsv[catalogue] +show[out] +write["test.csv" out] + +data:read["test.csv"] +newtable:readcsv[data] +show[newtable] +# HUGE SUCCESS! -show[out] \ No newline at end of file diff --git a/src/test.csv b/src/test.csv new file mode 100644 index 0000000..cfb85c6 --- /dev/null +++ b/src/test.csv @@ -0,0 +1,6 @@ +entry_type,parent,title,body,reference,created_date +folder,0,read,0,0,2022-12-07 +folder,0,to read,0,0,2022-12-07 +note,0,what an idea,what if I made a lil cli,0,2022-12-07 +link,0,Oatmeal,0,https://eli.li,2022-12-07 +link,0,sans,0,https://smallandnearlysilent.com,2022-12-07 \ No newline at end of file |