From 40752ebfb3ec8355b4f17681f8aab0ca7f6992f4 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Mon, 1 Feb 2010 21:27:12 -0500 Subject: Implement #declare, #local, and #undef in middle tier. Oh God this is ugly... --- dimension/common.nonterminals | 75 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 dimension/common.nonterminals (limited to 'dimension/common.nonterminals') diff --git a/dimension/common.nonterminals b/dimension/common.nonterminals new file mode 100644 index 0000000..48e7335 --- /dev/null +++ b/dimension/common.nonterminals @@ -0,0 +1,75 @@ +/************************************************************************* + * Copyright (C) 2010 Tavian Barnes * + * * + * This file is part of Dimension. * + * * + * Dimension is free software; you can redistribute it and/or modify it * + * under the terms of the GNU General Public License as published by the * + * Free Software Foundation; either version 3 of the License, or (at * + * your option) any later version. * + * * + * Dimension is distributed in the hope that it will be useful, but * + * WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * + * General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + *************************************************************************/ + +/* Identifiers */ +%type IDENTIFIER + +/* Transformations */ +%type TRANSFORMATION + +/* The camera */ +%type CAMERA +%type CAMERA_ITEMS +%type CAMERA_ITEM +%type CAMERA_TYPE +%type CAMERA_VECTOR +%type CAMERA_MODIFIER + +/* Objects */ +%type OBJECT +%type FINITE_SOLID_OBJECT +%type BOX +%type LIGHT_SOURCE +%type SPHERE + +/* Object modifiers */ +%type OBJECT_MODIFIERS +%type OBJECT_MODIFIER + +/* Textures */ +%type TEXTURE +%type TEXTURE_ITEMS + +/* Pigments */ +%type PIGMENT +%type PIGMENT_TYPE + +/* Finishes */ +%type FINISH +%type FINISH_ITEMS +%type REFLECTION +%type REFLECTION_ITEMS + +/* Floats */ +%type FLOAT +%type FLOAT_LITERAL + +/* Vectors */ +%type VECTOR +%type VECTOR_LITERAL + +/* Generalized arithmetic expressions */ +%type ARITH_EXPR + +/* Colors */ +%type COLOR +%type COLOR_BODY +%type COLOR_VECTOR +%type COLOR_KEYWORD_GROUP +%type COLOR_KEYWORD_GROUP_INIT -- cgit v1.2.3