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/source-parser.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/source-parser.h (limited to 'src/source-parser.h') diff --git a/src/source-parser.h b/src/source-parser.h new file mode 100644 index 0000000..6f41c14 --- /dev/null +++ b/src/source-parser.h @@ -0,0 +1,23 @@ +/* + * blogc: A blog compiler. + * Copyright (C) 2015 Rafael G. Martins + * + * This program can be distributed under the terms of the LGPL-2 License. + * See the file COPYING. + */ + +#ifndef _SOURCE_PARSER_H +#define _SOURCE_PARSER_H + +#include +#include "utils/utils.h" + +typedef struct { + b_trie_t *config; + char *content; +} blogc_source_t; + +blogc_source_t* blogc_source_parse(const char *src, size_t src_len); +void blogc_source_free(blogc_source_t *source); + +#endif /* _SOURCE_PARSER_H */ -- cgit v1.2.3-18-g5258