From 7577a2b69f9a77962912753b6768b38db4e3c454 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 15 Apr 2010 23:31:24 -0400 Subject: Initial support for image_maps. --- dimension/common.rules | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'dimension/common.rules') diff --git a/dimension/common.rules b/dimension/common.rules index 863b288..732a277 100644 --- a/dimension/common.rules +++ b/dimension/common.rules @@ -324,6 +324,24 @@ PIGMENT_TYPE: /* empty */ { $$ = dmnsn_new_astnode(DMNSN_AST_NONE, @$); } | COLOR + | "image_map" "{" + BITMAP_TYPE STRING + "}" + { + $$ = dmnsn_new_astnode2(DMNSN_AST_IMAGE_MAP, @$, $3, $4); + } + | "image_map" "{" + STRING + "}" + { + dmnsn_astnode type = dmnsn_new_astnode(DMNSN_AST_PNG, @$); + $$ = dmnsn_new_astnode2(DMNSN_AST_IMAGE_MAP, @$, type, $3); + } +; + +BITMAP_TYPE: "png" { + $$ = dmnsn_new_astnode(DMNSN_AST_PNG, @$); + } ; PIGMENT_MODIFIERS: /* empty */ { -- cgit v1.2.3