blob: 84205e283f07457451e65473a2fe5ab7fb154c9b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#include <bowl.h>
int main()
{
// Root node which contains a list
struct bowl *root;
bowl_malloc(&root, ARRAY);
struct bowl *a;
data_malloc(&a, LITERAL, "Destroy capitalism");
bowl_append(root, a);
struct bowl *b;
data_malloc(&b, INTEGER, 1312);
bowl_append(root, b);
struct bowl *c;
data_malloc(&c, LITERAL, "Alerta, Antifascista!");
bowl_append(root, c);
return bowl_free(root);
}
|