From e0f1df0155c91c61167af87aee7dd653a33409f7 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Tue, 9 Mar 2010 12:10:33 -0500 Subject: Preliminary support for global_settings. --- dimension/lexer.l | 91 ++++++++++++++++++++++++++++--------------------------- 1 file changed, 47 insertions(+), 44 deletions(-) (limited to 'dimension/lexer.l') diff --git a/dimension/lexer.l b/dimension/lexer.l index 6531e0c..05c6711 100644 --- a/dimension/lexer.l +++ b/dimension/lexer.l @@ -163,50 +163,53 @@ unsigned long wchar; } (?# Keywords) -"ambient" RETURN_TOKEN(DMNSN_T_AMBIENT); -"angle" RETURN_TOKEN(DMNSN_T_ANGLE); -"background" RETURN_TOKEN(DMNSN_T_BACKGROUND); -"box" RETURN_TOKEN(DMNSN_T_BOX); -"blue" RETURN_TOKEN(DMNSN_T_BLUE); -"camera" RETURN_TOKEN(DMNSN_T_CAMERA); -"color" RETURN_TOKEN(DMNSN_T_COLOR); -"colour" RETURN_TOKEN(DMNSN_T_COLOR); -"direction" RETURN_TOKEN(DMNSN_T_DIRECTION); -"diffuse" RETURN_TOKEN(DMNSN_T_DIFFUSE); -"falloff" RETURN_TOKEN(DMNSN_T_FALLOFF); -"filter" RETURN_TOKEN(DMNSN_T_FILTER); -"finish" RETURN_TOKEN(DMNSN_T_FINISH); -"gray" RETURN_TOKEN(DMNSN_T_GRAY); -"grey" RETURN_TOKEN(DMNSN_T_GRAY); -"green" RETURN_TOKEN(DMNSN_T_GREEN); -"interior" RETURN_TOKEN(DMNSN_T_INTERIOR); -"ior" RETURN_TOKEN(DMNSN_T_IOR); -"location" RETURN_TOKEN(DMNSN_T_LOCATION); -"look_at" RETURN_TOKEN(DMNSN_T_LOOK_AT); -"light_source" RETURN_TOKEN(DMNSN_T_LIGHT_SOURCE); -"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); -"red" RETURN_TOKEN(DMNSN_T_RED); -"reflection" RETURN_TOKEN(DMNSN_T_REFLECTION); -"rgb" RETURN_TOKEN(DMNSN_T_RGB); -"rgbf" RETURN_TOKEN(DMNSN_T_RGBF); -"rgbft" RETURN_TOKEN(DMNSN_T_RGBFT); -"rgbt" RETURN_TOKEN(DMNSN_T_RGBT); -"right" RETURN_TOKEN(DMNSN_T_RIGHT); -"rotate" RETURN_TOKEN(DMNSN_T_ROTATE); -"sphere" RETURN_TOKEN(DMNSN_T_SPHERE); -"sky" RETURN_TOKEN(DMNSN_T_SKY); -"t" RETURN_TOKEN(DMNSN_T_T); -"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); -"x" RETURN_TOKEN(DMNSN_T_X); -"y" RETURN_TOKEN(DMNSN_T_Y); -"z" RETURN_TOKEN(DMNSN_T_Z); +"ambient" RETURN_TOKEN(DMNSN_T_AMBIENT); +"angle" RETURN_TOKEN(DMNSN_T_ANGLE); +"assumed_gamma" RETURN_TOKEN(DMNSN_T_ASSUMED_GAMMA); +"background" RETURN_TOKEN(DMNSN_T_BACKGROUND); +"box" RETURN_TOKEN(DMNSN_T_BOX); +"blue" RETURN_TOKEN(DMNSN_T_BLUE); +"camera" RETURN_TOKEN(DMNSN_T_CAMERA); +"color" RETURN_TOKEN(DMNSN_T_COLOR); +"colour" RETURN_TOKEN(DMNSN_T_COLOR); +"direction" RETURN_TOKEN(DMNSN_T_DIRECTION); +"diffuse" RETURN_TOKEN(DMNSN_T_DIFFUSE); +"falloff" RETURN_TOKEN(DMNSN_T_FALLOFF); +"filter" RETURN_TOKEN(DMNSN_T_FILTER); +"finish" RETURN_TOKEN(DMNSN_T_FINISH); +"global_settings" RETURN_TOKEN(DMNSN_T_GLOBAL_SETTINGS); +"gray" RETURN_TOKEN(DMNSN_T_GRAY); +"grey" RETURN_TOKEN(DMNSN_T_GRAY); +"green" RETURN_TOKEN(DMNSN_T_GREEN); +"interior" RETURN_TOKEN(DMNSN_T_INTERIOR); +"ior" RETURN_TOKEN(DMNSN_T_IOR); +"location" RETURN_TOKEN(DMNSN_T_LOCATION); +"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); +"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); +"red" RETURN_TOKEN(DMNSN_T_RED); +"reflection" RETURN_TOKEN(DMNSN_T_REFLECTION); +"rgb" RETURN_TOKEN(DMNSN_T_RGB); +"rgbf" RETURN_TOKEN(DMNSN_T_RGBF); +"rgbft" RETURN_TOKEN(DMNSN_T_RGBFT); +"rgbt" RETURN_TOKEN(DMNSN_T_RGBT); +"right" RETURN_TOKEN(DMNSN_T_RIGHT); +"rotate" RETURN_TOKEN(DMNSN_T_ROTATE); +"sphere" RETURN_TOKEN(DMNSN_T_SPHERE); +"sky" RETURN_TOKEN(DMNSN_T_SKY); +"t" RETURN_TOKEN(DMNSN_T_T); +"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); +"x" RETURN_TOKEN(DMNSN_T_X); +"y" RETURN_TOKEN(DMNSN_T_Y); +"z" RETURN_TOKEN(DMNSN_T_Z); (?# Directives) #[\b\r\t\v ]*break RETURN_TOKEN(DMNSN_T_BREAK); -- cgit v1.2.3