/* * blogc: A blog compiler. * Copyright (C) 2015 Rafael G. Martins * * This program can be distributed under the terms of the BSD License. * See the file COPYING. */ #ifdef HAVE_CONFIG_H #include #endif /* HAVE_CONFIG_H */ #include #include "template-grammar.h" int main(int argc, char **argv) { b_slist_t *t = blogc_template_parse( "{{ BOLA }}\n" "{% block single_source %}\n"); printf("%s\n", (char*) ((blogc_template_stmt_t*)t->next->next->next->data)->value); printf("Hello, World!\n"); return 0; }