diff options
-rw-r--r-- | libstorycode/storycode.l | 1 | ||||
-rw-r--r-- | libstorycode/storycode.y | 1 | ||||
-rw-r--r-- | meson.build | 4 |
3 files changed, 3 insertions, 3 deletions
diff --git a/libstorycode/storycode.l b/libstorycode/storycode.l index e8fd70a..663a4b1 100644 --- a/libstorycode/storycode.l +++ b/libstorycode/storycode.l @@ -25,6 +25,7 @@ #include "storycode_parse.h" %} +%option prefix="sc" %option noyywrap nounput noinput %s string diff --git a/libstorycode/storycode.y b/libstorycode/storycode.y index 625f080..38ce93b 100644 --- a/libstorycode/storycode.y +++ b/libstorycode/storycode.y @@ -28,6 +28,7 @@ %define api.value.type {char *} %define api.token.prefix {SC_} +%define api.prefix {sc} %token STYLES SLIDE %token NARRATIVE %token PRESTITLE diff --git a/meson.build b/meson.build index 6a03731..9515624 100644 --- a/meson.build +++ b/meson.build @@ -39,8 +39,7 @@ storycode_parse_ch = custom_target('storycode_parse.c', 'storycode_parse.h'], input : 'libstorycode/storycode.y', command : [bison, '--defines=@OUTPUT1@', - '-p', 'sc', - '--report=all', + '--report=all', '--output=@OUTPUT0@', '@INPUT@']) @@ -49,7 +48,6 @@ storycode_lex_c = custom_target('storycode_lex.c', input : ['libstorycode/storycode.l', storycode_parse_ch], command : [flex, '--outfile=@OUTPUT0@', '--header-file=@OUTPUT1@', - '-P', 'sc', '@INPUT@']) libstorycode = library('storycode', |