diff options
Diffstat (limited to 'src/storycode.y')
-rw-r--r-- | src/storycode.y | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/storycode.y b/src/storycode.y index 25d7bc2..a5dd68a 100644 --- a/src/storycode.y +++ b/src/storycode.y @@ -29,24 +29,31 @@ %define api.value.type {char *} %token SC_STYLES %token SC_PRESTITLE +%token SC_COLON %token SC_STRING +%token SC_NEWLINE +%token SC_COLONSPACE %% storycode: %empty - | scblock '\n' storycode { printf("End of storycode\n"); } + | scblock + | scblock SC_NEWLINE storycode ; scblock: stylesheet | prestitle + ; stylesheet: - SC_STYLES ':' + SC_STYLES SC_COLON { printf("Stylesheet.\n"); } + ; prestitle: - SC_PRESTITLE ':' SC_STRING { printf("Presentation title: '%s'\n", $1); } + SC_PRESTITLE SC_COLONSPACE SC_STRING { printf("Presentation title: '%s'\n", $3); } + ; %% |