_ps1.0_parser.h 3.4 KB

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