aboutsummaryrefslogtreecommitdiff
path: root/libstorycode/storycode.c
diff options
context:
space:
mode:
Diffstat (limited to 'libstorycode/storycode.c')
-rw-r--r--libstorycode/storycode.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/libstorycode/storycode.c b/libstorycode/storycode.c
index 983ae02..89c0440 100644
--- a/libstorycode/storycode.c
+++ b/libstorycode/storycode.c
@@ -46,14 +46,15 @@ Narrative *storycode_parse_presentation(const char *sc)
{
YY_BUFFER_STATE b;
Narrative *n;
+ yyscan_t scanner;
- //BEGIN(0);
- b = sc_scan_string(sc);
- scdebug = 1;
+ yylex_init(&scanner);
+ b = yy_scan_string(sc, scanner);
+ yydebug = 0;
n = narrative_new();
- scparse(n);
- sc_delete_buffer(b);
- //narrative_debug(n);
+ yyparse(n, scanner);
+ yy_delete_buffer(b, scanner);
+ yylex_destroy(scanner);
return n;
}