aboutsummaryrefslogtreecommitdiff
path: root/libstorycode/storycode.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.me.uk>2019-02-17 23:04:20 +0100
committerThomas White <taw@bitwiz.me.uk>2019-02-17 23:04:20 +0100
commit135cc1ef50930b86189be2303f68ab387ebf7f27 (patch)
tree862b828c73c44e0f5ed77ce035db855da15083f8 /libstorycode/storycode.c
parent6a31d8c2ba70c1a5342bc827091a2076e65fb2e0 (diff)
WIP on parser
Diffstat (limited to 'libstorycode/storycode.c')
-rw-r--r--libstorycode/storycode.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/libstorycode/storycode.c b/libstorycode/storycode.c
index e9eb505..edfe580 100644
--- a/libstorycode/storycode.c
+++ b/libstorycode/storycode.c
@@ -29,16 +29,23 @@
#include <string.h>
#include "presentation.h"
+#include "narrative.h"
+#include "slide.h"
+#include "stylesheet.h"
#include "storycode_parse.h"
#include "storycode_lex.h"
+#include "scparse_priv.h"
+
Presentation *storycode_parse_presentation(const char *sc)
{
YY_BUFFER_STATE b;
+ struct scpctx parse_ctx;
b = sc_scan_string(sc);
- scparse();
+ scparse(&parse_ctx);
sc_delete_buffer(b);
- return NULL;
+
+ return parse_ctx.p;
}