diff options
Diffstat (limited to 'dimension/common.rules')
-rw-r--r-- | dimension/common.rules | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/dimension/common.rules b/dimension/common.rules index f0e8eae..7b4c609 100644 --- a/dimension/common.rules +++ b/dimension/common.rules @@ -153,6 +153,7 @@ OBJECT_MODIFIER: TRANSFORMATION | PIGMENT { $$ = dmnsn_new_astnode1(DMNSN_AST_TEXTURE, @$, $1); } + | INTERIOR ; /* Textures */ @@ -259,6 +260,24 @@ REFLECTION_ITEMS: /* empty */ { } ; +/* Interiores */ +INTERIOR: "interior" "{" + INTERIOR_ITEMS + "}" + { $$ = $3; } +; + +INTERIOR_ITEMS: /* empty */ { + $$ = dmnsn_new_astnode(DMNSN_AST_INTERIOR, @$); + } + | INTERIOR_ITEMS "ior" FLOAT { + dmnsn_astnode diffuse = dmnsn_new_astnode1(DMNSN_AST_IOR, + @2, $3); + $$ = $1; + dmnsn_array_push($$.children, &diffuse); + } +; + /* Floats */ FLOAT: ARITH_EXPR { |