aboutsummaryrefslogtreecommitdiffstats
path: root/src/template-grammar.h
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2015-04-17 23:49:55 -0300
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2015-04-17 23:49:55 -0300
commitbf42a95568f5efffcc87a9b5a7683b7b270a098f (patch)
tree4d3ea13c85bc34b609271ce0bf3b35cdf5a98c6f /src/template-grammar.h
parentda54782672331c68fc7c412f4ebe27a9738342eb (diff)
downloadblogc-bf42a95568f5efffcc87a9b5a7683b7b270a098f.tar.gz
blogc-bf42a95568f5efffcc87a9b5a7683b7b270a098f.tar.bz2
blogc-bf42a95568f5efffcc87a9b5a7683b7b270a098f.zip
replaced leg-based parser with handmade parser for templates
yay! no leg parser needed anymore. parsers still needs some work and error handling, though.
Diffstat (limited to 'src/template-grammar.h')
-rw-r--r--src/template-grammar.h32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/template-grammar.h b/src/template-grammar.h
deleted file mode 100644
index 310acb5..0000000
--- a/src/template-grammar.h
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2015 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file COPYING.
- */
-
-#ifndef _TEMPLATE_GRAMMAR_H
-#define _TEMPLATE_GRAMMAR_H
-
-#include "utils/utils.h"
-
-typedef enum {
- BLOGC_TEMPLATE_IF_STMT,
- BLOGC_TEMPLATE_ELSE_STMT,
- BLOGC_TEMPLATE_ENDIF_STMT,
- BLOGC_TEMPLATE_BLOCK_STMT,
- BLOGC_TEMPLATE_ENDBLOCK_STMT,
- BLOGC_TEMPLATE_VARIABLE_STMT,
- BLOGC_TEMPLATE_CONTENT_STMT,
-} blogc_template_stmt_type_t;
-
-typedef struct {
- blogc_template_stmt_type_t type;
- char *value;
-} blogc_template_stmt_t;
-
-b_slist_t* blogc_template_parse(const char *tmpl);
-void blogc_template_free_stmts(b_slist_t *stmts);
-
-#endif /* _TEMPLATE_GRAMMAR_H */