cmCommandArgumentLexer.h 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #ifndef cmCommandArgument_yyHEADER_H
  4. #define cmCommandArgument_yyHEADER_H 1
  5. #define cmCommandArgument_yyIN_HEADER 1
  6. #define YY_INT_ALIGNED short int
  7. /* A lexical scanner generated by flex */
  8. #define FLEX_SCANNER
  9. #define YY_FLEX_MAJOR_VERSION 2
  10. #define YY_FLEX_MINOR_VERSION 5
  11. #define YY_FLEX_SUBMINOR_VERSION 35
  12. #if YY_FLEX_SUBMINOR_VERSION > 0
  13. #define FLEX_BETA
  14. #endif
  15. /* First, we deal with platform-specific or compiler-specific issues. */
  16. /* begin standard C headers. */
  17. #include <stdio.h>
  18. #include <string.h>
  19. #include <errno.h>
  20. #include <stdlib.h>
  21. /* end standard C headers. */
  22. /* flex integer type definitions */
  23. #ifndef FLEXINT_H
  24. #define FLEXINT_H
  25. /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
  26. #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
  27. /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
  28. * if you want the limit (max/min) macros for int types.
  29. */
  30. #ifndef __STDC_LIMIT_MACROS
  31. #define __STDC_LIMIT_MACROS 1
  32. #endif
  33. #include <inttypes.h>
  34. typedef int8_t flex_int8_t;
  35. typedef uint8_t flex_uint8_t;
  36. typedef int16_t flex_int16_t;
  37. typedef uint16_t flex_uint16_t;
  38. typedef int32_t flex_int32_t;
  39. typedef uint32_t flex_uint32_t;
  40. #else
  41. typedef signed char flex_int8_t;
  42. typedef short int flex_int16_t;
  43. typedef int flex_int32_t;
  44. typedef unsigned char flex_uint8_t;
  45. typedef unsigned short int flex_uint16_t;
  46. typedef unsigned int flex_uint32_t;
  47. /* Limits of integral types. */
  48. #ifndef INT8_MIN
  49. #define INT8_MIN (-128)
  50. #endif
  51. #ifndef INT16_MIN
  52. #define INT16_MIN (-32767-1)
  53. #endif
  54. #ifndef INT32_MIN
  55. #define INT32_MIN (-2147483647-1)
  56. #endif
  57. #ifndef INT8_MAX
  58. #define INT8_MAX (127)
  59. #endif
  60. #ifndef INT16_MAX
  61. #define INT16_MAX (32767)
  62. #endif
  63. #ifndef INT32_MAX
  64. #define INT32_MAX (2147483647)
  65. #endif
  66. #ifndef UINT8_MAX
  67. #define UINT8_MAX (255U)
  68. #endif
  69. #ifndef UINT16_MAX
  70. #define UINT16_MAX (65535U)
  71. #endif
  72. #ifndef UINT32_MAX
  73. #define UINT32_MAX (4294967295U)
  74. #endif
  75. #endif /* ! C99 */
  76. #endif /* ! FLEXINT_H */
  77. #ifdef __cplusplus
  78. /* The "const" storage-class-modifier is valid. */
  79. #define YY_USE_CONST
  80. #else /* ! __cplusplus */
  81. /* C99 requires __STDC__ to be defined as 1. */
  82. #if defined (__STDC__)
  83. #define YY_USE_CONST
  84. #endif /* defined (__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. /* Size of default input buffer. */
  107. #ifndef YY_BUF_SIZE
  108. #define YY_BUF_SIZE 16384
  109. #endif
  110. #ifndef YY_TYPEDEF_YY_BUFFER_STATE
  111. #define YY_TYPEDEF_YY_BUFFER_STATE
  112. typedef struct yy_buffer_state *YY_BUFFER_STATE;
  113. #endif
  114. #ifndef YY_TYPEDEF_YY_SIZE_T
  115. #define YY_TYPEDEF_YY_SIZE_T
  116. typedef size_t yy_size_t;
  117. #endif
  118. #ifndef YY_STRUCT_YY_BUFFER_STATE
  119. #define YY_STRUCT_YY_BUFFER_STATE
  120. struct yy_buffer_state
  121. {
  122. FILE *yy_input_file;
  123. char *yy_ch_buf; /* input buffer */
  124. char *yy_buf_pos; /* current position in input buffer */
  125. /* Size of input buffer in bytes, not including room for EOB
  126. * characters.
  127. */
  128. yy_size_t yy_buf_size;
  129. /* Number of characters read into yy_ch_buf, not including EOB
  130. * characters.
  131. */
  132. int yy_n_chars;
  133. /* Whether we "own" the buffer - i.e., we know we created it,
  134. * and can realloc() it to grow it, and should free() it to
  135. * delete it.
  136. */
  137. int yy_is_our_buffer;
  138. /* Whether this is an "interactive" input source; if so, and
  139. * if we're using stdio for input, then we want to use getc()
  140. * instead of fread(), to make sure we stop fetching input after
  141. * each newline.
  142. */
  143. int yy_is_interactive;
  144. /* Whether we're considered to be at the beginning of a line.
  145. * If so, '^' rules will be active on the next match, otherwise
  146. * not.
  147. */
  148. int yy_at_bol;
  149. int yy_bs_lineno; /**< The line count. */
  150. int yy_bs_column; /**< The column count. */
  151. /* Whether to try to fill the input buffer when we reach the
  152. * end of it.
  153. */
  154. int yy_fill_buffer;
  155. int yy_buffer_status;
  156. };
  157. #endif /* !YY_STRUCT_YY_BUFFER_STATE */
  158. void cmCommandArgument_yyrestart (FILE *input_file ,yyscan_t yyscanner );
  159. void cmCommandArgument_yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
  160. YY_BUFFER_STATE cmCommandArgument_yy_create_buffer (FILE *file,int size ,yyscan_t yyscanner );
  161. void cmCommandArgument_yy_delete_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
  162. void cmCommandArgument_yy_flush_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
  163. void cmCommandArgument_yypush_buffer_state (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
  164. void cmCommandArgument_yypop_buffer_state (yyscan_t yyscanner );
  165. YY_BUFFER_STATE cmCommandArgument_yy_scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner );
  166. YY_BUFFER_STATE cmCommandArgument_yy_scan_string (yyconst char *yy_str ,yyscan_t yyscanner );
  167. YY_BUFFER_STATE cmCommandArgument_yy_scan_bytes (yyconst char *bytes,int len ,yyscan_t yyscanner );
  168. void *cmCommandArgument_yyalloc (yy_size_t ,yyscan_t yyscanner );
  169. void *cmCommandArgument_yyrealloc (void *,yy_size_t ,yyscan_t yyscanner );
  170. void cmCommandArgument_yyfree (void * ,yyscan_t yyscanner );
  171. /* Begin user sect3 */
  172. #define cmCommandArgument_yywrap(n) 1
  173. #define YY_SKIP_YYWRAP
  174. #define yytext_ptr yytext_r
  175. #ifdef YY_HEADER_EXPORT_START_CONDITIONS
  176. #define INITIAL 0
  177. #define ESCAPES 1
  178. #define NOESCAPES 2
  179. #endif
  180. #ifndef YY_EXTRA_TYPE
  181. #define YY_EXTRA_TYPE void *
  182. #endif
  183. int cmCommandArgument_yylex_init (yyscan_t* scanner);
  184. int cmCommandArgument_yylex_init_extra (YY_EXTRA_TYPE user_defined,yyscan_t* scanner);
  185. /* Accessor methods to globals.
  186. These are made visible to non-reentrant scanners for convenience. */
  187. int cmCommandArgument_yylex_destroy (yyscan_t yyscanner );
  188. int cmCommandArgument_yyget_debug (yyscan_t yyscanner );
  189. void cmCommandArgument_yyset_debug (int debug_flag ,yyscan_t yyscanner );
  190. YY_EXTRA_TYPE cmCommandArgument_yyget_extra (yyscan_t yyscanner );
  191. void cmCommandArgument_yyset_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner );
  192. FILE *cmCommandArgument_yyget_in (yyscan_t yyscanner );
  193. void cmCommandArgument_yyset_in (FILE * in_str ,yyscan_t yyscanner );
  194. FILE *cmCommandArgument_yyget_out (yyscan_t yyscanner );
  195. void cmCommandArgument_yyset_out (FILE * out_str ,yyscan_t yyscanner );
  196. int cmCommandArgument_yyget_leng (yyscan_t yyscanner );
  197. char *cmCommandArgument_yyget_text (yyscan_t yyscanner );
  198. int cmCommandArgument_yyget_lineno (yyscan_t yyscanner );
  199. void cmCommandArgument_yyset_lineno (int line_number ,yyscan_t yyscanner );
  200. /* Macros after this point can all be overridden by user definitions in
  201. * section 1.
  202. */
  203. #ifndef YY_SKIP_YYWRAP
  204. #ifdef __cplusplus
  205. extern "C" int cmCommandArgument_yywrap (yyscan_t yyscanner );
  206. #else
  207. extern int cmCommandArgument_yywrap (yyscan_t yyscanner );
  208. #endif
  209. #endif
  210. #ifndef yytext_ptr
  211. static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner);
  212. #endif
  213. #ifdef YY_NEED_STRLEN
  214. static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner);
  215. #endif
  216. #ifndef YY_NO_INPUT
  217. #endif
  218. /* Amount of stuff to slurp up with each read. */
  219. #ifndef YY_READ_BUF_SIZE
  220. #define YY_READ_BUF_SIZE 8192
  221. #endif
  222. /* Number of entries by which start-condition stack grows. */
  223. #ifndef YY_START_STACK_INCR
  224. #define YY_START_STACK_INCR 25
  225. #endif
  226. /* Default declaration of generated scanner - a define so the user can
  227. * easily add parameters.
  228. */
  229. #ifndef YY_DECL
  230. #define YY_DECL_IS_OURS 1
  231. extern int cmCommandArgument_yylex (yyscan_t yyscanner);
  232. #define YY_DECL int cmCommandArgument_yylex (yyscan_t yyscanner)
  233. #endif /* !YY_DECL */
  234. /* yy_get_previous_state - get the state just before the EOB char was reached */
  235. #undef YY_NEW_FILE
  236. #undef YY_FLUSH_BUFFER
  237. #undef yy_set_bol
  238. #undef yy_new_buffer
  239. #undef yy_set_interactive
  240. #undef YY_DO_BEFORE_ACTION
  241. #ifdef YY_DECL_IS_OURS
  242. #undef YY_DECL_IS_OURS
  243. #undef YY_DECL
  244. #endif
  245. #undef cmCommandArgument_yyIN_HEADER
  246. #endif /* cmCommandArgument_yyHEADER_H */