_vs1.0_parser.h 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  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. VERTEX_SHADER = 258,
  50. ADD_INSTR = 259,
  51. DP3_INSTR = 260,
  52. DP4_INSTR = 261,
  53. DST_INSTR = 262,
  54. EXP_INSTR = 263,
  55. EXPP_INSTR = 264,
  56. FRC_INSTR = 265,
  57. LIT_INSTR = 266,
  58. LOG_INSTR = 267,
  59. LOGP_INSTR = 268,
  60. M3X2_INSTR = 269,
  61. M3X3_INSTR = 270,
  62. M3X4_INSTR = 271,
  63. M4X3_INSTR = 272,
  64. M4X4_INSTR = 273,
  65. MAD_INSTR = 274,
  66. MAX_INSTR = 275,
  67. MIN_INSTR = 276,
  68. MOV_INSTR = 277,
  69. MUL_INSTR = 278,
  70. NOP_INSTR = 279,
  71. RCP_INSTR = 280,
  72. RSQ_INSTR = 281,
  73. SGE_INSTR = 282,
  74. SLT_INSTR = 283,
  75. SUB_INSTR = 284,
  76. ILLEGAL = 285,
  77. UNKNOWN_STRING = 286,
  78. INTVAL = 287,
  79. REGISTER = 288,
  80. XYZW_MODIFIER = 289,
  81. COMMENT = 290
  82. };
  83. #endif
  84. #define VERTEX_SHADER 258
  85. #define ADD_INSTR 259
  86. #define DP3_INSTR 260
  87. #define DP4_INSTR 261
  88. #define DST_INSTR 262
  89. #define EXP_INSTR 263
  90. #define EXPP_INSTR 264
  91. #define FRC_INSTR 265
  92. #define LIT_INSTR 266
  93. #define LOG_INSTR 267
  94. #define LOGP_INSTR 268
  95. #define M3X2_INSTR 269
  96. #define M3X3_INSTR 270
  97. #define M3X4_INSTR 271
  98. #define M4X3_INSTR 272
  99. #define M4X4_INSTR 273
  100. #define MAD_INSTR 274
  101. #define MAX_INSTR 275
  102. #define MIN_INSTR 276
  103. #define MOV_INSTR 277
  104. #define MUL_INSTR 278
  105. #define NOP_INSTR 279
  106. #define RCP_INSTR 280
  107. #define RSQ_INSTR 281
  108. #define SGE_INSTR 282
  109. #define SLT_INSTR 283
  110. #define SUB_INSTR 284
  111. #define ILLEGAL 285
  112. #define UNKNOWN_STRING 286
  113. #define INTVAL 287
  114. #define REGISTER 288
  115. #define XYZW_MODIFIER 289
  116. #define COMMENT 290
  117. #if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
  118. #line 27 "vs1.0_grammar.y"
  119. typedef union YYSTYPE {
  120. int ival;
  121. unsigned int lval;
  122. float fval;
  123. char mask[4];
  124. char *comment;
  125. VS10Reg reg;
  126. VS10InstPtr inst;
  127. VS10InstListPtr instList;
  128. } YYSTYPE;
  129. /* Line 1240 of yacc.c. */
  130. #line 117 "_vs1.0_parser.h"
  131. # define yystype YYSTYPE /* obsolescent; will be withdrawn */
  132. # define YYSTYPE_IS_DECLARED 1
  133. # define YYSTYPE_IS_TRIVIAL 1
  134. #endif
  135. extern YYSTYPE vs10_lval;