diff options
Diffstat (limited to 'src/sc2_test.c')
-rw-r--r-- | src/sc2_test.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/sc2_test.c b/src/sc2_test.c index f626f26..5db89c4 100644 --- a/src/sc2_test.c +++ b/src/sc2_test.c @@ -26,13 +26,17 @@ #include <glib.h> #include <glib/gstdio.h> +#include "storycode.tab.h" #include "storycode.h" int main(int argc, char *argv[]) { + YY_BUFFER_STATE b; + printf("Here goes...\n"); - sc_scan_string("PRESTITLE: Hello\n"); + b = sc_scan_string("PRESTITLE: Hi there\nPRESTITLE: Second title\nSTYLES:\nPRESTITLE: three"); scparse(); + sc_delete_buffer(b); printf("Done.\n"); return 0; } |