1 /*
2 -----------------------------------------------------------------------------
3 This source file is part of OGRE
4 (Object-oriented Graphics Rendering Engine)
5 For the latest info, see http://www.ogre3d.org/
6 
7 Copyright (c) 2000-2013 Torus Knot Software Ltd
8 
9 Permission is hereby granted, free of charge, to any person obtaining a copy
10 of this software and associated documentation files (the "Software"), to deal
11 in the Software without restriction, including without limitation the rights
12 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13 copies of the Software, and to permit persons to whom the Software is
14 furnished to do so, subject to the following conditions:
15 
16 The above copyright notice and this permission notice shall be included in
17 all copies or substantial portions of the Software.
18 
19 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25 THE SOFTWARE.
26 -----------------------------------------------------------------------------
27 */
28 /* A Bison parser, made by GNU Bison 1.875.  */
29 
30 /* Skeleton parser for Yacc-like parsing with Bison,
31    Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 Free Software Foundation, Inc.
32 
33    This program is free software; you can redistribute it and/or modify
34    it under the terms of the GNU General Public License as published by
35    the Free Software Foundation; either version 2, or (at your option)
36    any later version.
37 
38    This program is distributed in the hope that it will be useful,
39    but WITHOUT ANY WARRANTY; without even the implied warranty of
40    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
41    GNU General Public License for more details.
42 
43    You should have received a copy of the GNU General Public License
44    along with this program; if not, write to the Free Software
45    Foundation, Inc., 59 Temple Place - Suite 330,
46    Boston, MA 02111-1307, USA.  */
47 
48 /* As a special exception, when this file is copied by Bison into a
49    Bison output file, you may use that output file without restriction.
50    This special exception was added by the Free Software Foundation
51    in version 1.24 of Bison.  */
52 
53 /* Tokens.  */
54 #ifndef YYTOKENTYPE
55 # define YYTOKENTYPE
56    /* Put the tokens into the symbol table, so that GDB and other debuggers
57       know about them.  */
58    enum yytokentype {
59      HEADER = 258,
60      NEWLINE = 259,
61      NUMBER = 260,
62      REG = 261,
63      DEF = 262,
64      ADDROP = 263,
65      BLENDOP = 264
66    };
67 #endif
68 #define HEADER 258
69 #define NEWLINE 259
70 #define NUMBER 260
71 #define REG 261
72 #define DEF 262
73 #define ADDROP 263
74 #define BLENDOP 264
75 
76 
77 
78 
79 #if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
80 #line 43 "ps1.0_grammar.y"
81 typedef union YYSTYPE {
82 	int ival;
83 	float fval;
84 
85 	string * sval;
86 	constdef * cdef;
87 	vector<constdef> * consts;
88 	vector<string> * line;
89 	list<vector<string> > * lines;
90 } YYSTYPE;
91 /* Line 1240 of yacc.c.  */
92 #line 65 "_ps1.0_parser.h"
93 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
94 # define YYSTYPE_IS_DECLARED 1
95 # define YYSTYPE_IS_TRIVIAL 1
96 #endif
97 
98 extern YYSTYPE ps10_lval;
99 
100 
101 
102