From 3ff425d840876c0db965b23826998161ee87c1fd Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 22 Feb 2019 22:03:22 +0100 Subject: Rendering stuff --- libstorycode/storycode.y | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'libstorycode/storycode.y') diff --git a/libstorycode/storycode.y b/libstorycode/storycode.y index 1f163f3..b04acf4 100644 --- a/libstorycode/storycode.y +++ b/libstorycode/storycode.y @@ -72,7 +72,7 @@ %token OPENBRACE CLOSEBRACE %token SQOPEN SQCLOSE %token PLUS TIMES -%token UNIT VALUE +%token UNIT VALUE SIZE %type

presentation %type narrative @@ -84,6 +84,7 @@ %type bulletpoint %type frameopt %type geometry +%type style_slidesize %type length %type slidetitle %type UNIT @@ -276,9 +277,14 @@ style_slide: style_slide_def: %empty | style_slide_def style_prestitle +| style_slide_def style_slidesize | style_slide_def styledef ; +style_slidesize: + SIZE length TIMES length { $$.w = $2; $$.h = $4; $$.x.len = 0.0; $$.y.len = 0.0; } +; + style_prestitle: PRESTITLE OPENBRACE styledefs CLOSEBRACE { printf("prestitle style\n"); } ; -- cgit v1.2.3