diff options
author | Aleksey Veresov <aleksey@veresov.pro> | 2020-08-28 09:07:08 +0300 |
---|---|---|
committer | Aleksey Veresov <aleksey@veresov.pro> | 2020-08-28 09:07:08 +0300 |
commit | 749cdb81da654efad8e8b54c772f4c92b7330ed7 (patch) | |
tree | 67bb943511c325408431ab7ce27caeb85f096844 /tl_example.c | |
parent | 0ffd577cd6ee67d7e3f4af9b1102e9ac1af78925 (diff) | |
download | tela-749cdb81da654efad8e8b54c772f4c92b7330ed7.tar tela-749cdb81da654efad8e8b54c772f4c92b7330ed7.tar.xz tela-749cdb81da654efad8e8b54c772f4c92b7330ed7.zip |
Refactored.
Diffstat (limited to 'tl_example.c')
-rw-r--r-- | tl_example.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tl_example.c b/tl_example.c new file mode 100644 index 0000000..b8f9779 --- /dev/null +++ b/tl_example.c @@ -0,0 +1,20 @@ +#include <tl.h> + + +int main() +{ + struct tl_list *l = + tl_named_data("username", "aversey", + tl_named_list("articles", + tl_plain_list( + tl_named_data("title", "Substitution Processes", + tl_named_data("author", "Edsger Dijkstra", 0)), + tl_plain_list( + tl_named_data("title", "NewbieTL", + tl_named_data("author", "Aleksey Veresov", 0)), + tl_plain_list( + tl_named_data("title", "Bullshit", + tl_named_data("author", "Ongo Gablogian", 0)), 0))), 0)); + tl_translate(l); + return 0; +} |