aboutsummaryrefslogtreecommitdiff
path: root/libstorycode/storycode.y
diff options
context:
space:
mode:
Diffstat (limited to 'libstorycode/storycode.y')
-rw-r--r--libstorycode/storycode.y8
1 files changed, 7 insertions, 1 deletions
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 <p> presentation
%type <n> narrative
@@ -84,6 +84,7 @@
%type <str> bulletpoint
%type <str> frameopt
%type <geom> geometry
+%type <geom> style_slidesize
%type <len> length
%type <str> slidetitle
%type <character> 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"); }
;