From 5da32d0dce6b8ade0b636b83f67b6244e6a56494 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sat, 20 Mar 2010 15:30:40 -0400 Subject: Implement almost all float functions. --- dimension/lexer.l | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'dimension/lexer.l') 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); -- cgit v1.2.3