From 047e4e3753c597628024847a524d44ca67fa1382 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Fri, 17 Apr 2015 01:47:41 -0300 Subject: replaced leg-based parser with handmade parser for source files --- src/main.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/main.c') 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 -#include "source-grammar.h" +#include "source-parser.h" +#include 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; -- cgit v1.2.3-18-g5258