From 557dfdbb9b770f755feae04afe9aaef60d63ada3 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Fri, 29 Jan 2010 18:59:22 -0500 Subject: Split grammar.y to allow code re-use. --- dimension/grammar.nonterminals | 83 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 dimension/grammar.nonterminals (limited to 'dimension/grammar.nonterminals') diff --git a/dimension/grammar.nonterminals b/dimension/grammar.nonterminals new file mode 100644 index 0000000..ae752c3 --- /dev/null +++ b/dimension/grammar.nonterminals @@ -0,0 +1,83 @@ +/************************************************************************* + * 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 . * + *************************************************************************/ + +/* Top-level items */ +%type SCENE_ITEM + +/* Language directives */ +%type RVALUE +%type IDENTIFIER + +/* Transformations */ +%type TRANSFORMATION + +/* The camera */ +%type CAMERA +%type CAMERA_ITEMS +%type CAMERA_ITEM +%type CAMERA_TYPE +%type CAMERA_VECTOR +%type CAMERA_MODIFIER + +/* Atmospheric effects */ +%type ATMOSPHERIC_EFFECT +%type BACKGROUND + +/* 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