From fd4797ff832d7a02cde65b17b1b2a8e1e691d863 Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 22 Apr 2023 00:37:44 -0700 Subject: [PATCH] compressed intent into journal --- language.txt | 46 ++++++++++++++++++++++++++++------------------ src/driver.c | 4 ++-- 2 files changed, 30 insertions(+), 20 deletions(-) diff --git a/language.txt b/language.txt index 31523a1..8e546f2 100644 --- a/language.txt +++ b/language.txt @@ -1,31 +1,41 @@ __lines__ ---label: string ---label -->(#,#) label -->label -[ed: date] string -[contact: label] string -[book: title] string -[tv: label] string -[movie: label] string -[medication] string -[vaccine: label] string -[in: amount] string +--keyword: string +--keyword +->(double,double) string +->string +[ed: Y-MM-DD] text +[contact: string] text +[book: string] text +[tv: string] text +[movie: string] text +[medication] text +[vaccine: string] text +[in: currency] text [flight] type; regn; apt1 -- apt2; pic1; pic2; dual; solo; ; ; [gliding] ... -[cra: line] amount -[idea: string] string -[document: label] string -[mail: string] string +[cra: unsigned currency] text +[idea: string] text +[document: string] text +[mail: string] text Bible 1:1 -- ignored -[DD-DD, DD:DD] name: message (Whatsapp) !checked off ^crossed off <-[[Y-]MM-]DD [[Y-]MM-]DD-> -1. Numbered list +unsigned. Numbered list * Unordered list # Heading +[DD-DD, DD:DD] name: message (Whatsapp) + +[1-2^19) Y +[01-12] MM +[01-31] DD +[^\n\0...\[\];] string +# [0-1]*[.[0-1]*] +string | <<\n ([^\n\0...] \n)* >>\n text +... double +... unsigned +... currency __tags__ ...... diff --git a/src/driver.c b/src/driver.c index 54ba20e..245181d 100644 --- a/src/driver.c +++ b/src/driver.c @@ -15,8 +15,8 @@ int main(void) { struct journal jrnl = {0}; errno = 0; - intent = "loading journal"; - jrnl = journal("../journal"); + intent = "../journal"; + jrnl = journal(intent); fprintf(stderr, "Journal: %s.\n", journal_to_string(&jrnl)); if(errno) goto catch;