aboutsummaryrefslogtreecommitdiff
path: root/libstorycode/storycode.y
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.me.uk>2019-02-22 22:03:22 +0100
committerThomas White <taw@bitwiz.me.uk>2019-02-22 22:03:22 +0100
commit3ff425d840876c0db965b23826998161ee87c1fd (patch)
tree982ff6ad78cee6dbbac278df4b67f8642d1b11f5 /libstorycode/storycode.y
parentcce16c01a4ef4280b260b72e9bbf9cb4a400d122 (diff)
Rendering stuff
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"); }
;