diff options
Diffstat (limited to 'dimension/common.rules')
-rw-r--r-- | dimension/common.rules | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/dimension/common.rules b/dimension/common.rules index 7a6dba1..863b288 100644 --- a/dimension/common.rules +++ b/dimension/common.rules @@ -303,15 +303,20 @@ TEXTURE_ITEMS: /* empty */ { $$ = $1; dmnsn_array_push($$.children, &$2); } + | TEXTURE_ITEMS TRANSFORMATION { + $$ = $1; + dmnsn_array_push($$.children, &$2); + } ; /* Pigments */ PIGMENT: "pigment" "{" PIGMENT_TYPE + PIGMENT_MODIFIERS "}" { - $$ = dmnsn_new_astnode1(DMNSN_AST_PIGMENT, @$, $3); + $$ = dmnsn_new_astnode2(DMNSN_AST_PIGMENT, @$, $3, $4); } ; @@ -321,6 +326,15 @@ PIGMENT_TYPE: /* empty */ { | COLOR ; +PIGMENT_MODIFIERS: /* empty */ { + $$ = dmnsn_new_astnode(DMNSN_AST_PIGMENT_MODIFIERS, @$); + } + | PIGMENT_MODIFIERS TRANSFORMATION { + $$ = $1; + dmnsn_array_push($$.children, &$2); + } +; + /* Finishes */ FINISH: "finish" "{" FINISH_ITEMS |