From 749cdb81da654efad8e8b54c772f4c92b7330ed7 Mon Sep 17 00:00:00 2001 From: Aleksey Veresov Date: Fri, 28 Aug 2020 09:07:08 +0300 Subject: Refactored. --- tl_example.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 tl_example.c (limited to 'tl_example.c') 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 + + +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; +} -- cgit v1.2.3