diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2015-04-15 23:41:42 -0300 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2015-04-15 23:57:18 -0300 |
commit | 63602a4fcf3e811e529ed5b7ba670764d29fc96b (patch) | |
tree | 08d38e640ac2698edbe840d0fb1db40368012717 /src/source-grammar.h | |
parent | a3c06fb8f19df6ef612cf2d647d75f8c2bedca8b (diff) | |
download | blogc-63602a4fcf3e811e529ed5b7ba670764d29fc96b.tar.gz blogc-63602a4fcf3e811e529ed5b7ba670764d29fc96b.tar.bz2 blogc-63602a4fcf3e811e529ed5b7ba670764d29fc96b.zip |
added source grammar
Diffstat (limited to 'src/source-grammar.h')
-rw-r--r-- | src/source-grammar.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/source-grammar.h b/src/source-grammar.h new file mode 100644 index 0000000..540c21b --- /dev/null +++ b/src/source-grammar.h @@ -0,0 +1,22 @@ +/* + * blogc: A blog compiler. + * Copyright (C) 2015 Rafael G. Martins <rafael@rafaelmartins.eng.br> + * + * This program can be distributed under the terms of the LGPL-2 License. + * See the file COPYING. + */ + +#ifndef _SOURCE_GRAMAR_H +#define _SOURCE_GRAMAR_H + +#include "utils/utils.h" + +typedef struct { + b_trie_t *config; + char *content; +} blogc_source_t; + +blogc_source_t* blogc_source_parse(const char *tmpl); +void blogc_source_free(blogc_source_t *source); + +#endif /* _SOURCE_GRAMAR_H */ |