aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c
index 3dbf325..d05c8d6 100644
--- a/src/main.c
+++ b/src/main.c
@@ -12,17 +12,19 @@
#include <stdio.h>
-#include "source-grammar.h"
+#include "source-parser.h"
+#include <string.h>
int
main(int argc, char **argv)
{
- blogc_source_t *t = blogc_source_parse(
- "\n \nBOLA: guda\n\t\n\n\n\n"
+ const char *a =
+ "\n \nBOLA : guda\n\t\n\n\n\n"
"CHUNDA: asd\n"
"----\n"
- "{% block single_source %}\nbola\n\nzas\n");
+ "{% block single_source %}\nbola\n\nzas\n";
+ blogc_source_t *t = blogc_source_parse(a, strlen(a));
printf("%s\n", t->content);
printf("Hello, World!\n");
return 0;