diff options
author | Thomas White <taw@bitwiz.me.uk> | 2019-02-07 21:59:01 +0100 |
---|---|---|
committer | Thomas White <taw@bitwiz.me.uk> | 2019-02-07 21:59:01 +0100 |
commit | 2453ffa05850d5c498dd900a4f66749e6d0c8989 (patch) | |
tree | 079b01ac42728304549366201bac790ede317a86 /src/sc2_test.c | |
parent | ad5576a5c88dabc4f80b45c0ee9e06dbd34bc46a (diff) |
WIP
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; } |