diff options
author | Tavian Barnes <tavianator@gmail.com> | 2010-02-05 11:58:41 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2010-02-05 11:58:41 -0500 |
commit | 7eef42c72cc172a1ed8087e842905f42e737131d (patch) | |
tree | f48e27bbb5cc74cc23b1f3fc5f87bf90256d4072 /dimension/directives.rules | |
parent | 6db4b9c77718c0d5346301815283a6dcbe28689d (diff) | |
download | dimension-7eef42c72cc172a1ed8087e842905f42e737131d.tar.xz |
"Support" the #version directive.
Diffstat (limited to 'dimension/directives.rules')
-rw-r--r-- | dimension/directives.rules | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/dimension/directives.rules b/dimension/directives.rules index 4fa77df..eb03df4 100644 --- a/dimension/directives.rules +++ b/dimension/directives.rules @@ -42,6 +42,13 @@ LANGUAGE_DIRECTIVE: "#declare" "identifier" "=" RVALUE { dmnsn_new_ast_integer(node ? 0 : 1)); free($3); } + | "#version" FLOAT ";" { + dmnsn_diagnostic(@$.first_filename, @$.first_line, + @$.first_column, + "WARNING: POV-Ray #version" + " backwards-compatibility not supported"); + dmnsn_delete_astnode($2); + } RVALUE: ARITH_EXPR ";" %dprec 2 { $$ = dmnsn_eval($1, symtable); |