cmExprLexer.h 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
  4. Distributed under the OSI-approved BSD License (the "License");
  5. see accompanying file Copyright.txt for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even the
  7. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the License for more information.
  9. ============================================================================*/
  10. #ifndef cmExpr_yyHEADER_H
  11. #define cmExpr_yyHEADER_H 1
  12. #define cmExpr_yyIN_HEADER 1
  13. #define YY_INT_ALIGNED short int
  14. /* A lexical scanner generated by flex */
  15. #define FLEX_SCANNER
  16. #define YY_FLEX_MAJOR_VERSION 2
  17. #define YY_FLEX_MINOR_VERSION 5
  18. #define YY_FLEX_SUBMINOR_VERSION 31
  19. #if YY_FLEX_SUBMINOR_VERSION > 0
  20. #define FLEX_BETA
  21. #endif
  22. /* First, we deal with platform-specific or compiler-specific issues. */
  23. /* begin standard C headers. */
  24. #include <stdio.h>
  25. #include <string.h>
  26. #include <errno.h>
  27. #include <stdlib.h>
  28. /* end standard C headers. */
  29. /* flex integer type definitions */
  30. #ifndef FLEXINT_H
  31. #define FLEXINT_H
  32. /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
  33. #if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L
  34. #include <inttypes.h>
  35. typedef int8_t flex_int8_t;
  36. typedef uint8_t flex_uint8_t;
  37. typedef int16_t flex_int16_t;
  38. typedef uint16_t flex_uint16_t;
  39. typedef int32_t flex_int32_t;
  40. typedef uint32_t flex_uint32_t;
  41. #else
  42. typedef signed char flex_int8_t;
  43. typedef short int flex_int16_t;
  44. typedef int flex_int32_t;
  45. typedef unsigned char flex_uint8_t;
  46. typedef unsigned short int flex_uint16_t;
  47. typedef unsigned int flex_uint32_t;
  48. #endif /* ! C99 */
  49. /* Limits of integral types. */
  50. #ifndef INT8_MIN
  51. #define INT8_MIN (-128)
  52. #endif
  53. #ifndef INT16_MIN
  54. #define INT16_MIN (-32767-1)
  55. #endif
  56. #ifndef INT32_MIN
  57. #define INT32_MIN (-2147483647-1)
  58. #endif
  59. #ifndef INT8_MAX
  60. #define INT8_MAX (127)
  61. #endif
  62. #ifndef INT16_MAX
  63. #define INT16_MAX (32767)
  64. #endif
  65. #ifndef INT32_MAX
  66. #define INT32_MAX (2147483647)
  67. #endif
  68. #ifndef UINT8_MAX
  69. #define UINT8_MAX (255U)
  70. #endif
  71. #ifndef UINT16_MAX
  72. #define UINT16_MAX (65535U)
  73. #endif
  74. #ifndef UINT32_MAX
  75. #define UINT32_MAX (4294967295U)
  76. #endif
  77. #endif /* ! FLEXINT_H */
  78. #ifdef __cplusplus
  79. /* The "const" storage-class-modifier is valid. */
  80. #define YY_USE_CONST
  81. #else /* ! __cplusplus */
  82. #if __STDC__
  83. #define YY_USE_CONST
  84. #endif /* __STDC__ */
  85. #endif /* ! __cplusplus */
  86. #ifdef YY_USE_CONST
  87. #define yyconst const
  88. #else
  89. #define yyconst
  90. #endif
  91. /* An opaque pointer. */
  92. #ifndef YY_TYPEDEF_YY_SCANNER_T
  93. #define YY_TYPEDEF_YY_SCANNER_T
  94. typedef void* yyscan_t;
  95. #endif
  96. /* For convenience, these vars (plus the bison vars far below)
  97. are macros in the reentrant scanner. */
  98. #define yyin yyg->yyin_r
  99. #define yyout yyg->yyout_r
  100. #define yyextra yyg->yyextra_r
  101. #define yyleng yyg->yyleng_r
  102. #define yytext yyg->yytext_r
  103. #define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
  104. #define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
  105. #define yy_flex_debug yyg->yy_flex_debug_r
  106. int cmExpr_yylex_init (yyscan_t* scanner);
  107. #ifndef YY_TYPEDEF_YY_BUFFER_STATE
  108. #define YY_TYPEDEF_YY_BUFFER_STATE
  109. typedef struct yy_buffer_state *YY_BUFFER_STATE;
  110. #endif
  111. /* The following is because we cannot portably get our hands on size_t
  112. * (without autoconf's help, which isn't available because we want
  113. * flex-generated scanners to compile on their own).
  114. */
  115. #ifndef YY_TYPEDEF_YY_SIZE_T
  116. #define YY_TYPEDEF_YY_SIZE_T
  117. typedef unsigned int yy_size_t;
  118. #endif
  119. #ifndef YY_STRUCT_YY_BUFFER_STATE
  120. #define YY_STRUCT_YY_BUFFER_STATE
  121. struct yy_buffer_state
  122. {
  123. FILE *yy_input_file;
  124. char *yy_ch_buf; /* input buffer */
  125. char *yy_buf_pos; /* current position in input buffer */
  126. /* Size of input buffer in bytes, not including room for EOB
  127. * characters.
  128. */
  129. yy_size_t yy_buf_size;
  130. /* Number of characters read into yy_ch_buf, not including EOB
  131. * characters.
  132. */
  133. int yy_n_chars;
  134. /* Whether we "own" the buffer - i.e., we know we created it,
  135. * and can realloc() it to grow it, and should free() it to
  136. * delete it.
  137. */
  138. int yy_is_our_buffer;
  139. /* Whether this is an "interactive" input source; if so, and
  140. * if we're using stdio for input, then we want to use getc()
  141. * instead of fread(), to make sure we stop fetching input after
  142. * each newline.
  143. */
  144. int yy_is_interactive;
  145. /* Whether we're considered to be at the beginning of a line.
  146. * If so, '^' rules will be active on the next match, otherwise
  147. * not.
  148. */
  149. int yy_at_bol;
  150. int yy_bs_lineno; /**< The line count. */
  151. int yy_bs_column; /**< The column count. */
  152. /* Whether to try to fill the input buffer when we reach the
  153. * end of it.
  154. */
  155. int yy_fill_buffer;
  156. int yy_buffer_status;
  157. };
  158. #endif /* !YY_STRUCT_YY_BUFFER_STATE */
  159. void cmExpr_yyrestart (FILE *input_file ,yyscan_t yyscanner );
  160. void cmExpr_yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ,
  161. yyscan_t yyscanner );
  162. YY_BUFFER_STATE cmExpr_yy_create_buffer (FILE *file,int size ,
  163. yyscan_t yyscanner );
  164. void cmExpr_yy_delete_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
  165. void cmExpr_yy_flush_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
  166. void cmExpr_yypush_buffer_state (YY_BUFFER_STATE new_buffer ,
  167. yyscan_t yyscanner );
  168. void cmExpr_yypop_buffer_state (yyscan_t yyscanner );
  169. YY_BUFFER_STATE cmExpr_yy_scan_buffer (char *base,yy_size_t size ,
  170. yyscan_t yyscanner );
  171. YY_BUFFER_STATE cmExpr_yy_scan_string (yyconst char *yy_str ,
  172. yyscan_t yyscanner );
  173. YY_BUFFER_STATE cmExpr_yy_scan_bytes (yyconst char *bytes,int len ,
  174. yyscan_t yyscanner );
  175. void *cmExpr_yyalloc (yy_size_t ,yyscan_t yyscanner );
  176. void *cmExpr_yyrealloc (void *,yy_size_t ,yyscan_t yyscanner );
  177. void cmExpr_yyfree (void * ,yyscan_t yyscanner );
  178. /* Begin user sect3 */
  179. #define cmExpr_yywrap(n) 1
  180. #define YY_SKIP_YYWRAP
  181. #define yytext_ptr yytext_r
  182. #ifdef YY_HEADER_EXPORT_START_CONDITIONS
  183. #define INITIAL 0
  184. #endif
  185. #ifndef YY_EXTRA_TYPE
  186. #define YY_EXTRA_TYPE void *
  187. #endif
  188. /* Accessor methods to globals.
  189. These are made visible to non-reentrant scanners for convenience. */
  190. int cmExpr_yylex_destroy (yyscan_t yyscanner );
  191. int cmExpr_yyget_debug (yyscan_t yyscanner );
  192. void cmExpr_yyset_debug (int debug_flag ,yyscan_t yyscanner );
  193. YY_EXTRA_TYPE cmExpr_yyget_extra (yyscan_t yyscanner );
  194. void cmExpr_yyset_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner );
  195. FILE *cmExpr_yyget_in (yyscan_t yyscanner );
  196. void cmExpr_yyset_in (FILE * in_str ,yyscan_t yyscanner );
  197. FILE *cmExpr_yyget_out (yyscan_t yyscanner );
  198. void cmExpr_yyset_out (FILE * out_str ,yyscan_t yyscanner );
  199. int cmExpr_yyget_leng (yyscan_t yyscanner );
  200. char *cmExpr_yyget_text (yyscan_t yyscanner );
  201. int cmExpr_yyget_lineno (yyscan_t yyscanner );
  202. void cmExpr_yyset_lineno (int line_number ,yyscan_t yyscanner );
  203. /* Macros after this point can all be overridden by user definitions in
  204. * section 1.
  205. */
  206. #ifndef YY_SKIP_YYWRAP
  207. #ifdef __cplusplus
  208. extern "C" int cmExpr_yywrap (yyscan_t yyscanner );
  209. #else
  210. extern int cmExpr_yywrap (yyscan_t yyscanner );
  211. #endif
  212. #endif
  213. #ifndef yytext_ptr
  214. static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner);
  215. #endif
  216. #ifdef YY_NEED_STRLEN
  217. static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner);
  218. #endif
  219. #ifndef YY_NO_INPUT
  220. #endif
  221. /* Amount of stuff to slurp up with each read. */
  222. #ifndef YY_READ_BUF_SIZE
  223. #define YY_READ_BUF_SIZE 8192
  224. #endif
  225. /* Number of entries by which start-condition stack grows. */
  226. #ifndef YY_START_STACK_INCR
  227. #define YY_START_STACK_INCR 25
  228. #endif
  229. /* Default declaration of generated scanner - a define so the user can
  230. * easily add parameters.
  231. */
  232. #ifndef YY_DECL
  233. #define YY_DECL_IS_OURS 1
  234. extern int cmExpr_yylex (yyscan_t yyscanner);
  235. #define YY_DECL int cmExpr_yylex (yyscan_t yyscanner)
  236. #endif /* !YY_DECL */
  237. /* yy_get_previous_state - get the state just before the EOB char was
  238. reached */
  239. #undef YY_NEW_FILE
  240. #undef YY_FLUSH_BUFFER
  241. #undef yy_set_bol
  242. #undef yy_new_buffer
  243. #undef yy_set_interactive
  244. #undef yytext_ptr
  245. #undef YY_DO_BEFORE_ACTION
  246. #ifdef YY_DECL_IS_OURS
  247. #undef YY_DECL_IS_OURS
  248. #undef YY_DECL
  249. #endif
  250. #undef cmExpr_yyIN_HEADER
  251. #endif /* cmExpr_yyHEADER_H */