summaryrefslogtreecommitdiffstats
path: root/dimension/lexer.l
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-03-20 15:30:40 -0400
committerTavian Barnes <tavianator@gmail.com>2010-03-20 15:30:40 -0400
commit5da32d0dce6b8ade0b636b83f67b6244e6a56494 (patch)
tree49d15326afa1a2bdde55b5cc37620e68bb4b5a20 /dimension/lexer.l
parent4566f4e34afaab1c47120e8a377859d88a142ffe (diff)
downloaddimension-5da32d0dce6b8ade0b636b83f67b6244e6a56494.tar.xz
Implement almost all float functions.
Diffstat (limited to 'dimension/lexer.l')
-rw-r--r--dimension/lexer.l18
1 files changed, 17 insertions, 1 deletions
diff --git a/dimension/lexer.l b/dimension/lexer.l
index 3d30f0b..79d0a51 100644
--- a/dimension/lexer.l
+++ b/dimension/lexer.l
@@ -206,16 +206,22 @@ unsigned long wchar;
"gray" RETURN_TOKEN(DMNSN_T_GRAY);
"grey" RETURN_TOKEN(DMNSN_T_GRAY);
"green" RETURN_TOKEN(DMNSN_T_GREEN);
+"int" RETURN_TOKEN(DMNSN_T_INT);
"interior" RETURN_TOKEN(DMNSN_T_INTERIOR);
"ior" RETURN_TOKEN(DMNSN_T_IOR);
+"ln" RETURN_TOKEN(DMNSN_T_LN);
"location" RETURN_TOKEN(DMNSN_T_LOCATION);
+"log" RETURN_TOKEN(DMNSN_T_LOG);
"look_at" RETURN_TOKEN(DMNSN_T_LOOK_AT);
"light_source" RETURN_TOKEN(DMNSN_T_LIGHT_SOURCE);
"max_trace_level" RETURN_TOKEN(DMNSN_T_MAX_TRACE_LEVEL);
+"mod" RETURN_TOKEN(DMNSN_T_MOD);
"perspective" RETURN_TOKEN(DMNSN_T_PERSPECTIVE);
"phong" RETURN_TOKEN(DMNSN_T_PHONG);
"phong_size" RETURN_TOKEN(DMNSN_T_PHONG_SIZE);
"pigment" RETURN_TOKEN(DMNSN_T_PIGMENT);
+"pow" RETURN_TOKEN(DMNSN_T_POW);
+"radians" RETURN_TOKEN(DMNSN_T_RADIANS);
"red" RETURN_TOKEN(DMNSN_T_RED);
"reflection" RETURN_TOKEN(DMNSN_T_REFLECTION);
"rgb" RETURN_TOKEN(DMNSN_T_RGB);
@@ -224,14 +230,24 @@ unsigned long wchar;
"rgbt" RETURN_TOKEN(DMNSN_T_RGBT);
"right" RETURN_TOKEN(DMNSN_T_RIGHT);
"rotate" RETURN_TOKEN(DMNSN_T_ROTATE);
-"sphere" RETURN_TOKEN(DMNSN_T_SPHERE);
+"sin" RETURN_TOKEN(DMNSN_T_SIN);
+"sinh" RETURN_TOKEN(DMNSN_T_SINH);
"sky" RETURN_TOKEN(DMNSN_T_SKY);
+"sphere" RETURN_TOKEN(DMNSN_T_SPHERE);
+"sqrt" RETURN_TOKEN(DMNSN_T_SQRT);
+"strcmp" RETURN_TOKEN(DMNSN_T_STRCMP);
+"strlen" RETURN_TOKEN(DMNSN_T_STRLEN);
"t" RETURN_TOKEN(DMNSN_T_T);
+"tan" RETURN_TOKEN(DMNSN_T_TAN);
+"tanh" RETURN_TOKEN(DMNSN_T_TANH);
"texture" RETURN_TOKEN(DMNSN_T_TEXTURE);
"transmit" RETURN_TOKEN(DMNSN_T_TRANSMIT);
"u" RETURN_TOKEN(DMNSN_T_U);
"up" RETURN_TOKEN(DMNSN_T_UP);
"v" RETURN_TOKEN(DMNSN_T_V);
+"val" RETURN_TOKEN(DMNSN_T_VAL);
+"vdot" RETURN_TOKEN(DMNSN_T_VDOT);
+"vlength" RETURN_TOKEN(DMNSN_T_VLENGTH);
"x" RETURN_TOKEN(DMNSN_T_X);
"y" RETURN_TOKEN(DMNSN_T_Y);
"z" RETURN_TOKEN(DMNSN_T_Z);