langscan 1.2-x86-mswin32-60

Sign up to get free protection for your applications and to get access to all the features.
Files changed (180) hide show
  1. data/AUTHORS.txt +19 -0
  2. data/History.txt +126 -0
  3. data/Manifest.txt +167 -0
  4. data/README.rdoc +91 -0
  5. data/Rakefile +40 -0
  6. data/ext/langscan/_make_c.rb +20 -0
  7. data/ext/langscan/_make_h.rb +30 -0
  8. data/ext/langscan/_template.c +134 -0
  9. data/ext/langscan/_template.h +53 -0
  10. data/ext/langscan/c/c/Makefile +188 -0
  11. data/ext/langscan/c/c/c.c +134 -0
  12. data/ext/langscan/c/c/c.h +66 -0
  13. data/ext/langscan/c/c/ctok.c +4629 -0
  14. data/ext/langscan/c/c/ctok.l +212 -0
  15. data/ext/langscan/c/c/extconf.rb +3 -0
  16. data/ext/langscan/c/c/modulename.txt +1 -0
  17. data/ext/langscan/c/c/tokenlist.txt +13 -0
  18. data/ext/langscan/csharp/csharp/Makefile +188 -0
  19. data/ext/langscan/csharp/csharp/csharp.c +134 -0
  20. data/ext/langscan/csharp/csharp/csharp.h +65 -0
  21. data/ext/langscan/csharp/csharp/csharptok.c +2971 -0
  22. data/ext/langscan/csharp/csharp/csharptok.l +200 -0
  23. data/ext/langscan/csharp/csharp/extconf.rb +3 -0
  24. data/ext/langscan/csharp/csharp/modulename.txt +1 -0
  25. data/ext/langscan/csharp/csharp/tokenlist.txt +12 -0
  26. data/ext/langscan/d/d/Makefile +188 -0
  27. data/ext/langscan/d/d/d.c +134 -0
  28. data/ext/langscan/d/d/d.h +64 -0
  29. data/ext/langscan/d/d/dtok.c +5468 -0
  30. data/ext/langscan/d/d/dtok.l +282 -0
  31. data/ext/langscan/d/d/extconf.rb +3 -0
  32. data/ext/langscan/d/d/modulename.txt +1 -0
  33. data/ext/langscan/d/d/tokenlist.txt +11 -0
  34. data/ext/langscan/elisp/elisp/Makefile +188 -0
  35. data/ext/langscan/elisp/elisp/elisp.c +134 -0
  36. data/ext/langscan/elisp/elisp/elisp.h +62 -0
  37. data/ext/langscan/elisp/elisp/elisptok.c +2108 -0
  38. data/ext/langscan/elisp/elisp/elisptok.l +151 -0
  39. data/ext/langscan/elisp/elisp/extconf.rb +3 -0
  40. data/ext/langscan/elisp/elisp/modulename.txt +1 -0
  41. data/ext/langscan/elisp/elisp/tokenlist.txt +9 -0
  42. data/ext/langscan/java/java/Makefile +188 -0
  43. data/ext/langscan/java/java/extconf.rb +3 -0
  44. data/ext/langscan/java/java/java.c +134 -0
  45. data/ext/langscan/java/java/java.h +64 -0
  46. data/ext/langscan/java/java/javatok.c +2097 -0
  47. data/ext/langscan/java/java/javatok.l +155 -0
  48. data/ext/langscan/java/java/modulename.txt +1 -0
  49. data/ext/langscan/java/java/tokenlist.txt +11 -0
  50. data/ext/langscan/javascript/javascript/Makefile +188 -0
  51. data/ext/langscan/javascript/javascript/extconf.rb +3 -0
  52. data/ext/langscan/javascript/javascript/javascript.c +134 -0
  53. data/ext/langscan/javascript/javascript/javascript.h +63 -0
  54. data/ext/langscan/javascript/javascript/javascripttok.c +2058 -0
  55. data/ext/langscan/javascript/javascript/javascripttok.l +147 -0
  56. data/ext/langscan/javascript/javascript/modulename.txt +1 -0
  57. data/ext/langscan/javascript/javascript/tokenlist.txt +10 -0
  58. data/ext/langscan/pairmatcher/pairmatcher/Makefile +188 -0
  59. data/ext/langscan/pairmatcher/pairmatcher/extconf.rb +3 -0
  60. data/ext/langscan/pairmatcher/pairmatcher/pairmatcher.c +890 -0
  61. data/ext/langscan/php/php/Makefile +188 -0
  62. data/ext/langscan/php/php/extconf.rb +3 -0
  63. data/ext/langscan/php/php/modulename.txt +1 -0
  64. data/ext/langscan/php/php/php.c +134 -0
  65. data/ext/langscan/php/php/php.h +64 -0
  66. data/ext/langscan/php/php/phptok.c +2413 -0
  67. data/ext/langscan/php/php/phptok.l +212 -0
  68. data/ext/langscan/php/php/tokenlist.txt +11 -0
  69. data/ext/langscan/post-distclean.rb +21 -0
  70. data/ext/langscan/pre-config.rb +57 -0
  71. data/ext/langscan/python/python/Makefile +188 -0
  72. data/ext/langscan/python/python/extconf.rb +3 -0
  73. data/ext/langscan/python/python/modulename.txt +1 -0
  74. data/ext/langscan/python/python/python.c +134 -0
  75. data/ext/langscan/python/python/python.h +61 -0
  76. data/ext/langscan/python/python/pythontok.c +2109 -0
  77. data/ext/langscan/python/python/pythontok.l +155 -0
  78. data/ext/langscan/python/python/tokenlist.txt +8 -0
  79. data/ext/langscan/ruby/compat/ripper/Makefile +189 -0
  80. data/ext/langscan/ruby/compat/ripper/depend +1 -0
  81. data/ext/langscan/ruby/compat/ripper/extconf.rb +4 -0
  82. data/ext/langscan/ruby/compat/ripper/include/eventids1.c +251 -0
  83. data/ext/langscan/ruby/compat/ripper/include/eventids2.c +277 -0
  84. data/ext/langscan/ruby/compat/ripper/include/lex.c +138 -0
  85. data/ext/langscan/ruby/compat/ripper/ripper.c +14420 -0
  86. data/ext/langscan/scheme/scheme/Makefile +188 -0
  87. data/ext/langscan/scheme/scheme/extconf.rb +3 -0
  88. data/ext/langscan/scheme/scheme/modulename.txt +1 -0
  89. data/ext/langscan/scheme/scheme/scheme.c +134 -0
  90. data/ext/langscan/scheme/scheme/scheme.h +60 -0
  91. data/ext/langscan/scheme/scheme/schemetok.c +2454 -0
  92. data/ext/langscan/scheme/scheme/schemetok.l +177 -0
  93. data/ext/langscan/scheme/scheme/tokenlist.txt +7 -0
  94. data/ext/langscan/sh/sh/Makefile +188 -0
  95. data/ext/langscan/sh/sh/extconf.rb +3 -0
  96. data/ext/langscan/sh/sh/modulename.txt +1 -0
  97. data/ext/langscan/sh/sh/sh.c +134 -0
  98. data/ext/langscan/sh/sh/sh.h +61 -0
  99. data/ext/langscan/sh/sh/shtok.c +2477 -0
  100. data/ext/langscan/sh/sh/shtok.l +325 -0
  101. data/ext/langscan/sh/sh/tokenlist.txt +8 -0
  102. data/lib/langscan.rb +124 -0
  103. data/lib/langscan/_common.rb +50 -0
  104. data/lib/langscan/_easyscanner.rb +78 -0
  105. data/lib/langscan/_pairmatcher.rb +46 -0
  106. data/lib/langscan/_type.rb +125 -0
  107. data/lib/langscan/autoconf.rb +51 -0
  108. data/lib/langscan/automake.rb +51 -0
  109. data/lib/langscan/brainfuck.rb +48 -0
  110. data/lib/langscan/c.rb +144 -0
  111. data/lib/langscan/c/c.so +0 -0
  112. data/lib/langscan/csharp.rb +101 -0
  113. data/lib/langscan/csharp/csharp.so +0 -0
  114. data/lib/langscan/css.rb +109 -0
  115. data/lib/langscan/d.rb +201 -0
  116. data/lib/langscan/d/d.so +0 -0
  117. data/lib/langscan/eiffel.rb +167 -0
  118. data/lib/langscan/elisp.rb +132 -0
  119. data/lib/langscan/elisp/elisp.so +0 -0
  120. data/lib/langscan/io.rb +84 -0
  121. data/lib/langscan/java.rb +95 -0
  122. data/lib/langscan/java/java.so +0 -0
  123. data/lib/langscan/javascript.rb +97 -0
  124. data/lib/langscan/javascript/javascript.so +0 -0
  125. data/lib/langscan/lua.rb +116 -0
  126. data/lib/langscan/ocaml.rb +298 -0
  127. data/lib/langscan/ocaml/camlexer.ml +28 -0
  128. data/lib/langscan/ocaml/lexer.mll +230 -0
  129. data/lib/langscan/ocaml/types.ml +36 -0
  130. data/lib/langscan/pairmatcher/pairmatcher.so +0 -0
  131. data/lib/langscan/perl.rb +87 -0
  132. data/lib/langscan/perl/tokenizer.pl +231 -0
  133. data/lib/langscan/php.rb +80 -0
  134. data/lib/langscan/php/php.so +0 -0
  135. data/lib/langscan/python.rb +101 -0
  136. data/lib/langscan/python/python.so +0 -0
  137. data/lib/langscan/rpmspec.rb +71 -0
  138. data/lib/langscan/ruby.rb +164 -0
  139. data/lib/langscan/ruby/compat/README +5 -0
  140. data/lib/langscan/ruby/compat/ripper.rb +4 -0
  141. data/lib/langscan/ruby/compat/ripper.so +0 -0
  142. data/lib/langscan/ruby/compat/ripper/core.rb +918 -0
  143. data/lib/langscan/ruby/compat/ripper/filter.rb +70 -0
  144. data/lib/langscan/ruby/compat/ripper/lexer.rb +179 -0
  145. data/lib/langscan/ruby/compat/ripper/sexp.rb +100 -0
  146. data/lib/langscan/scheme.rb +160 -0
  147. data/lib/langscan/scheme/scheme.so +0 -0
  148. data/lib/langscan/sh.rb +116 -0
  149. data/lib/langscan/sh/sh.so +0 -0
  150. data/lib/langscan/text.rb +37 -0
  151. data/metaconfig +2 -0
  152. data/script/console +10 -0
  153. data/script/destroy +14 -0
  154. data/script/generate +14 -0
  155. data/script/makemanifest.rb +21 -0
  156. data/setup.rb +1604 -0
  157. data/tasks/extconf.rake +13 -0
  158. data/tasks/extconf/langscan.rake +42 -0
  159. data/test/langscan/brainfuck/test/test_scan.rb +55 -0
  160. data/test/langscan/c/test/test_scan.rb +216 -0
  161. data/test/langscan/c/test/test_token.rb +41 -0
  162. data/test/langscan/csharp/test/test_scan.rb +157 -0
  163. data/test/langscan/css/test/test_css.rb +79 -0
  164. data/test/langscan/d/test/test_scan.rb +233 -0
  165. data/test/langscan/d/test/test_token.rb +205 -0
  166. data/test/langscan/eiffel/test/test_eiffel.rb +95 -0
  167. data/test/langscan/elisp/test/test_elisp.rb +177 -0
  168. data/test/langscan/io/test/test_io.rb +79 -0
  169. data/test/langscan/java/test/test_java.rb +74 -0
  170. data/test/langscan/javascript/test/test_javascript.rb +39 -0
  171. data/test/langscan/lua/test/test_lua.rb +69 -0
  172. data/test/langscan/ocaml/test/test_ocaml.rb +161 -0
  173. data/test/langscan/php/test/test_scan.rb +138 -0
  174. data/test/langscan/python/test/test_scan.rb +105 -0
  175. data/test/langscan/rpmspec/test/test_rpmspec.rb +51 -0
  176. data/test/langscan/ruby/test/test_scan.rb +71 -0
  177. data/test/langscan/scheme/test/test_scan.rb +198 -0
  178. data/test/test_helper.rb +7 -0
  179. data/test/test_langscan.rb +123 -0
  180. metadata +320 -0
@@ -0,0 +1,65 @@
1
+ #ifndef LANGSCAN_CSHARP_H
2
+ #define LANGSCAN_CSHARP_H
3
+
4
+ #define LANGSCAN_CSHARP_TOKEN_LIST \
5
+ LANGSCAN_CSHARP_TOKEN(preproc) \
6
+ LANGSCAN_CSHARP_TOKEN(classdef) \
7
+ LANGSCAN_CSHARP_TOKEN(classref) \
8
+ LANGSCAN_CSHARP_TOKEN(delegate) \
9
+ LANGSCAN_CSHARP_TOKEN(character) \
10
+ LANGSCAN_CSHARP_TOKEN(integer) \
11
+ LANGSCAN_CSHARP_TOKEN(floating) \
12
+ LANGSCAN_CSHARP_TOKEN(punct) \
13
+ LANGSCAN_CSHARP_TOKEN(comment) \
14
+ LANGSCAN_CSHARP_TOKEN(ident) \
15
+ LANGSCAN_CSHARP_TOKEN(string) \
16
+ LANGSCAN_CSHARP_TOKEN(space)
17
+
18
+ typedef enum {
19
+ langscan_csharp_eof = 0,
20
+ #define LANGSCAN_CSHARP_TOKEN(name) langscan_csharp_##name,
21
+ LANGSCAN_CSHARP_TOKEN_LIST
22
+ #undef LANGSCAN_CSHARP_TOKEN
23
+ } langscan_csharp_token_t;
24
+
25
+ typedef struct {
26
+ int beg_lineno;
27
+ int beg_columnno;
28
+ int beg_byteno;
29
+ int end_lineno;
30
+ int end_columnno;
31
+ int end_byteno;
32
+ int eof;
33
+ char *text;
34
+ int leng;
35
+ size_t (*user_read)(void **user_data_p, char *buf, size_t maxlen);
36
+ void *user_data;
37
+ } langscan_csharp_lex_extra_t;
38
+
39
+ typedef struct langscan_csharp_tokenizer_tag {
40
+ langscan_csharp_lex_extra_t *extra;
41
+ void *scanner;
42
+ } langscan_csharp_tokenizer_t;
43
+
44
+ typedef size_t (*user_read_t)(void **user_data_p, char *buf, size_t maxlen);
45
+
46
+ langscan_csharp_tokenizer_t *langscan_csharp_make_tokenizer(user_read_t user_read, void *user_data);
47
+ langscan_csharp_token_t langscan_csharp_get_token(langscan_csharp_tokenizer_t *tokenizer);
48
+ void langscan_csharp_free_tokenizer(langscan_csharp_tokenizer_t *tokenizer);
49
+
50
+ user_read_t langscan_csharp_tokenizer_get_user_read(langscan_csharp_tokenizer_t *tokenizer);
51
+ void *langscan_csharp_tokenizer_get_user_data(langscan_csharp_tokenizer_t *tokenizer);
52
+
53
+ const char *langscan_csharp_token_name(langscan_csharp_token_t token);
54
+ #define langscan_csharp_curtoken_beg_lineno(tokenizer) ((tokenizer)->extra->beg_lineno)
55
+ #define langscan_csharp_curtoken_beg_columnno(tokenizer) ((tokenizer)->extra->beg_columnno)
56
+ #define langscan_csharp_curtoken_beg_byteno(tokenizer) ((tokenizer)->extra->beg_byteno)
57
+ #define langscan_csharp_curtoken_end_lineno(tokenizer) ((tokenizer)->extra->end_lineno)
58
+ #define langscan_csharp_curtoken_end_columnno(tokenizer) ((tokenizer)->extra->end_columnno)
59
+ #define langscan_csharp_curtoken_end_byteno(tokenizer) ((tokenizer)->extra->end_byteno)
60
+ #define langscan_csharp_curtoken_text(tokenizer) ((tokenizer)->extra->text)
61
+ #define langscan_csharp_curtoken_leng(tokenizer) ((tokenizer)->extra->leng)
62
+
63
+ void langscan_csharp_extract_functions(langscan_csharp_tokenizer_t *);
64
+
65
+ #endif
@@ -0,0 +1,2971 @@
1
+
2
+ #line 3 "<stdout>"
3
+
4
+ #define YY_INT_ALIGNED short int
5
+
6
+ /* A lexical scanner generated by flex */
7
+
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
+
16
+ /* First, we deal with platform-specific or compiler-specific issues. */
17
+
18
+ /* begin standard C headers. */
19
+ #include <stdio.h>
20
+ #include <string.h>
21
+ #include <errno.h>
22
+ #include <stdlib.h>
23
+
24
+ /* end standard C headers. */
25
+
26
+ /* flex integer type definitions */
27
+
28
+ #ifndef FLEXINT_H
29
+ #define FLEXINT_H
30
+
31
+ /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
32
+
33
+ #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
34
+
35
+ /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
36
+ * if you want the limit (max/min) macros for int types.
37
+ */
38
+ #ifndef __STDC_LIMIT_MACROS
39
+ #define __STDC_LIMIT_MACROS 1
40
+ #endif
41
+
42
+ #include <inttypes.h>
43
+ typedef int8_t flex_int8_t;
44
+ typedef uint8_t flex_uint8_t;
45
+ typedef int16_t flex_int16_t;
46
+ typedef uint16_t flex_uint16_t;
47
+ typedef int32_t flex_int32_t;
48
+ typedef uint32_t flex_uint32_t;
49
+ #else
50
+ typedef signed char flex_int8_t;
51
+ typedef short int flex_int16_t;
52
+ typedef int flex_int32_t;
53
+ typedef unsigned char flex_uint8_t;
54
+ typedef unsigned short int flex_uint16_t;
55
+ typedef unsigned int flex_uint32_t;
56
+
57
+ /* Limits of integral types. */
58
+ #ifndef INT8_MIN
59
+ #define INT8_MIN (-128)
60
+ #endif
61
+ #ifndef INT16_MIN
62
+ #define INT16_MIN (-32767-1)
63
+ #endif
64
+ #ifndef INT32_MIN
65
+ #define INT32_MIN (-2147483647-1)
66
+ #endif
67
+ #ifndef INT8_MAX
68
+ #define INT8_MAX (127)
69
+ #endif
70
+ #ifndef INT16_MAX
71
+ #define INT16_MAX (32767)
72
+ #endif
73
+ #ifndef INT32_MAX
74
+ #define INT32_MAX (2147483647)
75
+ #endif
76
+ #ifndef UINT8_MAX
77
+ #define UINT8_MAX (255U)
78
+ #endif
79
+ #ifndef UINT16_MAX
80
+ #define UINT16_MAX (65535U)
81
+ #endif
82
+ #ifndef UINT32_MAX
83
+ #define UINT32_MAX (4294967295U)
84
+ #endif
85
+
86
+ #endif /* ! C99 */
87
+
88
+ #endif /* ! FLEXINT_H */
89
+
90
+ #ifdef __cplusplus
91
+
92
+ /* The "const" storage-class-modifier is valid. */
93
+ #define YY_USE_CONST
94
+
95
+ #else /* ! __cplusplus */
96
+
97
+ /* C99 requires __STDC__ to be defined as 1. */
98
+ #if defined (__STDC__)
99
+
100
+ #define YY_USE_CONST
101
+
102
+ #endif /* defined (__STDC__) */
103
+ #endif /* ! __cplusplus */
104
+
105
+ #ifdef YY_USE_CONST
106
+ #define yyconst const
107
+ #else
108
+ #define yyconst
109
+ #endif
110
+
111
+ /* Returned upon end-of-file. */
112
+ #define YY_NULL 0
113
+
114
+ /* Promotes a possibly negative, possibly signed char to an unsigned
115
+ * integer for use as an array index. If the signed char is negative,
116
+ * we want to instead treat it as an 8-bit unsigned char, hence the
117
+ * double cast.
118
+ */
119
+ #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
120
+
121
+ /* An opaque pointer. */
122
+ #ifndef YY_TYPEDEF_YY_SCANNER_T
123
+ #define YY_TYPEDEF_YY_SCANNER_T
124
+ typedef void* yyscan_t;
125
+ #endif
126
+
127
+ /* For convenience, these vars (plus the bison vars far below)
128
+ are macros in the reentrant scanner. */
129
+ #define yyin yyg->yyin_r
130
+ #define yyout yyg->yyout_r
131
+ #define yyextra yyg->yyextra_r
132
+ #define yyleng yyg->yyleng_r
133
+ #define yytext yyg->yytext_r
134
+ #define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
135
+ #define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
136
+ #define yy_flex_debug yyg->yy_flex_debug_r
137
+
138
+ /* Enter a start condition. This macro really ought to take a parameter,
139
+ * but we do it the disgusting crufty way forced on us by the ()-less
140
+ * definition of BEGIN.
141
+ */
142
+ #define BEGIN yyg->yy_start = 1 + 2 *
143
+
144
+ /* Translate the current start state into a value that can be later handed
145
+ * to BEGIN to return to the state. The YYSTATE alias is for lex
146
+ * compatibility.
147
+ */
148
+ #define YY_START ((yyg->yy_start - 1) / 2)
149
+ #define YYSTATE YY_START
150
+
151
+ /* Action number for EOF rule of a given start state. */
152
+ #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
153
+
154
+ /* Special action meaning "start processing a new file". */
155
+ #define YY_NEW_FILE langscan_csharp_lex_restart(yyin ,yyscanner )
156
+
157
+ #define YY_END_OF_BUFFER_CHAR 0
158
+
159
+ /* Size of default input buffer. */
160
+ #ifndef YY_BUF_SIZE
161
+ #ifdef __ia64__
162
+ /* On IA-64, the buffer size is 16k, not 8k.
163
+ * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
164
+ * Ditto for the __ia64__ case accordingly.
165
+ */
166
+ #define YY_BUF_SIZE 32768
167
+ #else
168
+ #define YY_BUF_SIZE 16384
169
+ #endif /* __ia64__ */
170
+ #endif
171
+
172
+ /* The state buf must be large enough to hold one state per character in the main buffer.
173
+ */
174
+ #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
175
+
176
+ #ifndef YY_TYPEDEF_YY_BUFFER_STATE
177
+ #define YY_TYPEDEF_YY_BUFFER_STATE
178
+ typedef struct yy_buffer_state *YY_BUFFER_STATE;
179
+ #endif
180
+
181
+ #define EOB_ACT_CONTINUE_SCAN 0
182
+ #define EOB_ACT_END_OF_FILE 1
183
+ #define EOB_ACT_LAST_MATCH 2
184
+
185
+ #define YY_LESS_LINENO(n)
186
+
187
+ /* Return all but the first "n" matched characters back to the input stream. */
188
+ #define yyless(n) \
189
+ do \
190
+ { \
191
+ /* Undo effects of setting up yytext. */ \
192
+ int yyless_macro_arg = (n); \
193
+ YY_LESS_LINENO(yyless_macro_arg);\
194
+ *yy_cp = yyg->yy_hold_char; \
195
+ YY_RESTORE_YY_MORE_OFFSET \
196
+ yyg->yy_c_buf_p = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
197
+ YY_DO_BEFORE_ACTION; /* set up yytext again */ \
198
+ } \
199
+ while ( 0 )
200
+
201
+ #define unput(c) yyunput( c, yyg->yytext_ptr , yyscanner )
202
+
203
+ #ifndef YY_TYPEDEF_YY_SIZE_T
204
+ #define YY_TYPEDEF_YY_SIZE_T
205
+ typedef size_t yy_size_t;
206
+ #endif
207
+
208
+ #ifndef YY_STRUCT_YY_BUFFER_STATE
209
+ #define YY_STRUCT_YY_BUFFER_STATE
210
+ struct yy_buffer_state
211
+ {
212
+ FILE *yy_input_file;
213
+
214
+ char *yy_ch_buf; /* input buffer */
215
+ char *yy_buf_pos; /* current position in input buffer */
216
+
217
+ /* Size of input buffer in bytes, not including room for EOB
218
+ * characters.
219
+ */
220
+ yy_size_t yy_buf_size;
221
+
222
+ /* Number of characters read into yy_ch_buf, not including EOB
223
+ * characters.
224
+ */
225
+ int yy_n_chars;
226
+
227
+ /* Whether we "own" the buffer - i.e., we know we created it,
228
+ * and can realloc() it to grow it, and should free() it to
229
+ * delete it.
230
+ */
231
+ int yy_is_our_buffer;
232
+
233
+ /* Whether this is an "interactive" input source; if so, and
234
+ * if we're using stdio for input, then we want to use getc()
235
+ * instead of fread(), to make sure we stop fetching input after
236
+ * each newline.
237
+ */
238
+ int yy_is_interactive;
239
+
240
+ /* Whether we're considered to be at the beginning of a line.
241
+ * If so, '^' rules will be active on the next match, otherwise
242
+ * not.
243
+ */
244
+ int yy_at_bol;
245
+
246
+ int yy_bs_lineno; /**< The line count. */
247
+ int yy_bs_column; /**< The column count. */
248
+
249
+ /* Whether to try to fill the input buffer when we reach the
250
+ * end of it.
251
+ */
252
+ int yy_fill_buffer;
253
+
254
+ int yy_buffer_status;
255
+
256
+ #define YY_BUFFER_NEW 0
257
+ #define YY_BUFFER_NORMAL 1
258
+ /* When an EOF's been seen but there's still some text to process
259
+ * then we mark the buffer as YY_EOF_PENDING, to indicate that we
260
+ * shouldn't try reading from the input source any more. We might
261
+ * still have a bunch of tokens to match, though, because of
262
+ * possible backing-up.
263
+ *
264
+ * When we actually see the EOF, we change the status to "new"
265
+ * (via langscan_csharp_lex_restart()), so that the user can continue scanning by
266
+ * just pointing yyin at a new input file.
267
+ */
268
+ #define YY_BUFFER_EOF_PENDING 2
269
+
270
+ };
271
+ #endif /* !YY_STRUCT_YY_BUFFER_STATE */
272
+
273
+ /* We provide macros for accessing buffer states in case in the
274
+ * future we want to put the buffer states in a more general
275
+ * "scanner state".
276
+ *
277
+ * Returns the top of the stack, or NULL.
278
+ */
279
+ #define YY_CURRENT_BUFFER ( yyg->yy_buffer_stack \
280
+ ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \
281
+ : NULL)
282
+
283
+ /* Same as previous macro, but useful when we know that the buffer stack is not
284
+ * NULL or when we need an lvalue. For internal use only.
285
+ */
286
+ #define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
287
+
288
+ void langscan_csharp_lex_restart (FILE *input_file ,yyscan_t yyscanner );
289
+ void langscan_csharp_lex__switch_to_buffer (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
290
+ YY_BUFFER_STATE langscan_csharp_lex__create_buffer (FILE *file,int size ,yyscan_t yyscanner );
291
+ void langscan_csharp_lex__delete_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
292
+ void langscan_csharp_lex__flush_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
293
+ void langscan_csharp_lex_push_buffer_state (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
294
+ void langscan_csharp_lex_pop_buffer_state (yyscan_t yyscanner );
295
+
296
+ static void langscan_csharp_lex_ensure_buffer_stack (yyscan_t yyscanner );
297
+ static void langscan_csharp_lex__load_buffer_state (yyscan_t yyscanner );
298
+ static void langscan_csharp_lex__init_buffer (YY_BUFFER_STATE b,FILE *file ,yyscan_t yyscanner );
299
+
300
+ #define YY_FLUSH_BUFFER langscan_csharp_lex__flush_buffer(YY_CURRENT_BUFFER ,yyscanner)
301
+
302
+ YY_BUFFER_STATE langscan_csharp_lex__scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner );
303
+ YY_BUFFER_STATE langscan_csharp_lex__scan_string (yyconst char *yy_str ,yyscan_t yyscanner );
304
+ YY_BUFFER_STATE langscan_csharp_lex__scan_bytes (yyconst char *bytes,int len ,yyscan_t yyscanner );
305
+
306
+ void *langscan_csharp_lex_alloc (yy_size_t ,yyscan_t yyscanner );
307
+ void *langscan_csharp_lex_realloc (void *,yy_size_t ,yyscan_t yyscanner );
308
+ void langscan_csharp_lex_free (void * ,yyscan_t yyscanner );
309
+
310
+ #define yy_new_buffer langscan_csharp_lex__create_buffer
311
+
312
+ #define yy_set_interactive(is_interactive) \
313
+ { \
314
+ if ( ! YY_CURRENT_BUFFER ){ \
315
+ langscan_csharp_lex_ensure_buffer_stack (yyscanner); \
316
+ YY_CURRENT_BUFFER_LVALUE = \
317
+ langscan_csharp_lex__create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \
318
+ } \
319
+ YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
320
+ }
321
+
322
+ #define yy_set_bol(at_bol) \
323
+ { \
324
+ if ( ! YY_CURRENT_BUFFER ){\
325
+ langscan_csharp_lex_ensure_buffer_stack (yyscanner); \
326
+ YY_CURRENT_BUFFER_LVALUE = \
327
+ langscan_csharp_lex__create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \
328
+ } \
329
+ YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
330
+ }
331
+
332
+ #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
333
+
334
+ /* Begin user sect3 */
335
+
336
+ #define langscan_csharp_lex_wrap(n) 1
337
+ #define YY_SKIP_YYWRAP
338
+
339
+ typedef unsigned char YY_CHAR;
340
+
341
+ typedef int yy_state_type;
342
+
343
+ #define yytext_ptr yytext_r
344
+
345
+ static yy_state_type yy_get_previous_state (yyscan_t yyscanner );
346
+ static yy_state_type yy_try_NUL_trans (yy_state_type current_state ,yyscan_t yyscanner);
347
+ static int yy_get_next_buffer (yyscan_t yyscanner );
348
+ static void yy_fatal_error (yyconst char msg[] ,yyscan_t yyscanner );
349
+
350
+ /* Done after the current pattern has been matched and before the
351
+ * corresponding action - sets up yytext.
352
+ */
353
+ #define YY_DO_BEFORE_ACTION \
354
+ yyg->yytext_ptr = yy_bp; \
355
+ yyleng = (size_t) (yy_cp - yy_bp); \
356
+ yyg->yy_hold_char = *yy_cp; \
357
+ *yy_cp = '\0'; \
358
+ yyg->yy_c_buf_p = yy_cp;
359
+
360
+ #define YY_NUM_RULES 22
361
+ #define YY_END_OF_BUFFER 23
362
+ /* This struct is not used in this scanner,
363
+ but its presence is necessary. */
364
+ struct yy_trans_info
365
+ {
366
+ flex_int32_t yy_verify;
367
+ flex_int32_t yy_nxt;
368
+ };
369
+ static yyconst flex_int16_t yy_acclist[386] =
370
+ { 0,
371
+ 23, 21, 22, 10, 21, 22, 11, 22, 21, 22,
372
+ 21, 22, 21, 22, 21, 22, 21, 22, 21, 22,
373
+ 21, 22, 21, 22, 21, 22, 21, 22, 17, 21,
374
+ 22, 18, 21, 22, 21, 22, 21, 22, 21, 22,
375
+ 16, 21, 22, 21, 22, 16, 21, 22, 16, 21,
376
+ 22, 16, 21, 22, 16, 21, 22, 21, 22, 10,
377
+ 21, 22, 21, 22, 16, 21, 22,16390, 16, 21,
378
+ 22,16390, 16, 21, 22,16390, 16, 21, 22,16390,
379
+ 16, 21, 22,16390, 7, 21, 22, 16, 21, 22,
380
+ 16390, 16, 21, 22,16390, 16, 21, 22,16390, 16,
381
+
382
+ 21, 22,16390, 16, 21, 22,16390, 16, 21, 22,
383
+ 16393, 16, 21, 22,16393, 16, 21, 22,16393, 16,
384
+ 21, 22,16393, 16, 21, 22,16393, 10, 21, 14,
385
+ 20, 12, 20, 17, 17, 18, 18, 21, 21, 16,
386
+ 16, 16, 16, 16, 10, 1, 16,16390, 5, 5,
387
+ 8198, 16,16390, 16,16390, 16,16390, 16,16390, 16,
388
+ 16390, 8198, 16,16390, 16,16390, 16,16390, 16,16390,
389
+ 8201, 16,16393, 16,16393, 16,16393, 16,16393, 16,
390
+ 16393, 15, 20, 12, 20, 19, 16, 16, 16, 16,
391
+ 1, 16,16390, 16,16390, 16,16390, 16,16390, 16,
392
+
393
+ 16390, 16,16390, 16,16390, 16,16390, 16,16393, 16,
394
+ 16393, 16,16393, 16,16393, 20, 13, 19, 16, 16,
395
+ 16, 16, 16,16390, 16,16390, 16,16390, 16,16390,
396
+ 16,16390, 16,16390, 16,16390, 16,16390, 16,16393,
397
+ 16,16393, 16,16393, 16,16393, 16, 16, 16, 16,
398
+ 16,16390, 16,16390, 16,16390, 16,16390, 16,16390,
399
+ 16,16390, 16,16390, 16,16390, 16,16393, 16,16393,
400
+ 16,16393, 16,16393, 16, 16, 16, 16,16390, 16,
401
+ 16390, 16,16390, 16,16390, 16,16390, 16,16390, 16,
402
+ 16393, 16,16393, 16,16393, 2, 16, 16, 5, 2,
403
+
404
+ 5, 8198, 16,16390, 16,16390, 2, 8198, 16,16390,
405
+ 16,16390, 8201, 16,16393, 16,16393, 8, 16, 16,
406
+ 3, 8, 16,16390, 16,16390, 5, 3, 5, 8198,
407
+ 8, 16,16390, 16,16390, 3, 8198, 8, 16,16393,
408
+ 16,16393, 8201, 16, 2, 16,16390, 2, 16,16390,
409
+ 2, 16,16393, 2, 3, 2, 3, 2, 3, 4,
410
+ 2, 5, 4, 5, 8198, 3, 2, 4, 8198, 3,
411
+ 2, 8201, 3, 3, 3, 3, 4, 4, 4, 4,
412
+ 4, 4, 4, 4, 4
413
+ } ;
414
+
415
+ static yyconst flex_int16_t yy_accept[425] =
416
+ { 0,
417
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 2,
418
+ 4, 7, 9, 11, 13, 15, 17, 19, 21, 23,
419
+ 25, 27, 29, 32, 35, 37, 39, 41, 44, 46,
420
+ 49, 52, 55, 58, 60, 63, 65, 69, 73, 77,
421
+ 81, 85, 88, 92, 96, 100, 104, 108, 112, 116,
422
+ 120, 124, 128, 129, 130, 130, 131, 131, 131, 131,
423
+ 132, 132, 133, 134, 135, 135, 136, 136, 137, 138,
424
+ 139, 140, 141, 142, 143, 144, 145, 146, 146, 146,
425
+ 146, 147, 147, 147, 149, 150, 152, 154, 156, 158,
426
+ 160, 160, 160, 162, 163, 165, 167, 169, 171, 171,
427
+
428
+ 172, 172, 174, 176, 178, 180, 182, 183, 183, 183,
429
+ 183, 183, 183, 183, 184, 184, 184, 184, 185, 186,
430
+ 187, 188, 189, 190, 191, 191, 192, 192, 194, 196,
431
+ 198, 200, 200, 202, 204, 206, 208, 208, 210, 212,
432
+ 214, 216, 216, 216, 216, 216, 217, 217, 218, 219,
433
+ 220, 221, 222, 223, 223, 223, 223, 223, 225, 227,
434
+ 229, 231, 231, 231, 233, 235, 237, 239, 239, 239,
435
+ 241, 243, 245, 247, 247, 248, 249, 250, 251, 251,
436
+ 251, 253, 255, 257, 259, 259, 261, 263, 265, 267,
437
+ 267, 269, 271, 273, 275, 275, 275, 276, 277, 278,
438
+
439
+ 278, 278, 278, 278, 280, 282, 284, 284, 284, 284,
440
+ 286, 288, 290, 290, 290, 290, 292, 294, 296, 296,
441
+ 297, 297, 298, 299, 299, 299, 299, 299, 300, 303,
442
+ 303, 305, 307, 307, 307, 307, 307, 309, 309, 311,
443
+ 313, 313, 313, 313, 314, 314, 314, 316, 318, 318,
444
+ 318, 318, 318, 320, 321, 321, 322, 322, 322, 322,
445
+ 322, 325, 327, 327, 327, 328, 331, 331, 331, 331,
446
+ 331, 334, 336, 336, 336, 338, 338, 338, 338, 338,
447
+ 341, 343, 343, 344, 344, 344, 344, 345, 345, 345,
448
+ 345, 345, 346, 346, 348, 348, 348, 348, 348, 348,
449
+
450
+ 349, 349, 351, 351, 351, 351, 351, 351, 352, 352,
451
+ 354, 354, 354, 354, 354, 354, 354, 354, 354, 355,
452
+ 355, 355, 355, 355, 355, 356, 356, 356, 357, 357,
453
+ 357, 357, 357, 357, 358, 358, 358, 359, 359, 359,
454
+ 359, 359, 359, 360, 360, 360, 361, 361, 361, 361,
455
+ 362, 362, 362, 363, 366, 366, 366, 367, 367, 367,
456
+ 368, 368, 368, 370, 370, 370, 371, 371, 371, 372,
457
+ 372, 373, 373, 373, 373, 374, 374, 374, 374, 374,
458
+ 374, 374, 374, 375, 375, 375, 375, 375, 376, 376,
459
+ 376, 376, 376, 377, 377, 377, 377, 378, 378, 378,
460
+
461
+ 378, 379, 379, 379, 379, 380, 380, 380, 380, 381,
462
+ 381, 381, 382, 382, 382, 383, 383, 383, 384, 384,
463
+ 385, 385, 386, 386
464
+ } ;
465
+
466
+ static yyconst flex_int32_t yy_ec[256] =
467
+ { 0,
468
+ 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
469
+ 1, 4, 4, 1, 1, 1, 1, 1, 1, 1,
470
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
471
+ 1, 2, 5, 6, 7, 1, 8, 9, 10, 11,
472
+ 1, 12, 13, 1, 14, 15, 16, 17, 18, 18,
473
+ 18, 19, 19, 19, 19, 20, 20, 21, 22, 23,
474
+ 24, 25, 26, 1, 27, 27, 27, 28, 29, 28,
475
+ 30, 30, 30, 30, 30, 31, 32, 30, 30, 30,
476
+ 30, 30, 30, 30, 33, 30, 30, 34, 30, 30,
477
+ 1, 35, 1, 36, 30, 1, 37, 38, 39, 40,
478
+
479
+ 41, 42, 43, 44, 45, 44, 44, 46, 47, 48,
480
+ 44, 44, 44, 49, 50, 51, 52, 44, 44, 53,
481
+ 44, 44, 54, 55, 1, 1, 1, 1, 1, 1,
482
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
483
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
484
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
485
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
486
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
487
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
488
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
489
+
490
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
491
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
492
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
493
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
494
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
495
+ 1, 1, 1, 1, 1
496
+ } ;
497
+
498
+ static yyconst flex_int32_t yy_meta[56] =
499
+ { 0,
500
+ 1, 2, 3, 2, 1, 4, 1, 1, 1, 5,
501
+ 6, 1, 1, 1, 1, 2, 7, 7, 7, 8,
502
+ 9, 10, 1, 1, 1, 4, 11, 11, 11, 12,
503
+ 12, 12, 13, 13, 4, 1, 14, 14, 14, 14,
504
+ 14, 14, 13, 13, 13, 13, 13, 13, 13, 13,
505
+ 13, 13, 13, 15, 1
506
+ } ;
507
+
508
+ static yyconst flex_int16_t yy_base[524] =
509
+ { 0,
510
+ 0, 54, 35, 88, 69, 121, 102, 154, 1307, 2619,
511
+ 55, 2619, 1282, 131, 1267, 148, 1236, 1246, 47, 80,
512
+ 107, 146, 158, 197, 68, 1245, 135, 0, 1244, 1221,
513
+ 1224, 1209, 1205, 114, 161, 177, 180, 204, 144, 140,
514
+ 148, 2619, 219, 229, 235, 238, 244, 253, 263, 297,
515
+ 300, 303, 193, 2619, 165, 2619, 1249, 1241, 244, 338,
516
+ 1231, 0, 303, 171, 309, 239, 0, 0, 279, 1218,
517
+ 1215, 0, 1201, 1191, 1174, 1175, 280, 330, 333, 1211,
518
+ 0, 360, 1204, 1169, 2619, 2619, 172, 1168, 152, 118,
519
+ 337, 1201, 357, 2619, 384, 390, 394, 400, 415, 2619,
520
+
521
+ 1200, 421, 431, 448, 454, 458, 2619, 333, 410, 0,
522
+ 0, 1201, 1200, 2619, 458, 1191, 278, 0, 0, 338,
523
+ 1152, 1148, 1126, 1113, 1151, 0, 1150, 322, 247, 301,
524
+ 167, 1148, 437, 477, 480, 486, 1147, 495, 506, 512,
525
+ 533, 533, 1148, 0, 507, 569, 1145, 2619, 508, 1106,
526
+ 1112, 1105, 1114, 1140, 383, 1139, 389, 362, 225, 269,
527
+ 190, 1138, 397, 553, 559, 563, 579, 1137, 451, 588,
528
+ 618, 621, 624, 1132, 568, 1105, 1099, 1087, 1123, 1121,
529
+ 639, 207, 458, 513, 1118, 642, 646, 649, 664, 1109,
530
+ 670, 673, 690, 705, 1064, 1078, 1034, 1047, 695, 1070,
531
+
532
+ 1065, 720, 1063, 522, 328, 723, 1057, 727, 1050, 731,
533
+ 742, 746, 1049, 749, 1045, 764, 786, 790, 992, 2619,
534
+ 1006, 963, 964, 943, 980, 805, 431, 936, 2619, 977,
535
+ 552, 213, 808, 972, 768, 520, 2619, 958, 815, 831,
536
+ 834, 953, 837, 909, 546, 940, 841, 861, 864, 931,
537
+ 926, 517, 0, 891, 863, 2619, 898, 593, 895, 530,
538
+ 859, 573, 890, 582, 845, 2619, 886, 666, 877, 564,
539
+ 893, 899, 917, 648, 2619, 875, 683, 864, 594, 920,
540
+ 923, 926, 819, 659, 849, 848, 946, 837, 743, 751,
541
+ 862, 830, 820, 952, 792, 813, 745, 859, 892, 804,
542
+
543
+ 801, 956, 923, 787, 771, 929, 945, 786, 765, 971,
544
+ 954, 764, 779, 752, 686, 726, 716, 957, 707, 705,
545
+ 991, 702, 966, 969, 692, 678, 974, 675, 670, 998,
546
+ 667, 993, 1005, 657, 652, 994, 647, 645, 1022, 644,
547
+ 997, 1018, 642, 627, 577, 2619, 618, 596, 1010, 584,
548
+ 1033, 700, 524, 2619, 565, 1017, 536, 518, 1019, 508,
549
+ 1040, 766, 2619, 507, 1038, 501, 500, 1041, 491, 1063,
550
+ 447, 774, 483, 1046, 480, 474, 461, 839, 1058, 454,
551
+ 842, 1066, 443, 1069, 434, 867, 1071, 418, 1074, 410,
552
+ 874, 1077, 403, 395, 1085, 1086, 377, 371, 1089, 1093,
553
+
554
+ 365, 363, 1091, 1094, 333, 332, 318, 1092, 305, 269,
555
+ 1107, 268, 215, 1110, 175, 162, 1112, 81, 1114, 58,
556
+ 1115, 46, 2619, 1169, 1184, 1193, 1206, 1219, 1233, 1247,
557
+ 1259, 1273, 1288, 1297, 1305, 1313, 1321, 1335, 1350, 1365,
558
+ 1380, 1395, 1404, 1418, 1433, 1448, 1463, 1478, 1493, 1508,
559
+ 1523, 1538, 1553, 1568, 1583, 1598, 1613, 1628, 1643, 1658,
560
+ 1673, 1688, 1703, 1718, 1733, 1748, 1763, 1778, 1793, 1808,
561
+ 1823, 1838, 1853, 1868, 1883, 1898, 1913, 1928, 1943, 1958,
562
+ 1973, 1988, 2003, 2018, 2033, 2048, 2063, 2078, 2093, 2108,
563
+ 2123, 2138, 2153, 2168, 2183, 2198, 2213, 2228, 2243, 2258,
564
+
565
+ 2273, 2288, 2303, 2318, 2333, 2348, 2363, 2378, 2393, 2408,
566
+ 2423, 2438, 2453, 2468, 2483, 2498, 2513, 2528, 2543, 2558,
567
+ 2573, 2588, 2603
568
+ } ;
569
+
570
+ static yyconst flex_int16_t yy_def[524] =
571
+ { 0,
572
+ 423, 1, 1, 3, 3, 5, 1, 7, 423, 423,
573
+ 423, 423, 423, 424, 423, 423, 425, 423, 423, 423,
574
+ 423, 423, 423, 423, 423, 423, 423, 426, 423, 426,
575
+ 426, 426, 426, 423, 423, 427, 428, 428, 38, 38,
576
+ 38, 423, 429, 429, 429, 429, 429, 430, 430, 430,
577
+ 430, 430, 423, 423, 424, 423, 424, 423, 431, 423,
578
+ 432, 433, 60, 23, 423, 423, 434, 24, 423, 423,
579
+ 423, 426, 426, 426, 426, 426, 423, 427, 427, 423,
580
+ 435, 423, 423, 38, 423, 423, 38, 38, 38, 38,
581
+ 423, 423, 429, 423, 429, 429, 429, 429, 423, 423,
582
+
583
+ 423, 430, 430, 430, 430, 430, 423, 423, 423, 436,
584
+ 437, 436, 437, 423, 423, 432, 438, 433, 63, 434,
585
+ 426, 426, 426, 426, 439, 435, 440, 38, 38, 38,
586
+ 38, 441, 429, 429, 429, 429, 442, 430, 430, 430,
587
+ 430, 423, 436, 443, 423, 423, 444, 423, 423, 426,
588
+ 426, 426, 426, 439, 445, 440, 446, 38, 38, 38,
589
+ 38, 441, 447, 429, 429, 429, 429, 442, 448, 430,
590
+ 430, 430, 430, 444, 426, 426, 426, 426, 449, 450,
591
+ 38, 38, 38, 38, 451, 429, 429, 429, 429, 452,
592
+ 430, 430, 430, 430, 453, 423, 426, 426, 426, 449,
593
+
594
+ 450, 453, 423, 38, 38, 38, 451, 453, 423, 429,
595
+ 429, 429, 452, 453, 423, 430, 430, 430, 453, 423,
596
+ 454, 426, 426, 455, 423, 453, 453, 453, 423, 456,
597
+ 38, 38, 455, 423, 453, 453, 423, 457, 429, 429,
598
+ 455, 423, 453, 453, 453, 458, 430, 430, 455, 423,
599
+ 454, 459, 426, 426, 455, 423, 460, 461, 456, 462,
600
+ 38, 38, 455, 455, 455, 423, 463, 464, 457, 465,
601
+ 429, 429, 455, 455, 423, 466, 467, 458, 468, 430,
602
+ 430, 455, 455, 455, 469, 470, 426, 460, 471, 461,
603
+ 472, 440, 473, 38, 474, 463, 475, 464, 476, 477,
604
+
605
+ 478, 429, 479, 466, 480, 467, 481, 482, 483, 430,
606
+ 484, 469, 485, 470, 486, 423, 487, 488, 489, 473,
607
+ 486, 423, 474, 490, 440, 491, 492, 493, 478, 486,
608
+ 423, 479, 494, 477, 495, 496, 497, 483, 486, 423,
609
+ 484, 498, 482, 499, 486, 423, 500, 487, 488, 489,
610
+ 486, 486, 486, 423, 501, 502, 489, 491, 492, 493,
611
+ 486, 486, 423, 503, 504, 493, 495, 496, 497, 486,
612
+ 486, 486, 505, 506, 497, 499, 500, 507, 508, 501,
613
+ 509, 502, 489, 510, 503, 511, 504, 493, 512, 505,
614
+ 513, 506, 497, 514, 508, 515, 440, 516, 510, 517,
615
+
616
+ 477, 518, 512, 519, 482, 520, 514, 521, 489, 516,
617
+ 522, 493, 518, 523, 497, 520, 521, 489, 522, 493,
618
+ 523, 497, 0, 423, 423, 423, 423, 423, 423, 423,
619
+ 423, 423, 423, 423, 423, 423, 423, 423, 423, 423,
620
+ 423, 423, 423, 423, 423, 423, 423, 423, 423, 423,
621
+ 423, 423, 423, 423, 423, 423, 423, 423, 423, 423,
622
+ 423, 423, 423, 423, 423, 423, 423, 423, 423, 423,
623
+ 423, 423, 423, 423, 423, 423, 423, 423, 423, 423,
624
+ 423, 423, 423, 423, 423, 423, 423, 423, 423, 423,
625
+ 423, 423, 423, 423, 423, 423, 423, 423, 423, 423,
626
+
627
+ 423, 423, 423, 423, 423, 423, 423, 423, 423, 423,
628
+ 423, 423, 423, 423, 423, 423, 423, 423, 423, 423,
629
+ 423, 423, 423
630
+ } ;
631
+
632
+ static yyconst flex_int16_t yy_nxt[2675] =
633
+ { 0,
634
+ 10, 11, 12, 11, 13, 14, 10, 15, 16, 17,
635
+ 10, 18, 19, 20, 21, 22, 23, 24, 24, 24,
636
+ 10, 10, 25, 26, 27, 10, 28, 28, 28, 28,
637
+ 28, 28, 28, 28, 10, 29, 28, 28, 30, 31,
638
+ 28, 28, 28, 28, 32, 28, 28, 28, 28, 33,
639
+ 28, 28, 28, 10, 34, 35, 53, 169, 53, 54,
640
+ 36, 37, 37, 37, 37, 37, 37, 37, 37, 163,
641
+ 54, 37, 37, 38, 39, 37, 37, 37, 37, 40,
642
+ 37, 37, 37, 37, 41, 37, 37, 37, 42, 35,
643
+ 70, 54, 157, 54, 36, 43, 43, 43, 43, 43,
644
+
645
+ 43, 43, 43, 54, 54, 43, 43, 44, 45, 43,
646
+ 43, 43, 43, 46, 43, 43, 43, 43, 47, 43,
647
+ 43, 43, 35, 60, 60, 60, 60, 36, 48, 48,
648
+ 48, 48, 48, 48, 48, 48, 56, 54, 48, 48,
649
+ 49, 50, 48, 48, 48, 48, 51, 48, 48, 48,
650
+ 48, 52, 48, 48, 48, 35, 54, 61, 54, 71,
651
+ 36, 62, 77, 84, 53, 57, 131, 78, 54, 54,
652
+ 56, 54, 63, 391, 64, 64, 64, 65, 79, 79,
653
+ 79, 82, 82, 82, 88, 84, 169, 89, 66, 84,
654
+ 66, 67, 80, 84, 53, 83, 53, 84, 90, 57,
655
+
656
+ 85, 85, 130, 66, 423, 82, 82, 82, 128, 66,
657
+ 67, 63, 84, 68, 68, 68, 68, 84, 161, 83,
658
+ 91, 91, 91, 423, 85, 85, 386, 69, 184, 69,
659
+ 91, 91, 91, 86, 92, 84, 91, 91, 91, 91,
660
+ 91, 91, 69, 204, 92, 91, 91, 91, 69, 87,
661
+ 92, 262, 84, 92, 99, 99, 99, 86, 84, 92,
662
+ 108, 108, 109, 100, 99, 99, 99, 182, 101, 66,
663
+ 84, 66, 94, 100, 95, 96, 110, 111, 101, 163,
664
+ 381, 77, 94, 53, 66, 97, 78, 159, 94, 117,
665
+ 66, 94, 84, 148, 98, 112, 113, 94, 99, 99,
666
+
667
+ 99, 99, 99, 99, 99, 99, 99, 100, 103, 69,
668
+ 100, 69, 101, 100, 84, 101, 157, 183, 101, 119,
669
+ 119, 119, 119, 63, 69, 65, 65, 65, 65, 378,
670
+ 69, 79, 79, 79, 79, 79, 79, 104, 91, 91,
671
+ 91, 160, 107, 391, 169, 80, 84, 105, 80, 142,
672
+ 142, 142, 92, 106, 60, 60, 60, 60, 91, 91,
673
+ 91, 82, 82, 82, 232, 114, 115, 84, 149, 114,
674
+ 149, 158, 92, 84, 386, 83, 163, 114, 115, 114,
675
+ 85, 85, 381, 149, 114, 91, 91, 91, 157, 149,
676
+ 94, 91, 91, 91, 155, 91, 91, 91, 79, 92,
677
+
678
+ 157, 91, 91, 91, 82, 92, 378, 84, 163, 92,
679
+ 94, 181, 91, 86, 169, 92, 99, 99, 99, 107,
680
+ 133, 391, 99, 99, 99, 100, 58, 58, 58, 163,
681
+ 101, 100, 99, 99, 99, 134, 101, 94, 91, 91,
682
+ 91, 100, 258, 94, 135, 386, 101, 94, 136, 99,
683
+ 99, 99, 92, 94, 157, 99, 99, 99, 100, 99,
684
+ 99, 99, 169, 101, 100, 381, 99, 138, 100, 101,
685
+ 145, 145, 378, 101, 146, 146, 146, 146, 91, 91,
686
+ 91, 91, 91, 91, 220, 313, 164, 91, 91, 91,
687
+ 94, 169, 92, 139, 391, 92, 99, 99, 99, 205,
688
+
689
+ 346, 92, 169, 84, 140, 100, 141, 99, 99, 99,
690
+ 101, 305, 163, 99, 99, 99, 100, 165, 386, 163,
691
+ 166, 101, 100, 146, 146, 146, 146, 101, 252, 297,
692
+ 94, 268, 195, 94, 99, 99, 99, 167, 149, 94,
693
+ 149, 260, 107, 100, 170, 202, 171, 157, 101, 58,
694
+ 58, 58, 172, 149, 91, 91, 91, 277, 84, 149,
695
+ 91, 91, 91, 206, 91, 91, 91, 84, 92, 195,
696
+ 195, 195, 231, 220, 92, 270, 381, 346, 92, 208,
697
+ 91, 91, 91, 196, 173, 146, 146, 146, 146, 99,
698
+ 99, 99, 261, 295, 92, 157, 114, 84, 100, 220,
699
+
700
+ 114, 187, 186, 101, 291, 279, 94, 289, 114, 214,
701
+ 114, 188, 94, 294, 156, 114, 94, 189, 84, 99,
702
+ 99, 99, 99, 99, 99, 99, 99, 99, 100, 378,
703
+ 346, 100, 94, 101, 100, 256, 101, 191, 313, 101,
704
+ 202, 202, 202, 208, 208, 208, 292, 91, 91, 91,
705
+ 91, 91, 91, 169, 203, 373, 279, 209, 169, 303,
706
+ 192, 92, 194, 305, 92, 91, 91, 91, 163, 193,
707
+ 311, 214, 214, 214, 99, 99, 99, 299, 364, 92,
708
+ 100, 270, 210, 100, 84, 215, 163, 162, 101, 297,
709
+ 211, 99, 99, 99, 307, 94, 224, 224, 224, 94,
710
+
711
+ 100, 256, 94, 157, 168, 101, 99, 99, 99, 216,
712
+ 225, 379, 256, 355, 212, 100, 260, 94, 157, 300,
713
+ 101, 226, 226, 226, 233, 233, 233, 289, 235, 235,
714
+ 235, 217, 91, 91, 91, 227, 308, 347, 234, 346,
715
+ 228, 85, 236, 91, 91, 91, 92, 241, 241, 241,
716
+ 243, 243, 243, 346, 289, 218, 297, 92, 224, 244,
717
+ 233, 242, 291, 252, 245, 99, 99, 99, 84, 235,
718
+ 235, 235, 156, 229, 100, 313, 279, 384, 240, 101,
719
+ 237, 239, 305, 236, 94, 389, 241, 99, 99, 99,
720
+ 313, 249, 249, 249, 249, 94, 100, 169, 305, 94,
721
+
722
+ 100, 101, 220, 324, 292, 250, 226, 226, 226, 263,
723
+ 263, 263, 270, 156, 247, 163, 91, 91, 91, 346,
724
+ 227, 237, 248, 264, 297, 228, 85, 346, 265, 85,
725
+ 92, 260, 91, 91, 91, 273, 273, 273, 243, 243,
726
+ 243, 157, 99, 99, 99, 325, 92, 244, 289, 274,
727
+ 378, 100, 245, 381, 315, 271, 101, 321, 229, 252,
728
+ 313, 266, 99, 99, 99, 282, 282, 282, 94, 272,
729
+ 299, 100, 256, 291, 283, 279, 101, 226, 386, 284,
730
+ 162, 280, 330, 180, 94, 391, 305, 275, 270, 339,
731
+ 220, 263, 263, 263, 91, 91, 91, 297, 256, 281,
732
+
733
+ 91, 91, 91, 299, 84, 264, 260, 235, 92, 289,
734
+ 265, 85, 300, 185, 92, 319, 256, 256, 273, 273,
735
+ 273, 99, 99, 99, 99, 99, 99, 282, 282, 282,
736
+ 100, 287, 274, 100, 333, 101, 283, 252, 101, 302,
737
+ 307, 284, 285, 266, 162, 328, 94, 315, 315, 315,
738
+ 168, 279, 94, 321, 321, 321, 307, 330, 330, 330,
739
+ 243, 316, 220, 310, 276, 342, 190, 322, 291, 270,
740
+ 275, 331, 339, 339, 339, 168, 334, 324, 201, 256,
741
+ 324, 100, 308, 267, 263, 299, 340, 156, 260, 220,
742
+ 180, 257, 351, 351, 351, 207, 256, 84, 337, 361,
743
+
744
+ 361, 361, 254, 253, 333, 307, 352, 343, 342, 94,
745
+ 350, 353, 85, 362, 162, 213, 333, 252, 168, 325,
746
+ 273, 291, 357, 370, 370, 370, 185, 360, 324, 342,
747
+ 299, 201, 371, 282, 351, 351, 351, 372, 201, 190,
748
+ 207, 361, 361, 361, 354, 220, 334, 369, 352, 333,
749
+ 343, 363, 307, 353, 85, 362, 246, 342, 366, 207,
750
+ 169, 238, 213, 350, 370, 370, 370, 213, 163, 396,
751
+ 383, 375, 360, 371, 230, 346, 157, 324, 372, 156,
752
+ 400, 155, 333, 223, 222, 404, 354, 201, 342, 221,
753
+ 162, 388, 207, 363, 369, 168, 396, 396, 213, 393,
754
+
755
+ 400, 351, 404, 396, 400, 404, 156, 180, 361, 370,
756
+ 162, 397, 168, 201, 185, 190, 346, 220, 400, 383,
757
+ 169, 404, 401, 396, 388, 400, 404, 405, 207, 163,
758
+ 393, 213, 157, 201, 155, 207, 213, 199, 397, 409,
759
+ 198, 197, 401, 117, 405, 418, 412, 415, 169, 163,
760
+ 157, 155, 178, 177, 176, 175, 117, 107, 169, 163,
761
+ 420, 157, 155, 422, 153, 418, 152, 420, 422, 55,
762
+ 55, 55, 55, 55, 55, 55, 55, 55, 55, 55,
763
+ 55, 55, 55, 55, 58, 58, 58, 58, 151, 58,
764
+ 58, 58, 58, 58, 58, 58, 58, 58, 58, 72,
765
+
766
+ 72, 150, 117, 72, 72, 72, 72, 81, 81, 107,
767
+ 107, 137, 132, 129, 84, 127, 81, 81, 81, 81,
768
+ 84, 84, 125, 124, 123, 84, 84, 84, 84, 84,
769
+ 84, 84, 84, 84, 93, 93, 122, 121, 54, 93,
770
+ 93, 54, 117, 93, 93, 93, 93, 93, 102, 102,
771
+ 107, 423, 102, 102, 102, 76, 75, 102, 102, 102,
772
+ 102, 58, 58, 58, 74, 58, 73, 54, 54, 54,
773
+ 59, 58, 58, 116, 116, 116, 116, 116, 116, 116,
774
+ 116, 116, 116, 116, 116, 116, 116, 116, 118, 118,
775
+ 54, 118, 118, 118, 118, 118, 118, 118, 118, 118,
776
+
777
+ 118, 118, 118, 120, 120, 54, 423, 120, 423, 423,
778
+ 120, 126, 126, 423, 423, 126, 126, 126, 126, 143,
779
+ 143, 423, 423, 143, 423, 423, 143, 144, 144, 423,
780
+ 423, 144, 423, 423, 144, 147, 147, 147, 147, 147,
781
+ 147, 147, 147, 147, 147, 147, 147, 147, 147, 147,
782
+ 154, 154, 154, 154, 154, 154, 154, 154, 154, 154,
783
+ 154, 154, 154, 154, 154, 156, 156, 156, 156, 156,
784
+ 156, 156, 156, 156, 156, 156, 156, 156, 156, 156,
785
+ 162, 162, 162, 162, 162, 162, 162, 162, 162, 162,
786
+ 162, 162, 162, 162, 162, 168, 168, 168, 168, 168,
787
+
788
+ 168, 168, 168, 168, 168, 168, 168, 168, 168, 168,
789
+ 58, 58, 423, 423, 58, 423, 423, 58, 174, 174,
790
+ 174, 174, 174, 174, 174, 174, 174, 174, 174, 174,
791
+ 174, 174, 174, 179, 179, 179, 179, 179, 179, 179,
792
+ 179, 179, 179, 179, 179, 179, 179, 179, 180, 180,
793
+ 180, 180, 180, 180, 180, 180, 180, 180, 180, 180,
794
+ 180, 180, 180, 185, 185, 185, 185, 185, 185, 185,
795
+ 185, 185, 185, 185, 185, 185, 185, 185, 190, 190,
796
+ 190, 190, 190, 190, 190, 190, 190, 190, 190, 190,
797
+ 190, 190, 190, 200, 200, 200, 200, 200, 200, 200,
798
+
799
+ 200, 200, 200, 200, 200, 200, 200, 200, 201, 201,
800
+ 201, 201, 201, 201, 201, 201, 201, 201, 201, 201,
801
+ 201, 201, 201, 207, 207, 207, 207, 207, 207, 207,
802
+ 207, 207, 207, 207, 207, 207, 207, 207, 213, 213,
803
+ 213, 213, 213, 213, 213, 213, 213, 213, 213, 213,
804
+ 213, 213, 213, 219, 219, 219, 219, 219, 219, 219,
805
+ 219, 219, 423, 219, 219, 219, 219, 219, 251, 251,
806
+ 251, 251, 251, 251, 251, 251, 251, 251, 251, 251,
807
+ 251, 251, 251, 255, 255, 255, 255, 255, 255, 255,
808
+ 255, 255, 423, 255, 255, 255, 255, 255, 259, 259,
809
+
810
+ 259, 259, 259, 259, 259, 259, 259, 259, 259, 259,
811
+ 259, 259, 259, 269, 269, 269, 269, 269, 269, 269,
812
+ 269, 269, 269, 269, 269, 269, 269, 269, 278, 278,
813
+ 278, 278, 278, 278, 278, 278, 278, 278, 278, 278,
814
+ 278, 278, 278, 286, 286, 286, 286, 286, 286, 286,
815
+ 286, 286, 286, 286, 286, 286, 286, 286, 288, 288,
816
+ 288, 288, 288, 288, 288, 288, 288, 288, 288, 288,
817
+ 288, 288, 288, 290, 290, 290, 290, 290, 290, 290,
818
+ 290, 290, 290, 290, 290, 290, 290, 290, 293, 293,
819
+ 293, 293, 293, 293, 293, 293, 293, 293, 293, 293,
820
+
821
+ 293, 293, 293, 296, 296, 296, 296, 296, 296, 296,
822
+ 296, 296, 296, 296, 296, 296, 296, 296, 298, 298,
823
+ 298, 298, 298, 298, 298, 298, 298, 298, 298, 298,
824
+ 298, 298, 298, 301, 301, 301, 301, 301, 301, 301,
825
+ 301, 301, 301, 301, 301, 301, 301, 301, 304, 304,
826
+ 304, 304, 304, 304, 304, 304, 304, 304, 304, 304,
827
+ 304, 304, 304, 306, 306, 306, 306, 306, 306, 306,
828
+ 306, 306, 306, 306, 306, 306, 306, 306, 309, 309,
829
+ 309, 309, 309, 309, 309, 309, 309, 309, 309, 309,
830
+ 309, 309, 309, 312, 312, 312, 312, 312, 312, 312,
831
+
832
+ 312, 312, 312, 312, 312, 312, 312, 312, 314, 314,
833
+ 314, 314, 314, 314, 314, 314, 314, 314, 314, 314,
834
+ 314, 314, 314, 317, 317, 317, 317, 317, 317, 317,
835
+ 317, 317, 317, 317, 317, 317, 317, 317, 318, 318,
836
+ 318, 318, 318, 318, 318, 318, 318, 318, 318, 318,
837
+ 318, 318, 318, 320, 320, 320, 320, 320, 320, 320,
838
+ 320, 320, 320, 320, 320, 320, 320, 320, 323, 323,
839
+ 323, 323, 323, 323, 323, 323, 323, 323, 323, 323,
840
+ 323, 323, 323, 326, 326, 326, 326, 326, 326, 326,
841
+ 326, 326, 326, 326, 326, 326, 326, 326, 327, 327,
842
+
843
+ 327, 327, 327, 327, 327, 327, 327, 327, 327, 327,
844
+ 327, 327, 327, 162, 162, 162, 162, 162, 162, 162,
845
+ 162, 162, 162, 162, 162, 162, 162, 162, 329, 329,
846
+ 329, 329, 329, 329, 329, 329, 329, 329, 329, 329,
847
+ 329, 329, 329, 332, 332, 332, 332, 332, 332, 332,
848
+ 332, 332, 332, 332, 332, 332, 332, 332, 335, 335,
849
+ 335, 335, 335, 335, 335, 335, 335, 335, 335, 335,
850
+ 335, 335, 335, 336, 336, 336, 336, 336, 336, 336,
851
+ 336, 336, 336, 336, 336, 336, 336, 336, 168, 168,
852
+ 168, 168, 168, 168, 168, 168, 168, 168, 168, 168,
853
+
854
+ 168, 168, 168, 338, 338, 338, 338, 338, 338, 338,
855
+ 338, 338, 338, 338, 338, 338, 338, 338, 341, 341,
856
+ 341, 341, 341, 341, 341, 341, 341, 341, 341, 341,
857
+ 341, 341, 341, 344, 344, 344, 344, 344, 344, 344,
858
+ 344, 344, 344, 344, 344, 344, 344, 344, 345, 345,
859
+ 345, 345, 345, 345, 345, 345, 345, 423, 345, 345,
860
+ 345, 345, 345, 348, 348, 348, 348, 348, 348, 348,
861
+ 348, 348, 348, 348, 348, 348, 348, 348, 349, 349,
862
+ 349, 349, 349, 349, 349, 349, 349, 349, 349, 349,
863
+ 349, 349, 349, 201, 201, 201, 201, 201, 201, 201,
864
+
865
+ 201, 201, 201, 201, 201, 201, 201, 201, 356, 356,
866
+ 356, 356, 356, 356, 356, 356, 356, 356, 356, 356,
867
+ 356, 356, 356, 358, 358, 358, 358, 358, 358, 358,
868
+ 358, 358, 358, 358, 358, 358, 358, 358, 359, 359,
869
+ 359, 359, 359, 359, 359, 359, 359, 359, 359, 359,
870
+ 359, 359, 359, 207, 207, 207, 207, 207, 207, 207,
871
+ 207, 207, 207, 207, 207, 207, 207, 207, 365, 365,
872
+ 365, 365, 365, 365, 365, 365, 365, 365, 365, 365,
873
+ 365, 365, 365, 367, 367, 367, 367, 367, 367, 367,
874
+ 367, 367, 367, 367, 367, 367, 367, 367, 368, 368,
875
+
876
+ 368, 368, 368, 368, 368, 368, 368, 368, 368, 368,
877
+ 368, 368, 368, 213, 213, 213, 213, 213, 213, 213,
878
+ 213, 213, 213, 213, 213, 213, 213, 213, 374, 374,
879
+ 374, 374, 374, 374, 374, 374, 374, 374, 374, 374,
880
+ 374, 374, 374, 376, 376, 376, 376, 376, 376, 376,
881
+ 376, 376, 376, 376, 376, 376, 376, 376, 377, 377,
882
+ 377, 377, 377, 377, 377, 377, 377, 377, 377, 377,
883
+ 377, 377, 377, 380, 380, 380, 380, 380, 380, 380,
884
+ 380, 380, 380, 380, 380, 380, 380, 380, 382, 382,
885
+ 382, 382, 382, 382, 382, 382, 382, 382, 382, 382,
886
+
887
+ 382, 382, 382, 385, 385, 385, 385, 385, 385, 385,
888
+ 385, 385, 385, 385, 385, 385, 385, 385, 387, 387,
889
+ 387, 387, 387, 387, 387, 387, 387, 387, 387, 387,
890
+ 387, 387, 387, 390, 390, 390, 390, 390, 390, 390,
891
+ 390, 390, 390, 390, 390, 390, 390, 390, 392, 392,
892
+ 392, 392, 392, 392, 392, 392, 392, 392, 392, 392,
893
+ 392, 392, 392, 394, 394, 394, 394, 394, 394, 394,
894
+ 394, 394, 394, 394, 394, 394, 394, 394, 395, 395,
895
+ 395, 395, 395, 395, 395, 395, 395, 395, 395, 395,
896
+ 395, 395, 395, 398, 398, 398, 398, 398, 398, 398,
897
+
898
+ 398, 398, 398, 398, 398, 398, 398, 398, 399, 399,
899
+ 399, 399, 399, 399, 399, 399, 399, 399, 399, 399,
900
+ 399, 399, 399, 402, 402, 402, 402, 402, 402, 402,
901
+ 402, 402, 402, 402, 402, 402, 402, 402, 403, 403,
902
+ 403, 403, 403, 403, 403, 403, 403, 403, 403, 403,
903
+ 403, 403, 403, 406, 406, 406, 406, 406, 406, 406,
904
+ 406, 406, 406, 406, 406, 406, 406, 406, 407, 407,
905
+ 407, 407, 407, 407, 407, 407, 407, 407, 407, 407,
906
+ 407, 407, 407, 408, 408, 408, 408, 408, 408, 408,
907
+ 408, 408, 408, 408, 408, 408, 408, 408, 410, 410,
908
+
909
+ 410, 410, 410, 410, 410, 410, 410, 410, 410, 410,
910
+ 410, 410, 410, 411, 411, 411, 411, 411, 411, 411,
911
+ 411, 411, 411, 411, 411, 411, 411, 411, 413, 413,
912
+ 413, 413, 413, 413, 413, 413, 413, 413, 413, 413,
913
+ 413, 413, 413, 414, 414, 414, 414, 414, 414, 414,
914
+ 414, 414, 414, 414, 414, 414, 414, 414, 416, 416,
915
+ 416, 416, 416, 416, 416, 416, 416, 416, 416, 416,
916
+ 416, 416, 416, 417, 417, 417, 417, 417, 417, 417,
917
+ 417, 417, 417, 417, 417, 417, 417, 417, 419, 419,
918
+ 419, 419, 419, 419, 419, 419, 419, 419, 419, 419,
919
+
920
+ 419, 419, 419, 421, 421, 421, 421, 421, 421, 421,
921
+ 421, 421, 421, 421, 421, 421, 421, 421, 9, 423,
922
+ 423, 423, 423, 423, 423, 423, 423, 423, 423, 423,
923
+ 423, 423, 423, 423, 423, 423, 423, 423, 423, 423,
924
+ 423, 423, 423, 423, 423, 423, 423, 423, 423, 423,
925
+ 423, 423, 423, 423, 423, 423, 423, 423, 423, 423,
926
+ 423, 423, 423, 423, 423, 423, 423, 423, 423, 423,
927
+ 423, 423, 423, 423
928
+ } ;
929
+
930
+ static yyconst flex_int16_t yy_chk[2675] =
931
+ { 0,
932
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
933
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
934
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
935
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
936
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
937
+ 1, 1, 1, 1, 1, 2, 11, 422, 11, 19,
938
+ 2, 3, 3, 3, 3, 3, 3, 3, 3, 420,
939
+ 19, 3, 3, 3, 3, 3, 3, 3, 3, 3,
940
+ 3, 3, 3, 3, 3, 3, 3, 3, 3, 4,
941
+ 25, 25, 418, 20, 4, 5, 5, 5, 5, 5,
942
+
943
+ 5, 5, 5, 20, 20, 5, 5, 5, 5, 5,
944
+ 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
945
+ 5, 5, 6, 21, 21, 21, 21, 6, 7, 7,
946
+ 7, 7, 7, 7, 7, 7, 14, 34, 7, 7,
947
+ 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
948
+ 7, 7, 7, 7, 7, 8, 16, 22, 27, 27,
949
+ 8, 22, 35, 90, 35, 14, 90, 35, 34, 22,
950
+ 55, 16, 23, 416, 23, 23, 23, 23, 36, 36,
951
+ 36, 37, 37, 37, 39, 40, 415, 40, 23, 39,
952
+ 23, 23, 36, 41, 53, 37, 53, 89, 41, 55,
953
+
954
+ 37, 37, 89, 23, 64, 38, 38, 38, 87, 23,
955
+ 23, 24, 131, 24, 24, 24, 24, 87, 131, 38,
956
+ 43, 43, 43, 64, 38, 38, 413, 24, 161, 24,
957
+ 44, 44, 44, 37, 43, 161, 45, 45, 45, 46,
958
+ 46, 46, 24, 182, 44, 47, 47, 47, 24, 38,
959
+ 45, 232, 182, 46, 48, 48, 48, 38, 232, 47,
960
+ 59, 59, 59, 48, 49, 49, 49, 159, 48, 66,
961
+ 159, 66, 43, 49, 44, 45, 59, 59, 49, 412,
962
+ 410, 77, 44, 77, 66, 46, 77, 129, 45, 117,
963
+ 66, 46, 129, 117, 47, 59, 59, 47, 50, 50,
964
+
965
+ 50, 51, 51, 51, 52, 52, 52, 50, 49, 69,
966
+ 51, 69, 50, 52, 160, 51, 409, 160, 52, 63,
967
+ 63, 63, 63, 65, 69, 65, 65, 65, 65, 407,
968
+ 69, 78, 78, 78, 79, 79, 79, 50, 91, 91,
969
+ 91, 130, 108, 406, 405, 78, 130, 51, 79, 108,
970
+ 108, 108, 91, 52, 60, 60, 60, 60, 93, 93,
971
+ 93, 82, 82, 82, 205, 60, 60, 128, 120, 60,
972
+ 120, 128, 93, 205, 402, 82, 401, 60, 60, 60,
973
+ 82, 82, 398, 120, 60, 95, 95, 95, 397, 120,
974
+ 91, 96, 96, 96, 155, 97, 97, 97, 155, 95,
975
+
976
+ 157, 98, 98, 98, 157, 96, 394, 158, 163, 97,
977
+ 93, 158, 163, 82, 393, 98, 99, 99, 99, 109,
978
+ 95, 390, 102, 102, 102, 99, 109, 109, 109, 388,
979
+ 99, 102, 103, 103, 103, 96, 102, 95, 133, 133,
980
+ 133, 103, 227, 96, 97, 385, 103, 97, 98, 104,
981
+ 104, 104, 133, 98, 383, 105, 105, 105, 104, 106,
982
+ 106, 106, 169, 104, 105, 380, 169, 103, 106, 105,
983
+ 115, 115, 377, 106, 115, 115, 115, 115, 134, 134,
984
+ 134, 135, 135, 135, 227, 376, 133, 136, 136, 136,
985
+ 133, 375, 134, 104, 373, 135, 138, 138, 138, 183,
986
+
987
+ 371, 136, 369, 183, 105, 138, 106, 139, 139, 139,
988
+ 138, 367, 366, 140, 140, 140, 139, 134, 364, 360,
989
+ 135, 139, 140, 145, 145, 145, 145, 140, 252, 358,
990
+ 134, 236, 252, 135, 141, 141, 141, 136, 149, 136,
991
+ 149, 260, 142, 141, 138, 260, 139, 357, 141, 142,
992
+ 142, 142, 140, 149, 164, 164, 164, 245, 184, 149,
993
+ 165, 165, 165, 184, 166, 166, 166, 204, 164, 175,
994
+ 175, 175, 204, 236, 165, 270, 355, 353, 166, 270,
995
+ 167, 167, 167, 175, 141, 146, 146, 146, 146, 170,
996
+ 170, 170, 231, 264, 167, 350, 146, 231, 170, 245,
997
+
998
+ 146, 165, 164, 170, 258, 279, 164, 348, 146, 279,
999
+ 146, 166, 165, 262, 258, 146, 166, 167, 262, 171,
1000
+ 171, 171, 172, 172, 172, 173, 173, 173, 171, 347,
1001
+ 345, 172, 167, 171, 173, 264, 172, 170, 344, 173,
1002
+ 181, 181, 181, 186, 186, 186, 258, 187, 187, 187,
1003
+ 188, 188, 188, 343, 181, 340, 338, 186, 337, 274,
1004
+ 171, 187, 173, 335, 188, 189, 189, 189, 334, 172,
1005
+ 284, 191, 191, 191, 192, 192, 192, 268, 331, 189,
1006
+ 191, 329, 187, 192, 181, 191, 328, 268, 192, 326,
1007
+ 188, 193, 193, 193, 277, 186, 199, 199, 199, 187,
1008
+
1009
+ 193, 274, 188, 325, 277, 193, 194, 194, 194, 192,
1010
+ 199, 352, 284, 322, 189, 194, 320, 189, 319, 268,
1011
+ 194, 202, 202, 202, 206, 206, 206, 317, 208, 208,
1012
+ 208, 193, 210, 210, 210, 202, 277, 316, 206, 315,
1013
+ 202, 202, 208, 211, 211, 211, 210, 212, 212, 212,
1014
+ 214, 214, 214, 352, 289, 194, 297, 211, 289, 214,
1015
+ 297, 212, 290, 314, 214, 216, 216, 216, 206, 235,
1016
+ 235, 235, 290, 202, 216, 312, 309, 362, 211, 216,
1017
+ 208, 210, 305, 235, 210, 372, 305, 217, 217, 217,
1018
+ 313, 218, 218, 218, 313, 211, 217, 308, 304, 212,
1019
+
1020
+ 218, 217, 214, 295, 290, 218, 226, 226, 226, 233,
1021
+ 233, 233, 301, 295, 216, 300, 239, 239, 239, 362,
1022
+ 226, 235, 217, 233, 296, 226, 226, 372, 233, 233,
1023
+ 239, 293, 240, 240, 240, 241, 241, 241, 243, 243,
1024
+ 243, 292, 247, 247, 247, 295, 240, 243, 288, 241,
1025
+ 378, 247, 243, 381, 378, 239, 247, 381, 226, 286,
1026
+ 285, 233, 248, 248, 248, 249, 249, 249, 239, 240,
1027
+ 298, 248, 283, 291, 249, 278, 248, 291, 386, 249,
1028
+ 298, 247, 386, 291, 240, 391, 276, 241, 269, 391,
1029
+ 243, 263, 263, 263, 271, 271, 271, 267, 265, 248,
1030
+
1031
+ 272, 272, 272, 299, 261, 263, 259, 299, 271, 257,
1032
+ 263, 263, 298, 299, 272, 291, 255, 249, 273, 273,
1033
+ 273, 280, 280, 280, 281, 281, 281, 282, 282, 282,
1034
+ 280, 254, 273, 281, 303, 280, 282, 251, 281, 272,
1035
+ 306, 282, 250, 263, 303, 299, 271, 287, 287, 287,
1036
+ 306, 246, 272, 294, 294, 294, 307, 302, 302, 302,
1037
+ 307, 287, 244, 281, 242, 311, 307, 294, 318, 238,
1038
+ 273, 302, 310, 310, 310, 311, 303, 323, 318, 282,
1039
+ 324, 310, 306, 234, 324, 327, 310, 323, 230, 228,
1040
+ 324, 225, 321, 321, 321, 327, 224, 294, 307, 330,
1041
+
1042
+ 330, 330, 223, 222, 332, 336, 321, 311, 341, 302,
1043
+ 318, 321, 321, 330, 332, 336, 333, 221, 341, 323,
1044
+ 333, 349, 324, 339, 339, 339, 333, 327, 356, 342,
1045
+ 359, 349, 339, 342, 351, 351, 351, 339, 356, 342,
1046
+ 359, 361, 361, 361, 321, 219, 332, 336, 351, 365,
1047
+ 341, 330, 368, 351, 351, 361, 215, 374, 333, 365,
1048
+ 213, 209, 368, 349, 370, 370, 370, 374, 207, 379,
1049
+ 356, 342, 359, 370, 203, 339, 201, 382, 370, 379,
1050
+ 384, 200, 387, 198, 197, 389, 351, 382, 392, 196,
1051
+ 384, 365, 387, 361, 368, 389, 395, 396, 392, 374,
1052
+
1053
+ 399, 396, 403, 408, 400, 404, 395, 396, 400, 404,
1054
+ 399, 379, 403, 408, 400, 404, 370, 195, 411, 382,
1055
+ 190, 414, 384, 417, 387, 419, 421, 389, 411, 185,
1056
+ 392, 414, 180, 417, 179, 419, 421, 178, 395, 396,
1057
+ 177, 176, 399, 174, 403, 408, 400, 404, 168, 162,
1058
+ 156, 154, 153, 152, 151, 150, 147, 143, 137, 132,
1059
+ 411, 127, 125, 414, 124, 417, 123, 419, 421, 424,
1060
+ 424, 424, 424, 424, 424, 424, 424, 424, 424, 424,
1061
+ 424, 424, 424, 424, 425, 425, 425, 425, 122, 425,
1062
+ 425, 425, 425, 425, 425, 425, 425, 425, 425, 426,
1063
+
1064
+ 426, 121, 116, 426, 426, 426, 426, 427, 427, 113,
1065
+ 112, 101, 92, 88, 84, 83, 427, 427, 427, 427,
1066
+ 428, 428, 80, 76, 75, 428, 428, 428, 428, 428,
1067
+ 428, 428, 428, 428, 429, 429, 74, 73, 71, 429,
1068
+ 429, 70, 61, 429, 429, 429, 429, 429, 430, 430,
1069
+ 58, 57, 430, 430, 430, 33, 32, 430, 430, 430,
1070
+ 430, 431, 431, 431, 31, 431, 30, 29, 26, 18,
1071
+ 17, 431, 431, 432, 432, 432, 432, 432, 432, 432,
1072
+ 432, 432, 432, 432, 432, 432, 432, 432, 433, 433,
1073
+ 15, 433, 433, 433, 433, 433, 433, 433, 433, 433,
1074
+
1075
+ 433, 433, 433, 434, 434, 13, 9, 434, 0, 0,
1076
+ 434, 435, 435, 0, 0, 435, 435, 435, 435, 436,
1077
+ 436, 0, 0, 436, 0, 0, 436, 437, 437, 0,
1078
+ 0, 437, 0, 0, 437, 438, 438, 438, 438, 438,
1079
+ 438, 438, 438, 438, 438, 438, 438, 438, 438, 438,
1080
+ 439, 439, 439, 439, 439, 439, 439, 439, 439, 439,
1081
+ 439, 439, 439, 439, 439, 440, 440, 440, 440, 440,
1082
+ 440, 440, 440, 440, 440, 440, 440, 440, 440, 440,
1083
+ 441, 441, 441, 441, 441, 441, 441, 441, 441, 441,
1084
+ 441, 441, 441, 441, 441, 442, 442, 442, 442, 442,
1085
+
1086
+ 442, 442, 442, 442, 442, 442, 442, 442, 442, 442,
1087
+ 443, 443, 0, 0, 443, 0, 0, 443, 444, 444,
1088
+ 444, 444, 444, 444, 444, 444, 444, 444, 444, 444,
1089
+ 444, 444, 444, 445, 445, 445, 445, 445, 445, 445,
1090
+ 445, 445, 445, 445, 445, 445, 445, 445, 446, 446,
1091
+ 446, 446, 446, 446, 446, 446, 446, 446, 446, 446,
1092
+ 446, 446, 446, 447, 447, 447, 447, 447, 447, 447,
1093
+ 447, 447, 447, 447, 447, 447, 447, 447, 448, 448,
1094
+ 448, 448, 448, 448, 448, 448, 448, 448, 448, 448,
1095
+ 448, 448, 448, 449, 449, 449, 449, 449, 449, 449,
1096
+
1097
+ 449, 449, 449, 449, 449, 449, 449, 449, 450, 450,
1098
+ 450, 450, 450, 450, 450, 450, 450, 450, 450, 450,
1099
+ 450, 450, 450, 451, 451, 451, 451, 451, 451, 451,
1100
+ 451, 451, 451, 451, 451, 451, 451, 451, 452, 452,
1101
+ 452, 452, 452, 452, 452, 452, 452, 452, 452, 452,
1102
+ 452, 452, 452, 453, 453, 453, 453, 453, 453, 453,
1103
+ 453, 453, 0, 453, 453, 453, 453, 453, 454, 454,
1104
+ 454, 454, 454, 454, 454, 454, 454, 454, 454, 454,
1105
+ 454, 454, 454, 455, 455, 455, 455, 455, 455, 455,
1106
+ 455, 455, 0, 455, 455, 455, 455, 455, 456, 456,
1107
+
1108
+ 456, 456, 456, 456, 456, 456, 456, 456, 456, 456,
1109
+ 456, 456, 456, 457, 457, 457, 457, 457, 457, 457,
1110
+ 457, 457, 457, 457, 457, 457, 457, 457, 458, 458,
1111
+ 458, 458, 458, 458, 458, 458, 458, 458, 458, 458,
1112
+ 458, 458, 458, 459, 459, 459, 459, 459, 459, 459,
1113
+ 459, 459, 459, 459, 459, 459, 459, 459, 460, 460,
1114
+ 460, 460, 460, 460, 460, 460, 460, 460, 460, 460,
1115
+ 460, 460, 460, 461, 461, 461, 461, 461, 461, 461,
1116
+ 461, 461, 461, 461, 461, 461, 461, 461, 462, 462,
1117
+ 462, 462, 462, 462, 462, 462, 462, 462, 462, 462,
1118
+
1119
+ 462, 462, 462, 463, 463, 463, 463, 463, 463, 463,
1120
+ 463, 463, 463, 463, 463, 463, 463, 463, 464, 464,
1121
+ 464, 464, 464, 464, 464, 464, 464, 464, 464, 464,
1122
+ 464, 464, 464, 465, 465, 465, 465, 465, 465, 465,
1123
+ 465, 465, 465, 465, 465, 465, 465, 465, 466, 466,
1124
+ 466, 466, 466, 466, 466, 466, 466, 466, 466, 466,
1125
+ 466, 466, 466, 467, 467, 467, 467, 467, 467, 467,
1126
+ 467, 467, 467, 467, 467, 467, 467, 467, 468, 468,
1127
+ 468, 468, 468, 468, 468, 468, 468, 468, 468, 468,
1128
+ 468, 468, 468, 469, 469, 469, 469, 469, 469, 469,
1129
+
1130
+ 469, 469, 469, 469, 469, 469, 469, 469, 470, 470,
1131
+ 470, 470, 470, 470, 470, 470, 470, 470, 470, 470,
1132
+ 470, 470, 470, 471, 471, 471, 471, 471, 471, 471,
1133
+ 471, 471, 471, 471, 471, 471, 471, 471, 472, 472,
1134
+ 472, 472, 472, 472, 472, 472, 472, 472, 472, 472,
1135
+ 472, 472, 472, 473, 473, 473, 473, 473, 473, 473,
1136
+ 473, 473, 473, 473, 473, 473, 473, 473, 474, 474,
1137
+ 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
1138
+ 474, 474, 474, 475, 475, 475, 475, 475, 475, 475,
1139
+ 475, 475, 475, 475, 475, 475, 475, 475, 476, 476,
1140
+
1141
+ 476, 476, 476, 476, 476, 476, 476, 476, 476, 476,
1142
+ 476, 476, 476, 477, 477, 477, 477, 477, 477, 477,
1143
+ 477, 477, 477, 477, 477, 477, 477, 477, 478, 478,
1144
+ 478, 478, 478, 478, 478, 478, 478, 478, 478, 478,
1145
+ 478, 478, 478, 479, 479, 479, 479, 479, 479, 479,
1146
+ 479, 479, 479, 479, 479, 479, 479, 479, 480, 480,
1147
+ 480, 480, 480, 480, 480, 480, 480, 480, 480, 480,
1148
+ 480, 480, 480, 481, 481, 481, 481, 481, 481, 481,
1149
+ 481, 481, 481, 481, 481, 481, 481, 481, 482, 482,
1150
+ 482, 482, 482, 482, 482, 482, 482, 482, 482, 482,
1151
+
1152
+ 482, 482, 482, 483, 483, 483, 483, 483, 483, 483,
1153
+ 483, 483, 483, 483, 483, 483, 483, 483, 484, 484,
1154
+ 484, 484, 484, 484, 484, 484, 484, 484, 484, 484,
1155
+ 484, 484, 484, 485, 485, 485, 485, 485, 485, 485,
1156
+ 485, 485, 485, 485, 485, 485, 485, 485, 486, 486,
1157
+ 486, 486, 486, 486, 486, 486, 486, 0, 486, 486,
1158
+ 486, 486, 486, 487, 487, 487, 487, 487, 487, 487,
1159
+ 487, 487, 487, 487, 487, 487, 487, 487, 488, 488,
1160
+ 488, 488, 488, 488, 488, 488, 488, 488, 488, 488,
1161
+ 488, 488, 488, 489, 489, 489, 489, 489, 489, 489,
1162
+
1163
+ 489, 489, 489, 489, 489, 489, 489, 489, 490, 490,
1164
+ 490, 490, 490, 490, 490, 490, 490, 490, 490, 490,
1165
+ 490, 490, 490, 491, 491, 491, 491, 491, 491, 491,
1166
+ 491, 491, 491, 491, 491, 491, 491, 491, 492, 492,
1167
+ 492, 492, 492, 492, 492, 492, 492, 492, 492, 492,
1168
+ 492, 492, 492, 493, 493, 493, 493, 493, 493, 493,
1169
+ 493, 493, 493, 493, 493, 493, 493, 493, 494, 494,
1170
+ 494, 494, 494, 494, 494, 494, 494, 494, 494, 494,
1171
+ 494, 494, 494, 495, 495, 495, 495, 495, 495, 495,
1172
+ 495, 495, 495, 495, 495, 495, 495, 495, 496, 496,
1173
+
1174
+ 496, 496, 496, 496, 496, 496, 496, 496, 496, 496,
1175
+ 496, 496, 496, 497, 497, 497, 497, 497, 497, 497,
1176
+ 497, 497, 497, 497, 497, 497, 497, 497, 498, 498,
1177
+ 498, 498, 498, 498, 498, 498, 498, 498, 498, 498,
1178
+ 498, 498, 498, 499, 499, 499, 499, 499, 499, 499,
1179
+ 499, 499, 499, 499, 499, 499, 499, 499, 500, 500,
1180
+ 500, 500, 500, 500, 500, 500, 500, 500, 500, 500,
1181
+ 500, 500, 500, 501, 501, 501, 501, 501, 501, 501,
1182
+ 501, 501, 501, 501, 501, 501, 501, 501, 502, 502,
1183
+ 502, 502, 502, 502, 502, 502, 502, 502, 502, 502,
1184
+
1185
+ 502, 502, 502, 503, 503, 503, 503, 503, 503, 503,
1186
+ 503, 503, 503, 503, 503, 503, 503, 503, 504, 504,
1187
+ 504, 504, 504, 504, 504, 504, 504, 504, 504, 504,
1188
+ 504, 504, 504, 505, 505, 505, 505, 505, 505, 505,
1189
+ 505, 505, 505, 505, 505, 505, 505, 505, 506, 506,
1190
+ 506, 506, 506, 506, 506, 506, 506, 506, 506, 506,
1191
+ 506, 506, 506, 507, 507, 507, 507, 507, 507, 507,
1192
+ 507, 507, 507, 507, 507, 507, 507, 507, 508, 508,
1193
+ 508, 508, 508, 508, 508, 508, 508, 508, 508, 508,
1194
+ 508, 508, 508, 509, 509, 509, 509, 509, 509, 509,
1195
+
1196
+ 509, 509, 509, 509, 509, 509, 509, 509, 510, 510,
1197
+ 510, 510, 510, 510, 510, 510, 510, 510, 510, 510,
1198
+ 510, 510, 510, 511, 511, 511, 511, 511, 511, 511,
1199
+ 511, 511, 511, 511, 511, 511, 511, 511, 512, 512,
1200
+ 512, 512, 512, 512, 512, 512, 512, 512, 512, 512,
1201
+ 512, 512, 512, 513, 513, 513, 513, 513, 513, 513,
1202
+ 513, 513, 513, 513, 513, 513, 513, 513, 514, 514,
1203
+ 514, 514, 514, 514, 514, 514, 514, 514, 514, 514,
1204
+ 514, 514, 514, 515, 515, 515, 515, 515, 515, 515,
1205
+ 515, 515, 515, 515, 515, 515, 515, 515, 516, 516,
1206
+
1207
+ 516, 516, 516, 516, 516, 516, 516, 516, 516, 516,
1208
+ 516, 516, 516, 517, 517, 517, 517, 517, 517, 517,
1209
+ 517, 517, 517, 517, 517, 517, 517, 517, 518, 518,
1210
+ 518, 518, 518, 518, 518, 518, 518, 518, 518, 518,
1211
+ 518, 518, 518, 519, 519, 519, 519, 519, 519, 519,
1212
+ 519, 519, 519, 519, 519, 519, 519, 519, 520, 520,
1213
+ 520, 520, 520, 520, 520, 520, 520, 520, 520, 520,
1214
+ 520, 520, 520, 521, 521, 521, 521, 521, 521, 521,
1215
+ 521, 521, 521, 521, 521, 521, 521, 521, 522, 522,
1216
+ 522, 522, 522, 522, 522, 522, 522, 522, 522, 522,
1217
+
1218
+ 522, 522, 522, 523, 523, 523, 523, 523, 523, 523,
1219
+ 523, 523, 523, 523, 523, 523, 523, 523, 423, 423,
1220
+ 423, 423, 423, 423, 423, 423, 423, 423, 423, 423,
1221
+ 423, 423, 423, 423, 423, 423, 423, 423, 423, 423,
1222
+ 423, 423, 423, 423, 423, 423, 423, 423, 423, 423,
1223
+ 423, 423, 423, 423, 423, 423, 423, 423, 423, 423,
1224
+ 423, 423, 423, 423, 423, 423, 423, 423, 423, 423,
1225
+ 423, 423, 423, 423
1226
+ } ;
1227
+
1228
+ #define YY_TRAILING_MASK 0x2000
1229
+ #define YY_TRAILING_HEAD_MASK 0x4000
1230
+ #define REJECT \
1231
+ { \
1232
+ *yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */ \
1233
+ yy_cp = yyg->yy_full_match; /* restore poss. backed-over text */ \
1234
+ yyg->yy_lp = yyg->yy_full_lp; /* restore orig. accepting pos. */ \
1235
+ yyg->yy_state_ptr = yyg->yy_full_state; /* restore orig. state */ \
1236
+ yy_current_state = *yyg->yy_state_ptr; /* restore curr. state */ \
1237
+ ++yyg->yy_lp; \
1238
+ goto find_rule; \
1239
+ }
1240
+
1241
+ #define yymore() yymore_used_but_not_detected
1242
+ #define YY_MORE_ADJ 0
1243
+ #define YY_RESTORE_YY_MORE_OFFSET
1244
+ /*
1245
+ * java.l - a lex rule for C#
1246
+ *
1247
+ * Copyright (C) 2005 Kenichi Ishibashi <bashi at dream.ie.ariake-nct.ac.jp>
1248
+ * All rights reserved.
1249
+ * This is free software with ABSOLUTELY NO WARRANTY.
1250
+ *
1251
+ * You can redistribute it and/or modify it under the terms of
1252
+ * the GNU General Public License version 2.
1253
+ */
1254
+
1255
+ #include "csharp.h"
1256
+
1257
+ #define YY_EXTRA_TYPE langscan_csharp_lex_extra_t *
1258
+
1259
+ #if YY_NULL != 0
1260
+ #error "YY_NULL is not 0."
1261
+ #endif
1262
+
1263
+ #define YY_DECL langscan_csharp_token_t langscan_csharp_lex_lex(yyscan_t yyscanner)
1264
+
1265
+ #define YY_INPUT(buf,result,max_size) \
1266
+ if (!yyextra->eof) { \
1267
+ result = yyextra->user_read(&(yyextra->user_data), (buf), (max_size)); \
1268
+ if (result == 0) \
1269
+ yyextra->eof = 1; \
1270
+ }
1271
+
1272
+ #define UPD update_pos(yyextra, yytext, yyleng)
1273
+ static void update_pos(langscan_csharp_lex_extra_t *, char *, int);
1274
+
1275
+ #define report(token) \
1276
+ do { \
1277
+ yyextra->text = yytext; \
1278
+ yyextra->leng = yyleng; \
1279
+ return langscan_csharp_##token; \
1280
+ } while (0)
1281
+
1282
+ static int ident_length(unsigned char *ptr, int max);
1283
+
1284
+ #define INITIAL 0
1285
+ #define CLASSHEAD 1
1286
+ #define CLASSHEAD_TRAILER 2
1287
+ #define DELEGATE 3
1288
+
1289
+ #ifndef YY_EXTRA_TYPE
1290
+ #define YY_EXTRA_TYPE void *
1291
+ #endif
1292
+
1293
+ /* Holds the entire state of the reentrant scanner. */
1294
+ struct yyguts_t
1295
+ {
1296
+
1297
+ /* User-defined. Not touched by flex. */
1298
+ YY_EXTRA_TYPE yyextra_r;
1299
+
1300
+ /* The rest are the same as the globals declared in the non-reentrant scanner. */
1301
+ FILE *yyin_r, *yyout_r;
1302
+ size_t yy_buffer_stack_top; /**< index of top of stack. */
1303
+ size_t yy_buffer_stack_max; /**< capacity of stack. */
1304
+ YY_BUFFER_STATE * yy_buffer_stack; /**< Stack as an array. */
1305
+ char yy_hold_char;
1306
+ int yy_n_chars;
1307
+ int yyleng_r;
1308
+ char *yy_c_buf_p;
1309
+ int yy_init;
1310
+ int yy_start;
1311
+ int yy_did_buffer_switch_on_eof;
1312
+ int yy_start_stack_ptr;
1313
+ int yy_start_stack_depth;
1314
+ int *yy_start_stack;
1315
+ yy_state_type yy_last_accepting_state;
1316
+ char* yy_last_accepting_cpos;
1317
+
1318
+ int yylineno_r;
1319
+ int yy_flex_debug_r;
1320
+
1321
+ yy_state_type *yy_state_buf;
1322
+ yy_state_type *yy_state_ptr;
1323
+ char *yy_full_match;
1324
+ int yy_lp;
1325
+
1326
+ /* These are only needed for trailing context rules,
1327
+ * but there's no conditional variable for that yet. */
1328
+ int yy_looking_for_trail_begin;
1329
+ int yy_full_lp;
1330
+ int *yy_full_state;
1331
+
1332
+ char *yytext_r;
1333
+ int yy_more_flag;
1334
+ int yy_more_len;
1335
+
1336
+ }; /* end struct yyguts_t */
1337
+
1338
+ static int yy_init_globals (yyscan_t yyscanner );
1339
+
1340
+ int langscan_csharp_lex_lex_init (yyscan_t* scanner);
1341
+
1342
+ int langscan_csharp_lex_lex_init_extra (YY_EXTRA_TYPE user_defined,yyscan_t* scanner);
1343
+
1344
+ /* Accessor methods to globals.
1345
+ These are made visible to non-reentrant scanners for convenience. */
1346
+
1347
+ int langscan_csharp_lex_lex_destroy (yyscan_t yyscanner );
1348
+
1349
+ int langscan_csharp_lex_get_debug (yyscan_t yyscanner );
1350
+
1351
+ void langscan_csharp_lex_set_debug (int debug_flag ,yyscan_t yyscanner );
1352
+
1353
+ YY_EXTRA_TYPE langscan_csharp_lex_get_extra (yyscan_t yyscanner );
1354
+
1355
+ void langscan_csharp_lex_set_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner );
1356
+
1357
+ FILE *langscan_csharp_lex_get_in (yyscan_t yyscanner );
1358
+
1359
+ void langscan_csharp_lex_set_in (FILE * in_str ,yyscan_t yyscanner );
1360
+
1361
+ FILE *langscan_csharp_lex_get_out (yyscan_t yyscanner );
1362
+
1363
+ void langscan_csharp_lex_set_out (FILE * out_str ,yyscan_t yyscanner );
1364
+
1365
+ int langscan_csharp_lex_get_leng (yyscan_t yyscanner );
1366
+
1367
+ char *langscan_csharp_lex_get_text (yyscan_t yyscanner );
1368
+
1369
+ int langscan_csharp_lex_get_lineno (yyscan_t yyscanner );
1370
+
1371
+ void langscan_csharp_lex_set_lineno (int line_number ,yyscan_t yyscanner );
1372
+
1373
+ /* Macros after this point can all be overridden by user definitions in
1374
+ * section 1.
1375
+ */
1376
+
1377
+ #ifndef YY_SKIP_YYWRAP
1378
+ #ifdef __cplusplus
1379
+ extern "C" int langscan_csharp_lex_wrap (yyscan_t yyscanner );
1380
+ #else
1381
+ extern int langscan_csharp_lex_wrap (yyscan_t yyscanner );
1382
+ #endif
1383
+ #endif
1384
+
1385
+ static void yyunput (int c,char *buf_ptr ,yyscan_t yyscanner);
1386
+
1387
+ #ifndef yytext_ptr
1388
+ static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner);
1389
+ #endif
1390
+
1391
+ #ifdef YY_NEED_STRLEN
1392
+ static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner);
1393
+ #endif
1394
+
1395
+ #ifndef YY_NO_INPUT
1396
+
1397
+ #ifdef __cplusplus
1398
+ static int yyinput (yyscan_t yyscanner );
1399
+ #else
1400
+ static int input (yyscan_t yyscanner );
1401
+ #endif
1402
+
1403
+ #endif
1404
+
1405
+ /* Amount of stuff to slurp up with each read. */
1406
+ #ifndef YY_READ_BUF_SIZE
1407
+ #ifdef __ia64__
1408
+ /* On IA-64, the buffer size is 16k, not 8k */
1409
+ #define YY_READ_BUF_SIZE 16384
1410
+ #else
1411
+ #define YY_READ_BUF_SIZE 8192
1412
+ #endif /* __ia64__ */
1413
+ #endif
1414
+
1415
+ /* Copy whatever the last rule matched to the standard output. */
1416
+ #ifndef ECHO
1417
+ /* This used to be an fputs(), but since the string might contain NUL's,
1418
+ * we now use fwrite().
1419
+ */
1420
+ #define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)
1421
+ #endif
1422
+
1423
+ /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
1424
+ * is returned in "result".
1425
+ */
1426
+ #ifndef YY_INPUT
1427
+ #define YY_INPUT(buf,result,max_size) \
1428
+ if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
1429
+ { \
1430
+ int c = '*'; \
1431
+ size_t n; \
1432
+ for ( n = 0; n < max_size && \
1433
+ (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
1434
+ buf[n] = (char) c; \
1435
+ if ( c == '\n' ) \
1436
+ buf[n++] = (char) c; \
1437
+ if ( c == EOF && ferror( yyin ) ) \
1438
+ YY_FATAL_ERROR( "input in flex scanner failed" ); \
1439
+ result = n; \
1440
+ } \
1441
+ else \
1442
+ { \
1443
+ errno=0; \
1444
+ while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
1445
+ { \
1446
+ if( errno != EINTR) \
1447
+ { \
1448
+ YY_FATAL_ERROR( "input in flex scanner failed" ); \
1449
+ break; \
1450
+ } \
1451
+ errno=0; \
1452
+ clearerr(yyin); \
1453
+ } \
1454
+ }\
1455
+ \
1456
+
1457
+ #endif
1458
+
1459
+ /* No semi-colon after return; correct usage is to write "yyterminate();" -
1460
+ * we don't want an extra ';' after the "return" because that will cause
1461
+ * some compilers to complain about unreachable statements.
1462
+ */
1463
+ #ifndef yyterminate
1464
+ #define yyterminate() return YY_NULL
1465
+ #endif
1466
+
1467
+ /* Number of entries by which start-condition stack grows. */
1468
+ #ifndef YY_START_STACK_INCR
1469
+ #define YY_START_STACK_INCR 25
1470
+ #endif
1471
+
1472
+ /* Report a fatal error. */
1473
+ #ifndef YY_FATAL_ERROR
1474
+ #define YY_FATAL_ERROR(msg) yy_fatal_error( msg , yyscanner)
1475
+ #endif
1476
+
1477
+ /* end tables serialization structures and prototypes */
1478
+
1479
+ /* Default declaration of generated scanner - a define so the user can
1480
+ * easily add parameters.
1481
+ */
1482
+ #ifndef YY_DECL
1483
+ #define YY_DECL_IS_OURS 1
1484
+
1485
+ extern int langscan_csharp_lex_lex (yyscan_t yyscanner);
1486
+
1487
+ #define YY_DECL int langscan_csharp_lex_lex (yyscan_t yyscanner)
1488
+ #endif /* !YY_DECL */
1489
+
1490
+ /* Code executed at the beginning of each rule, after yytext and yyleng
1491
+ * have been set up.
1492
+ */
1493
+ #ifndef YY_USER_ACTION
1494
+ #define YY_USER_ACTION
1495
+ #endif
1496
+
1497
+ /* Code executed at the end of each rule. */
1498
+ #ifndef YY_BREAK
1499
+ #define YY_BREAK break;
1500
+ #endif
1501
+
1502
+ #define YY_RULE_SETUP \
1503
+ if ( yyleng > 0 ) \
1504
+ YY_CURRENT_BUFFER_LVALUE->yy_at_bol = \
1505
+ (yytext[yyleng - 1] == '\n'); \
1506
+ YY_USER_ACTION
1507
+
1508
+ /** The main scanner function which does all the work.
1509
+ */
1510
+ YY_DECL
1511
+ {
1512
+ register yy_state_type yy_current_state;
1513
+ register char *yy_cp, *yy_bp;
1514
+ register int yy_act;
1515
+ struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1516
+
1517
+ if ( !yyg->yy_init )
1518
+ {
1519
+ yyg->yy_init = 1;
1520
+
1521
+ #ifdef YY_USER_INIT
1522
+ YY_USER_INIT;
1523
+ #endif
1524
+
1525
+ /* Create the reject buffer large enough to save one state per allowed character. */
1526
+ if ( ! yyg->yy_state_buf )
1527
+ yyg->yy_state_buf = (yy_state_type *)langscan_csharp_lex_alloc(YY_STATE_BUF_SIZE ,yyscanner);
1528
+ if ( ! yyg->yy_state_buf )
1529
+ YY_FATAL_ERROR( "out of dynamic memory in langscan_csharp_lex_lex()" );
1530
+
1531
+ if ( ! yyg->yy_start )
1532
+ yyg->yy_start = 1; /* first start state */
1533
+
1534
+ if ( ! yyin )
1535
+ yyin = stdin;
1536
+
1537
+ if ( ! yyout )
1538
+ yyout = stdout;
1539
+
1540
+ if ( ! YY_CURRENT_BUFFER ) {
1541
+ langscan_csharp_lex_ensure_buffer_stack (yyscanner);
1542
+ YY_CURRENT_BUFFER_LVALUE =
1543
+ langscan_csharp_lex__create_buffer(yyin,YY_BUF_SIZE ,yyscanner);
1544
+ }
1545
+
1546
+ langscan_csharp_lex__load_buffer_state(yyscanner );
1547
+ }
1548
+
1549
+ while ( 1 ) /* loops until end-of-file is reached */
1550
+ {
1551
+ yy_cp = yyg->yy_c_buf_p;
1552
+
1553
+ /* Support of yytext. */
1554
+ *yy_cp = yyg->yy_hold_char;
1555
+
1556
+ /* yy_bp points to the position in yy_ch_buf of the start of
1557
+ * the current run.
1558
+ */
1559
+ yy_bp = yy_cp;
1560
+
1561
+ yy_current_state = yyg->yy_start;
1562
+ yy_current_state += YY_AT_BOL();
1563
+
1564
+ yyg->yy_state_ptr = yyg->yy_state_buf;
1565
+ *yyg->yy_state_ptr++ = yy_current_state;
1566
+
1567
+ yy_match:
1568
+ do
1569
+ {
1570
+ register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
1571
+ while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1572
+ {
1573
+ yy_current_state = (int) yy_def[yy_current_state];
1574
+ if ( yy_current_state >= 424 )
1575
+ yy_c = yy_meta[(unsigned int) yy_c];
1576
+ }
1577
+ yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1578
+ *yyg->yy_state_ptr++ = yy_current_state;
1579
+ ++yy_cp;
1580
+ }
1581
+ while ( yy_base[yy_current_state] != 2619 );
1582
+
1583
+ yy_find_action:
1584
+ yy_current_state = *--yyg->yy_state_ptr;
1585
+ yyg->yy_lp = yy_accept[yy_current_state];
1586
+ find_rule: /* we branch to this label when backing up */
1587
+ for ( ; ; ) /* until we find what rule we matched */
1588
+ {
1589
+ if ( yyg->yy_lp && yyg->yy_lp < yy_accept[yy_current_state + 1] )
1590
+ {
1591
+ yy_act = yy_acclist[yyg->yy_lp];
1592
+ if ( yy_act & YY_TRAILING_HEAD_MASK ||
1593
+ yyg->yy_looking_for_trail_begin )
1594
+ {
1595
+ if ( yy_act == yyg->yy_looking_for_trail_begin )
1596
+ {
1597
+ yyg->yy_looking_for_trail_begin = 0;
1598
+ yy_act &= ~YY_TRAILING_HEAD_MASK;
1599
+ break;
1600
+ }
1601
+ }
1602
+ else if ( yy_act & YY_TRAILING_MASK )
1603
+ {
1604
+ yyg->yy_looking_for_trail_begin = yy_act & ~YY_TRAILING_MASK;
1605
+ yyg->yy_looking_for_trail_begin |= YY_TRAILING_HEAD_MASK;
1606
+ }
1607
+ else
1608
+ {
1609
+ yyg->yy_full_match = yy_cp;
1610
+ yyg->yy_full_state = yyg->yy_state_ptr;
1611
+ yyg->yy_full_lp = yyg->yy_lp;
1612
+ break;
1613
+ }
1614
+ ++yyg->yy_lp;
1615
+ goto find_rule;
1616
+ }
1617
+ --yy_cp;
1618
+ yy_current_state = *--yyg->yy_state_ptr;
1619
+ yyg->yy_lp = yy_accept[yy_current_state];
1620
+ }
1621
+
1622
+ YY_DO_BEFORE_ACTION;
1623
+
1624
+ do_action: /* This label is used only to access EOF actions. */
1625
+
1626
+ switch ( yy_act )
1627
+ { /* beginning of action switch */
1628
+ case 1:
1629
+ /* rule 1 can match eol */
1630
+ YY_RULE_SETUP
1631
+ { UPD; report(preproc); }
1632
+ YY_BREAK
1633
+ case 2:
1634
+ /* rule 2 can match eol */
1635
+ *yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */
1636
+ yyg->yy_c_buf_p = yy_cp = yy_bp + 5;
1637
+ YY_DO_BEFORE_ACTION; /* set up yytext again */
1638
+ YY_RULE_SETUP
1639
+ { UPD; BEGIN(CLASSHEAD); report(ident); }
1640
+ YY_BREAK
1641
+ case 3:
1642
+ /* rule 3 can match eol */
1643
+ *yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */
1644
+ yyg->yy_c_buf_p = yy_cp = yy_bp + 6;
1645
+ YY_DO_BEFORE_ACTION; /* set up yytext again */
1646
+ YY_RULE_SETUP
1647
+ { UPD; BEGIN(CLASSHEAD); report(ident); }
1648
+ YY_BREAK
1649
+ case 4:
1650
+ /* rule 4 can match eol */
1651
+ *yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */
1652
+ yyg->yy_c_buf_p = yy_cp = yy_bp + 9;
1653
+ YY_DO_BEFORE_ACTION; /* set up yytext again */
1654
+ YY_RULE_SETUP
1655
+ { UPD; BEGIN(CLASSHEAD); report(ident); }
1656
+ YY_BREAK
1657
+ case 5:
1658
+ /* rule 5 can match eol */
1659
+ YY_RULE_SETUP
1660
+ {
1661
+ yyless(ident_length(yytext, yyleng));
1662
+ UPD; BEGIN(CLASSHEAD_TRAILER);
1663
+ report(classdef);
1664
+ }
1665
+ YY_BREAK
1666
+ case 6:
1667
+ /* rule 6 can match eol */
1668
+ YY_RULE_SETUP
1669
+ { UPD; report(classref); }
1670
+ YY_BREAK
1671
+ case 7:
1672
+ YY_RULE_SETUP
1673
+ { UPD; BEGIN(INITIAL); report(punct); }
1674
+ YY_BREAK
1675
+ case 8:
1676
+ YY_RULE_SETUP
1677
+ { UPD; BEGIN(DELEGATE); report(ident); }
1678
+ YY_BREAK
1679
+ case 9:
1680
+ /* rule 9 can match eol */
1681
+ YY_RULE_SETUP
1682
+ {UPD; BEGIN(INITIAL); report(delegate); }
1683
+ YY_BREAK
1684
+ case 10:
1685
+ YY_RULE_SETUP
1686
+ { UPD; report(space); }
1687
+ YY_BREAK
1688
+ case 11:
1689
+ /* rule 11 can match eol */
1690
+ YY_RULE_SETUP
1691
+ { UPD; report(space); }
1692
+ YY_BREAK
1693
+ case 12:
1694
+ YY_RULE_SETUP
1695
+ { UPD; report(comment); }
1696
+ YY_BREAK
1697
+ case 13:
1698
+ /* rule 13 can match eol */
1699
+ YY_RULE_SETUP
1700
+ { UPD; report(comment); }
1701
+ YY_BREAK
1702
+ case 14:
1703
+ /* rule 14 can match eol */
1704
+ YY_RULE_SETUP
1705
+ { UPD; report(string); }
1706
+ YY_BREAK
1707
+ case 15:
1708
+ /* rule 15 can match eol */
1709
+ YY_RULE_SETUP
1710
+ { UPD; report(character); }
1711
+ YY_BREAK
1712
+ case 16:
1713
+ YY_RULE_SETUP
1714
+ { UPD; report(ident); }
1715
+ YY_BREAK
1716
+ case 17:
1717
+ YY_RULE_SETUP
1718
+ { UPD; report(integer); }
1719
+ YY_BREAK
1720
+ case 18:
1721
+ YY_RULE_SETUP
1722
+ { UPD; report(integer); }
1723
+ YY_BREAK
1724
+ case 19:
1725
+ YY_RULE_SETUP
1726
+ { UPD; report(integer); }
1727
+ YY_BREAK
1728
+ case 20:
1729
+ YY_RULE_SETUP
1730
+ { UPD; report(floating); }
1731
+ YY_BREAK
1732
+ case 21:
1733
+ YY_RULE_SETUP
1734
+ { UPD; report(punct); }
1735
+ YY_BREAK
1736
+ case 22:
1737
+ YY_RULE_SETUP
1738
+ YY_FATAL_ERROR( "flex scanner jammed" );
1739
+ YY_BREAK
1740
+ case YY_STATE_EOF(INITIAL):
1741
+ case YY_STATE_EOF(CLASSHEAD):
1742
+ case YY_STATE_EOF(CLASSHEAD_TRAILER):
1743
+ case YY_STATE_EOF(DELEGATE):
1744
+ yyterminate();
1745
+
1746
+ case YY_END_OF_BUFFER:
1747
+ {
1748
+ /* Amount of text matched not including the EOB char. */
1749
+ int yy_amount_of_matched_text = (int) (yy_cp - yyg->yytext_ptr) - 1;
1750
+
1751
+ /* Undo the effects of YY_DO_BEFORE_ACTION. */
1752
+ *yy_cp = yyg->yy_hold_char;
1753
+ YY_RESTORE_YY_MORE_OFFSET
1754
+
1755
+ if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
1756
+ {
1757
+ /* We're scanning a new file or input source. It's
1758
+ * possible that this happened because the user
1759
+ * just pointed yyin at a new source and called
1760
+ * langscan_csharp_lex_lex(). If so, then we have to assure
1761
+ * consistency between YY_CURRENT_BUFFER and our
1762
+ * globals. Here is the right place to do so, because
1763
+ * this is the first action (other than possibly a
1764
+ * back-up) that will match for the new input source.
1765
+ */
1766
+ yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
1767
+ YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
1768
+ YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
1769
+ }
1770
+
1771
+ /* Note that here we test for yy_c_buf_p "<=" to the position
1772
+ * of the first EOB in the buffer, since yy_c_buf_p will
1773
+ * already have been incremented past the NUL character
1774
+ * (since all states make transitions on EOB to the
1775
+ * end-of-buffer state). Contrast this with the test
1776
+ * in input().
1777
+ */
1778
+ if ( yyg->yy_c_buf_p <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] )
1779
+ { /* This was really a NUL. */
1780
+ yy_state_type yy_next_state;
1781
+
1782
+ yyg->yy_c_buf_p = yyg->yytext_ptr + yy_amount_of_matched_text;
1783
+
1784
+ yy_current_state = yy_get_previous_state( yyscanner );
1785
+
1786
+ /* Okay, we're now positioned to make the NUL
1787
+ * transition. We couldn't have
1788
+ * yy_get_previous_state() go ahead and do it
1789
+ * for us because it doesn't know how to deal
1790
+ * with the possibility of jamming (and we don't
1791
+ * want to build jamming into it because then it
1792
+ * will run more slowly).
1793
+ */
1794
+
1795
+ yy_next_state = yy_try_NUL_trans( yy_current_state , yyscanner);
1796
+
1797
+ yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
1798
+
1799
+ if ( yy_next_state )
1800
+ {
1801
+ /* Consume the NUL. */
1802
+ yy_cp = ++yyg->yy_c_buf_p;
1803
+ yy_current_state = yy_next_state;
1804
+ goto yy_match;
1805
+ }
1806
+
1807
+ else
1808
+ {
1809
+ yy_cp = yyg->yy_c_buf_p;
1810
+ goto yy_find_action;
1811
+ }
1812
+ }
1813
+
1814
+ else switch ( yy_get_next_buffer( yyscanner ) )
1815
+ {
1816
+ case EOB_ACT_END_OF_FILE:
1817
+ {
1818
+ yyg->yy_did_buffer_switch_on_eof = 0;
1819
+
1820
+ if ( langscan_csharp_lex_wrap(yyscanner ) )
1821
+ {
1822
+ /* Note: because we've taken care in
1823
+ * yy_get_next_buffer() to have set up
1824
+ * yytext, we can now set up
1825
+ * yy_c_buf_p so that if some total
1826
+ * hoser (like flex itself) wants to
1827
+ * call the scanner after we return the
1828
+ * YY_NULL, it'll still work - another
1829
+ * YY_NULL will get returned.
1830
+ */
1831
+ yyg->yy_c_buf_p = yyg->yytext_ptr + YY_MORE_ADJ;
1832
+
1833
+ yy_act = YY_STATE_EOF(YY_START);
1834
+ goto do_action;
1835
+ }
1836
+
1837
+ else
1838
+ {
1839
+ if ( ! yyg->yy_did_buffer_switch_on_eof )
1840
+ YY_NEW_FILE;
1841
+ }
1842
+ break;
1843
+ }
1844
+
1845
+ case EOB_ACT_CONTINUE_SCAN:
1846
+ yyg->yy_c_buf_p =
1847
+ yyg->yytext_ptr + yy_amount_of_matched_text;
1848
+
1849
+ yy_current_state = yy_get_previous_state( yyscanner );
1850
+
1851
+ yy_cp = yyg->yy_c_buf_p;
1852
+ yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
1853
+ goto yy_match;
1854
+
1855
+ case EOB_ACT_LAST_MATCH:
1856
+ yyg->yy_c_buf_p =
1857
+ &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars];
1858
+
1859
+ yy_current_state = yy_get_previous_state( yyscanner );
1860
+
1861
+ yy_cp = yyg->yy_c_buf_p;
1862
+ yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
1863
+ goto yy_find_action;
1864
+ }
1865
+ break;
1866
+ }
1867
+
1868
+ default:
1869
+ YY_FATAL_ERROR(
1870
+ "fatal flex scanner internal error--no action found" );
1871
+ } /* end of action switch */
1872
+ } /* end of scanning one token */
1873
+ } /* end of langscan_csharp_lex_lex */
1874
+
1875
+ /* yy_get_next_buffer - try to read in a new buffer
1876
+ *
1877
+ * Returns a code representing an action:
1878
+ * EOB_ACT_LAST_MATCH -
1879
+ * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
1880
+ * EOB_ACT_END_OF_FILE - end of file
1881
+ */
1882
+ static int yy_get_next_buffer (yyscan_t yyscanner)
1883
+ {
1884
+ struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1885
+ register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
1886
+ register char *source = yyg->yytext_ptr;
1887
+ register int number_to_move, i;
1888
+ int ret_val;
1889
+
1890
+ if ( yyg->yy_c_buf_p > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] )
1891
+ YY_FATAL_ERROR(
1892
+ "fatal flex scanner internal error--end of buffer missed" );
1893
+
1894
+ if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
1895
+ { /* Don't try to fill the buffer, so this is an EOF. */
1896
+ if ( yyg->yy_c_buf_p - yyg->yytext_ptr - YY_MORE_ADJ == 1 )
1897
+ {
1898
+ /* We matched a single character, the EOB, so
1899
+ * treat this as a final EOF.
1900
+ */
1901
+ return EOB_ACT_END_OF_FILE;
1902
+ }
1903
+
1904
+ else
1905
+ {
1906
+ /* We matched some text prior to the EOB, first
1907
+ * process it.
1908
+ */
1909
+ return EOB_ACT_LAST_MATCH;
1910
+ }
1911
+ }
1912
+
1913
+ /* Try to read more data. */
1914
+
1915
+ /* First move last chars to start of buffer. */
1916
+ number_to_move = (int) (yyg->yy_c_buf_p - yyg->yytext_ptr) - 1;
1917
+
1918
+ for ( i = 0; i < number_to_move; ++i )
1919
+ *(dest++) = *(source++);
1920
+
1921
+ if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
1922
+ /* don't do the read, it's not guaranteed to return an EOF,
1923
+ * just force an EOF
1924
+ */
1925
+ YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars = 0;
1926
+
1927
+ else
1928
+ {
1929
+ int num_to_read =
1930
+ YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
1931
+
1932
+ while ( num_to_read <= 0 )
1933
+ { /* Not enough room in the buffer - grow it. */
1934
+
1935
+ YY_FATAL_ERROR(
1936
+ "input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
1937
+
1938
+ }
1939
+
1940
+ if ( num_to_read > YY_READ_BUF_SIZE )
1941
+ num_to_read = YY_READ_BUF_SIZE;
1942
+
1943
+ /* Read in more data. */
1944
+ YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
1945
+ yyg->yy_n_chars, (size_t) num_to_read );
1946
+
1947
+ YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
1948
+ }
1949
+
1950
+ if ( yyg->yy_n_chars == 0 )
1951
+ {
1952
+ if ( number_to_move == YY_MORE_ADJ )
1953
+ {
1954
+ ret_val = EOB_ACT_END_OF_FILE;
1955
+ langscan_csharp_lex_restart(yyin ,yyscanner);
1956
+ }
1957
+
1958
+ else
1959
+ {
1960
+ ret_val = EOB_ACT_LAST_MATCH;
1961
+ YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
1962
+ YY_BUFFER_EOF_PENDING;
1963
+ }
1964
+ }
1965
+
1966
+ else
1967
+ ret_val = EOB_ACT_CONTINUE_SCAN;
1968
+
1969
+ if ((yy_size_t) (yyg->yy_n_chars + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
1970
+ /* Extend the array by 50%, plus the number we really need. */
1971
+ yy_size_t new_size = yyg->yy_n_chars + number_to_move + (yyg->yy_n_chars >> 1);
1972
+ YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) langscan_csharp_lex_realloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size ,yyscanner );
1973
+ if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
1974
+ YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
1975
+ }
1976
+
1977
+ yyg->yy_n_chars += number_to_move;
1978
+ YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] = YY_END_OF_BUFFER_CHAR;
1979
+ YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
1980
+
1981
+ yyg->yytext_ptr = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
1982
+
1983
+ return ret_val;
1984
+ }
1985
+
1986
+ /* yy_get_previous_state - get the state just before the EOB char was reached */
1987
+
1988
+ static yy_state_type yy_get_previous_state (yyscan_t yyscanner)
1989
+ {
1990
+ register yy_state_type yy_current_state;
1991
+ register char *yy_cp;
1992
+ struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1993
+
1994
+ yy_current_state = yyg->yy_start;
1995
+ yy_current_state += YY_AT_BOL();
1996
+
1997
+ yyg->yy_state_ptr = yyg->yy_state_buf;
1998
+ *yyg->yy_state_ptr++ = yy_current_state;
1999
+
2000
+ for ( yy_cp = yyg->yytext_ptr + YY_MORE_ADJ; yy_cp < yyg->yy_c_buf_p; ++yy_cp )
2001
+ {
2002
+ register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
2003
+ while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2004
+ {
2005
+ yy_current_state = (int) yy_def[yy_current_state];
2006
+ if ( yy_current_state >= 424 )
2007
+ yy_c = yy_meta[(unsigned int) yy_c];
2008
+ }
2009
+ yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
2010
+ *yyg->yy_state_ptr++ = yy_current_state;
2011
+ }
2012
+
2013
+ return yy_current_state;
2014
+ }
2015
+
2016
+ /* yy_try_NUL_trans - try to make a transition on the NUL character
2017
+ *
2018
+ * synopsis
2019
+ * next_state = yy_try_NUL_trans( current_state );
2020
+ */
2021
+ static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state , yyscan_t yyscanner)
2022
+ {
2023
+ register int yy_is_jam;
2024
+ struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; /* This var may be unused depending upon options. */
2025
+
2026
+ register YY_CHAR yy_c = 1;
2027
+ while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2028
+ {
2029
+ yy_current_state = (int) yy_def[yy_current_state];
2030
+ if ( yy_current_state >= 424 )
2031
+ yy_c = yy_meta[(unsigned int) yy_c];
2032
+ }
2033
+ yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
2034
+ yy_is_jam = (yy_current_state == 423);
2035
+ if ( ! yy_is_jam )
2036
+ *yyg->yy_state_ptr++ = yy_current_state;
2037
+
2038
+ return yy_is_jam ? 0 : yy_current_state;
2039
+ }
2040
+
2041
+ static void yyunput (int c, register char * yy_bp , yyscan_t yyscanner)
2042
+ {
2043
+ register char *yy_cp;
2044
+ struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2045
+
2046
+ yy_cp = yyg->yy_c_buf_p;
2047
+
2048
+ /* undo effects of setting up yytext */
2049
+ *yy_cp = yyg->yy_hold_char;
2050
+
2051
+ if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
2052
+ { /* need to shift things up to make room */
2053
+ /* +2 for EOB chars. */
2054
+ register int number_to_move = yyg->yy_n_chars + 2;
2055
+ register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
2056
+ YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];
2057
+ register char *source =
2058
+ &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move];
2059
+
2060
+ while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
2061
+ *--dest = *--source;
2062
+
2063
+ yy_cp += (int) (dest - source);
2064
+ yy_bp += (int) (dest - source);
2065
+ YY_CURRENT_BUFFER_LVALUE->yy_n_chars =
2066
+ yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_buf_size;
2067
+
2068
+ if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
2069
+ YY_FATAL_ERROR( "flex scanner push-back overflow" );
2070
+ }
2071
+
2072
+ *--yy_cp = (char) c;
2073
+
2074
+ yyg->yytext_ptr = yy_bp;
2075
+ yyg->yy_hold_char = *yy_cp;
2076
+ yyg->yy_c_buf_p = yy_cp;
2077
+ }
2078
+
2079
+ #ifndef YY_NO_INPUT
2080
+ #ifdef __cplusplus
2081
+ static int yyinput (yyscan_t yyscanner)
2082
+ #else
2083
+ static int input (yyscan_t yyscanner)
2084
+ #endif
2085
+
2086
+ {
2087
+ int c;
2088
+ struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2089
+
2090
+ *yyg->yy_c_buf_p = yyg->yy_hold_char;
2091
+
2092
+ if ( *yyg->yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
2093
+ {
2094
+ /* yy_c_buf_p now points to the character we want to return.
2095
+ * If this occurs *before* the EOB characters, then it's a
2096
+ * valid NUL; if not, then we've hit the end of the buffer.
2097
+ */
2098
+ if ( yyg->yy_c_buf_p < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] )
2099
+ /* This was really a NUL. */
2100
+ *yyg->yy_c_buf_p = '\0';
2101
+
2102
+ else
2103
+ { /* need more input */
2104
+ int offset = yyg->yy_c_buf_p - yyg->yytext_ptr;
2105
+ ++yyg->yy_c_buf_p;
2106
+
2107
+ switch ( yy_get_next_buffer( yyscanner ) )
2108
+ {
2109
+ case EOB_ACT_LAST_MATCH:
2110
+ /* This happens because yy_g_n_b()
2111
+ * sees that we've accumulated a
2112
+ * token and flags that we need to
2113
+ * try matching the token before
2114
+ * proceeding. But for input(),
2115
+ * there's no matching to consider.
2116
+ * So convert the EOB_ACT_LAST_MATCH
2117
+ * to EOB_ACT_END_OF_FILE.
2118
+ */
2119
+
2120
+ /* Reset buffer status. */
2121
+ langscan_csharp_lex_restart(yyin ,yyscanner);
2122
+
2123
+ /*FALLTHROUGH*/
2124
+
2125
+ case EOB_ACT_END_OF_FILE:
2126
+ {
2127
+ if ( langscan_csharp_lex_wrap(yyscanner ) )
2128
+ return EOF;
2129
+
2130
+ if ( ! yyg->yy_did_buffer_switch_on_eof )
2131
+ YY_NEW_FILE;
2132
+ #ifdef __cplusplus
2133
+ return yyinput(yyscanner);
2134
+ #else
2135
+ return input(yyscanner);
2136
+ #endif
2137
+ }
2138
+
2139
+ case EOB_ACT_CONTINUE_SCAN:
2140
+ yyg->yy_c_buf_p = yyg->yytext_ptr + offset;
2141
+ break;
2142
+ }
2143
+ }
2144
+ }
2145
+
2146
+ c = *(unsigned char *) yyg->yy_c_buf_p; /* cast for 8-bit char's */
2147
+ *yyg->yy_c_buf_p = '\0'; /* preserve yytext */
2148
+ yyg->yy_hold_char = *++yyg->yy_c_buf_p;
2149
+
2150
+ YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (c == '\n');
2151
+
2152
+ return c;
2153
+ }
2154
+ #endif /* ifndef YY_NO_INPUT */
2155
+
2156
+ /** Immediately switch to a different input stream.
2157
+ * @param input_file A readable stream.
2158
+ * @param yyscanner The scanner object.
2159
+ * @note This function does not reset the start condition to @c INITIAL .
2160
+ */
2161
+ void langscan_csharp_lex_restart (FILE * input_file , yyscan_t yyscanner)
2162
+ {
2163
+ struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2164
+
2165
+ if ( ! YY_CURRENT_BUFFER ){
2166
+ langscan_csharp_lex_ensure_buffer_stack (yyscanner);
2167
+ YY_CURRENT_BUFFER_LVALUE =
2168
+ langscan_csharp_lex__create_buffer(yyin,YY_BUF_SIZE ,yyscanner);
2169
+ }
2170
+
2171
+ langscan_csharp_lex__init_buffer(YY_CURRENT_BUFFER,input_file ,yyscanner);
2172
+ langscan_csharp_lex__load_buffer_state(yyscanner );
2173
+ }
2174
+
2175
+ /** Switch to a different input buffer.
2176
+ * @param new_buffer The new input buffer.
2177
+ * @param yyscanner The scanner object.
2178
+ */
2179
+ void langscan_csharp_lex__switch_to_buffer (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner)
2180
+ {
2181
+ struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2182
+
2183
+ /* TODO. We should be able to replace this entire function body
2184
+ * with
2185
+ * langscan_csharp_lex_pop_buffer_state();
2186
+ * langscan_csharp_lex_push_buffer_state(new_buffer);
2187
+ */
2188
+ langscan_csharp_lex_ensure_buffer_stack (yyscanner);
2189
+ if ( YY_CURRENT_BUFFER == new_buffer )
2190
+ return;
2191
+
2192
+ if ( YY_CURRENT_BUFFER )
2193
+ {
2194
+ /* Flush out information for old buffer. */
2195
+ *yyg->yy_c_buf_p = yyg->yy_hold_char;
2196
+ YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p;
2197
+ YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
2198
+ }
2199
+
2200
+ YY_CURRENT_BUFFER_LVALUE = new_buffer;
2201
+ langscan_csharp_lex__load_buffer_state(yyscanner );
2202
+
2203
+ /* We don't actually know whether we did this switch during
2204
+ * EOF (langscan_csharp_lex_wrap()) processing, but the only time this flag
2205
+ * is looked at is after langscan_csharp_lex_wrap() is called, so it's safe
2206
+ * to go ahead and always set it.
2207
+ */
2208
+ yyg->yy_did_buffer_switch_on_eof = 1;
2209
+ }
2210
+
2211
+ static void langscan_csharp_lex__load_buffer_state (yyscan_t yyscanner)
2212
+ {
2213
+ struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2214
+ yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
2215
+ yyg->yytext_ptr = yyg->yy_c_buf_p = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
2216
+ yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
2217
+ yyg->yy_hold_char = *yyg->yy_c_buf_p;
2218
+ }
2219
+
2220
+ /** Allocate and initialize an input buffer state.
2221
+ * @param file A readable stream.
2222
+ * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
2223
+ * @param yyscanner The scanner object.
2224
+ * @return the allocated buffer state.
2225
+ */
2226
+ YY_BUFFER_STATE langscan_csharp_lex__create_buffer (FILE * file, int size , yyscan_t yyscanner)
2227
+ {
2228
+ YY_BUFFER_STATE b;
2229
+
2230
+ b = (YY_BUFFER_STATE) langscan_csharp_lex_alloc(sizeof( struct yy_buffer_state ) ,yyscanner );
2231
+ if ( ! b )
2232
+ YY_FATAL_ERROR( "out of dynamic memory in langscan_csharp_lex__create_buffer()" );
2233
+
2234
+ b->yy_buf_size = size;
2235
+
2236
+ /* yy_ch_buf has to be 2 characters longer than the size given because
2237
+ * we need to put in 2 end-of-buffer characters.
2238
+ */
2239
+ b->yy_ch_buf = (char *) langscan_csharp_lex_alloc(b->yy_buf_size + 2 ,yyscanner );
2240
+ if ( ! b->yy_ch_buf )
2241
+ YY_FATAL_ERROR( "out of dynamic memory in langscan_csharp_lex__create_buffer()" );
2242
+
2243
+ b->yy_is_our_buffer = 1;
2244
+
2245
+ langscan_csharp_lex__init_buffer(b,file ,yyscanner);
2246
+
2247
+ return b;
2248
+ }
2249
+
2250
+ /** Destroy the buffer.
2251
+ * @param b a buffer created with langscan_csharp_lex__create_buffer()
2252
+ * @param yyscanner The scanner object.
2253
+ */
2254
+ void langscan_csharp_lex__delete_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner)
2255
+ {
2256
+ struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2257
+
2258
+ if ( ! b )
2259
+ return;
2260
+
2261
+ if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
2262
+ YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
2263
+
2264
+ if ( b->yy_is_our_buffer )
2265
+ langscan_csharp_lex_free((void *) b->yy_ch_buf ,yyscanner );
2266
+
2267
+ langscan_csharp_lex_free((void *) b ,yyscanner );
2268
+ }
2269
+
2270
+ #ifndef __cplusplus
2271
+ extern int isatty (int );
2272
+ #endif /* __cplusplus */
2273
+
2274
+ /* Initializes or reinitializes a buffer.
2275
+ * This function is sometimes called more than once on the same buffer,
2276
+ * such as during a langscan_csharp_lex_restart() or at EOF.
2277
+ */
2278
+ static void langscan_csharp_lex__init_buffer (YY_BUFFER_STATE b, FILE * file , yyscan_t yyscanner)
2279
+
2280
+ {
2281
+ int oerrno = errno;
2282
+ struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2283
+
2284
+ langscan_csharp_lex__flush_buffer(b ,yyscanner);
2285
+
2286
+ b->yy_input_file = file;
2287
+ b->yy_fill_buffer = 1;
2288
+
2289
+ /* If b is the current buffer, then langscan_csharp_lex__init_buffer was _probably_
2290
+ * called from langscan_csharp_lex_restart() or through yy_get_next_buffer.
2291
+ * In that case, we don't want to reset the lineno or column.
2292
+ */
2293
+ if (b != YY_CURRENT_BUFFER){
2294
+ b->yy_bs_lineno = 1;
2295
+ b->yy_bs_column = 0;
2296
+ }
2297
+
2298
+ b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
2299
+
2300
+ errno = oerrno;
2301
+ }
2302
+
2303
+ /** Discard all buffered characters. On the next scan, YY_INPUT will be called.
2304
+ * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
2305
+ * @param yyscanner The scanner object.
2306
+ */
2307
+ void langscan_csharp_lex__flush_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner)
2308
+ {
2309
+ struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2310
+ if ( ! b )
2311
+ return;
2312
+
2313
+ b->yy_n_chars = 0;
2314
+
2315
+ /* We always need two end-of-buffer characters. The first causes
2316
+ * a transition to the end-of-buffer state. The second causes
2317
+ * a jam in that state.
2318
+ */
2319
+ b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
2320
+ b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
2321
+
2322
+ b->yy_buf_pos = &b->yy_ch_buf[0];
2323
+
2324
+ b->yy_at_bol = 1;
2325
+ b->yy_buffer_status = YY_BUFFER_NEW;
2326
+
2327
+ if ( b == YY_CURRENT_BUFFER )
2328
+ langscan_csharp_lex__load_buffer_state(yyscanner );
2329
+ }
2330
+
2331
+ /** Pushes the new state onto the stack. The new state becomes
2332
+ * the current state. This function will allocate the stack
2333
+ * if necessary.
2334
+ * @param new_buffer The new state.
2335
+ * @param yyscanner The scanner object.
2336
+ */
2337
+ void langscan_csharp_lex_push_buffer_state (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner)
2338
+ {
2339
+ struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2340
+ if (new_buffer == NULL)
2341
+ return;
2342
+
2343
+ langscan_csharp_lex_ensure_buffer_stack(yyscanner);
2344
+
2345
+ /* This block is copied from langscan_csharp_lex__switch_to_buffer. */
2346
+ if ( YY_CURRENT_BUFFER )
2347
+ {
2348
+ /* Flush out information for old buffer. */
2349
+ *yyg->yy_c_buf_p = yyg->yy_hold_char;
2350
+ YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p;
2351
+ YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
2352
+ }
2353
+
2354
+ /* Only push if top exists. Otherwise, replace top. */
2355
+ if (YY_CURRENT_BUFFER)
2356
+ yyg->yy_buffer_stack_top++;
2357
+ YY_CURRENT_BUFFER_LVALUE = new_buffer;
2358
+
2359
+ /* copied from langscan_csharp_lex__switch_to_buffer. */
2360
+ langscan_csharp_lex__load_buffer_state(yyscanner );
2361
+ yyg->yy_did_buffer_switch_on_eof = 1;
2362
+ }
2363
+
2364
+ /** Removes and deletes the top of the stack, if present.
2365
+ * The next element becomes the new top.
2366
+ * @param yyscanner The scanner object.
2367
+ */
2368
+ void langscan_csharp_lex_pop_buffer_state (yyscan_t yyscanner)
2369
+ {
2370
+ struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2371
+ if (!YY_CURRENT_BUFFER)
2372
+ return;
2373
+
2374
+ langscan_csharp_lex__delete_buffer(YY_CURRENT_BUFFER ,yyscanner);
2375
+ YY_CURRENT_BUFFER_LVALUE = NULL;
2376
+ if (yyg->yy_buffer_stack_top > 0)
2377
+ --yyg->yy_buffer_stack_top;
2378
+
2379
+ if (YY_CURRENT_BUFFER) {
2380
+ langscan_csharp_lex__load_buffer_state(yyscanner );
2381
+ yyg->yy_did_buffer_switch_on_eof = 1;
2382
+ }
2383
+ }
2384
+
2385
+ /* Allocates the stack if it does not exist.
2386
+ * Guarantees space for at least one push.
2387
+ */
2388
+ static void langscan_csharp_lex_ensure_buffer_stack (yyscan_t yyscanner)
2389
+ {
2390
+ int num_to_alloc;
2391
+ struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2392
+
2393
+ if (!yyg->yy_buffer_stack) {
2394
+
2395
+ /* First allocation is just for 2 elements, since we don't know if this
2396
+ * scanner will even need a stack. We use 2 instead of 1 to avoid an
2397
+ * immediate realloc on the next call.
2398
+ */
2399
+ num_to_alloc = 1;
2400
+ yyg->yy_buffer_stack = (struct yy_buffer_state**)langscan_csharp_lex_alloc
2401
+ (num_to_alloc * sizeof(struct yy_buffer_state*)
2402
+ , yyscanner);
2403
+ if ( ! yyg->yy_buffer_stack )
2404
+ YY_FATAL_ERROR( "out of dynamic memory in langscan_csharp_lex_ensure_buffer_stack()" );
2405
+
2406
+ memset(yyg->yy_buffer_stack, 0, num_to_alloc * sizeof(struct yy_buffer_state*));
2407
+
2408
+ yyg->yy_buffer_stack_max = num_to_alloc;
2409
+ yyg->yy_buffer_stack_top = 0;
2410
+ return;
2411
+ }
2412
+
2413
+ if (yyg->yy_buffer_stack_top >= (yyg->yy_buffer_stack_max) - 1){
2414
+
2415
+ /* Increase the buffer to prepare for a possible push. */
2416
+ int grow_size = 8 /* arbitrary grow size */;
2417
+
2418
+ num_to_alloc = yyg->yy_buffer_stack_max + grow_size;
2419
+ yyg->yy_buffer_stack = (struct yy_buffer_state**)langscan_csharp_lex_realloc
2420
+ (yyg->yy_buffer_stack,
2421
+ num_to_alloc * sizeof(struct yy_buffer_state*)
2422
+ , yyscanner);
2423
+ if ( ! yyg->yy_buffer_stack )
2424
+ YY_FATAL_ERROR( "out of dynamic memory in langscan_csharp_lex_ensure_buffer_stack()" );
2425
+
2426
+ /* zero only the new slots.*/
2427
+ memset(yyg->yy_buffer_stack + yyg->yy_buffer_stack_max, 0, grow_size * sizeof(struct yy_buffer_state*));
2428
+ yyg->yy_buffer_stack_max = num_to_alloc;
2429
+ }
2430
+ }
2431
+
2432
+ /** Setup the input buffer state to scan directly from a user-specified character buffer.
2433
+ * @param base the character buffer
2434
+ * @param size the size in bytes of the character buffer
2435
+ * @param yyscanner The scanner object.
2436
+ * @return the newly allocated buffer state object.
2437
+ */
2438
+ YY_BUFFER_STATE langscan_csharp_lex__scan_buffer (char * base, yy_size_t size , yyscan_t yyscanner)
2439
+ {
2440
+ YY_BUFFER_STATE b;
2441
+
2442
+ if ( size < 2 ||
2443
+ base[size-2] != YY_END_OF_BUFFER_CHAR ||
2444
+ base[size-1] != YY_END_OF_BUFFER_CHAR )
2445
+ /* They forgot to leave room for the EOB's. */
2446
+ return 0;
2447
+
2448
+ b = (YY_BUFFER_STATE) langscan_csharp_lex_alloc(sizeof( struct yy_buffer_state ) ,yyscanner );
2449
+ if ( ! b )
2450
+ YY_FATAL_ERROR( "out of dynamic memory in langscan_csharp_lex__scan_buffer()" );
2451
+
2452
+ b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
2453
+ b->yy_buf_pos = b->yy_ch_buf = base;
2454
+ b->yy_is_our_buffer = 0;
2455
+ b->yy_input_file = 0;
2456
+ b->yy_n_chars = b->yy_buf_size;
2457
+ b->yy_is_interactive = 0;
2458
+ b->yy_at_bol = 1;
2459
+ b->yy_fill_buffer = 0;
2460
+ b->yy_buffer_status = YY_BUFFER_NEW;
2461
+
2462
+ langscan_csharp_lex__switch_to_buffer(b ,yyscanner );
2463
+
2464
+ return b;
2465
+ }
2466
+
2467
+ /** Setup the input buffer state to scan a string. The next call to langscan_csharp_lex_lex() will
2468
+ * scan from a @e copy of @a str.
2469
+ * @param yystr a NUL-terminated string to scan
2470
+ * @param yyscanner The scanner object.
2471
+ * @return the newly allocated buffer state object.
2472
+ * @note If you want to scan bytes that may contain NUL values, then use
2473
+ * langscan_csharp_lex__scan_bytes() instead.
2474
+ */
2475
+ YY_BUFFER_STATE langscan_csharp_lex__scan_string (yyconst char * yystr , yyscan_t yyscanner)
2476
+ {
2477
+
2478
+ return langscan_csharp_lex__scan_bytes(yystr,strlen(yystr) ,yyscanner);
2479
+ }
2480
+
2481
+ /** Setup the input buffer state to scan the given bytes. The next call to langscan_csharp_lex_lex() will
2482
+ * scan from a @e copy of @a bytes.
2483
+ * @param yybytes the byte buffer to scan
2484
+ * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
2485
+ * @param yyscanner The scanner object.
2486
+ * @return the newly allocated buffer state object.
2487
+ */
2488
+ YY_BUFFER_STATE langscan_csharp_lex__scan_bytes (yyconst char * yybytes, int _yybytes_len , yyscan_t yyscanner)
2489
+ {
2490
+ YY_BUFFER_STATE b;
2491
+ char *buf;
2492
+ yy_size_t n;
2493
+ int i;
2494
+
2495
+ /* Get memory for full buffer, including space for trailing EOB's. */
2496
+ n = _yybytes_len + 2;
2497
+ buf = (char *) langscan_csharp_lex_alloc(n ,yyscanner );
2498
+ if ( ! buf )
2499
+ YY_FATAL_ERROR( "out of dynamic memory in langscan_csharp_lex__scan_bytes()" );
2500
+
2501
+ for ( i = 0; i < _yybytes_len; ++i )
2502
+ buf[i] = yybytes[i];
2503
+
2504
+ buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
2505
+
2506
+ b = langscan_csharp_lex__scan_buffer(buf,n ,yyscanner);
2507
+ if ( ! b )
2508
+ YY_FATAL_ERROR( "bad buffer in langscan_csharp_lex__scan_bytes()" );
2509
+
2510
+ /* It's okay to grow etc. this buffer, and we should throw it
2511
+ * away when we're done.
2512
+ */
2513
+ b->yy_is_our_buffer = 1;
2514
+
2515
+ return b;
2516
+ }
2517
+
2518
+ #ifndef YY_EXIT_FAILURE
2519
+ #define YY_EXIT_FAILURE 2
2520
+ #endif
2521
+
2522
+ static void yy_fatal_error (yyconst char* msg , yyscan_t yyscanner)
2523
+ {
2524
+ (void) fprintf( stderr, "%s\n", msg );
2525
+ exit( YY_EXIT_FAILURE );
2526
+ }
2527
+
2528
+ /* Redefine yyless() so it works in section 3 code. */
2529
+
2530
+ #undef yyless
2531
+ #define yyless(n) \
2532
+ do \
2533
+ { \
2534
+ /* Undo effects of setting up yytext. */ \
2535
+ int yyless_macro_arg = (n); \
2536
+ YY_LESS_LINENO(yyless_macro_arg);\
2537
+ yytext[yyleng] = yyg->yy_hold_char; \
2538
+ yyg->yy_c_buf_p = yytext + yyless_macro_arg; \
2539
+ yyg->yy_hold_char = *yyg->yy_c_buf_p; \
2540
+ *yyg->yy_c_buf_p = '\0'; \
2541
+ yyleng = yyless_macro_arg; \
2542
+ } \
2543
+ while ( 0 )
2544
+
2545
+ /* Accessor methods (get/set functions) to struct members. */
2546
+
2547
+ /** Get the user-defined data for this scanner.
2548
+ * @param yyscanner The scanner object.
2549
+ */
2550
+ YY_EXTRA_TYPE langscan_csharp_lex_get_extra (yyscan_t yyscanner)
2551
+ {
2552
+ struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2553
+ return yyextra;
2554
+ }
2555
+
2556
+ /** Get the current line number.
2557
+ * @param yyscanner The scanner object.
2558
+ */
2559
+ int langscan_csharp_lex_get_lineno (yyscan_t yyscanner)
2560
+ {
2561
+ struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2562
+
2563
+ if (! YY_CURRENT_BUFFER)
2564
+ return 0;
2565
+
2566
+ return yylineno;
2567
+ }
2568
+
2569
+ /** Get the current column number.
2570
+ * @param yyscanner The scanner object.
2571
+ */
2572
+ int langscan_csharp_lex_get_column (yyscan_t yyscanner)
2573
+ {
2574
+ struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2575
+
2576
+ if (! YY_CURRENT_BUFFER)
2577
+ return 0;
2578
+
2579
+ return yycolumn;
2580
+ }
2581
+
2582
+ /** Get the input stream.
2583
+ * @param yyscanner The scanner object.
2584
+ */
2585
+ FILE *langscan_csharp_lex_get_in (yyscan_t yyscanner)
2586
+ {
2587
+ struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2588
+ return yyin;
2589
+ }
2590
+
2591
+ /** Get the output stream.
2592
+ * @param yyscanner The scanner object.
2593
+ */
2594
+ FILE *langscan_csharp_lex_get_out (yyscan_t yyscanner)
2595
+ {
2596
+ struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2597
+ return yyout;
2598
+ }
2599
+
2600
+ /** Get the length of the current token.
2601
+ * @param yyscanner The scanner object.
2602
+ */
2603
+ int langscan_csharp_lex_get_leng (yyscan_t yyscanner)
2604
+ {
2605
+ struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2606
+ return yyleng;
2607
+ }
2608
+
2609
+ /** Get the current token.
2610
+ * @param yyscanner The scanner object.
2611
+ */
2612
+
2613
+ char *langscan_csharp_lex_get_text (yyscan_t yyscanner)
2614
+ {
2615
+ struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2616
+ return yytext;
2617
+ }
2618
+
2619
+ /** Set the user-defined data. This data is never touched by the scanner.
2620
+ * @param user_defined The data to be associated with this scanner.
2621
+ * @param yyscanner The scanner object.
2622
+ */
2623
+ void langscan_csharp_lex_set_extra (YY_EXTRA_TYPE user_defined , yyscan_t yyscanner)
2624
+ {
2625
+ struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2626
+ yyextra = user_defined ;
2627
+ }
2628
+
2629
+ /** Set the current line number.
2630
+ * @param line_number
2631
+ * @param yyscanner The scanner object.
2632
+ */
2633
+ void langscan_csharp_lex_set_lineno (int line_number , yyscan_t yyscanner)
2634
+ {
2635
+ struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2636
+
2637
+ /* lineno is only valid if an input buffer exists. */
2638
+ if (! YY_CURRENT_BUFFER )
2639
+ yy_fatal_error( "langscan_csharp_lex_set_lineno called with no buffer" , yyscanner);
2640
+
2641
+ yylineno = line_number;
2642
+ }
2643
+
2644
+ /** Set the current column.
2645
+ * @param line_number
2646
+ * @param yyscanner The scanner object.
2647
+ */
2648
+ void langscan_csharp_lex_set_column (int column_no , yyscan_t yyscanner)
2649
+ {
2650
+ struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2651
+
2652
+ /* column is only valid if an input buffer exists. */
2653
+ if (! YY_CURRENT_BUFFER )
2654
+ yy_fatal_error( "langscan_csharp_lex_set_column called with no buffer" , yyscanner);
2655
+
2656
+ yycolumn = column_no;
2657
+ }
2658
+
2659
+ /** Set the input stream. This does not discard the current
2660
+ * input buffer.
2661
+ * @param in_str A readable stream.
2662
+ * @param yyscanner The scanner object.
2663
+ * @see langscan_csharp_lex__switch_to_buffer
2664
+ */
2665
+ void langscan_csharp_lex_set_in (FILE * in_str , yyscan_t yyscanner)
2666
+ {
2667
+ struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2668
+ yyin = in_str ;
2669
+ }
2670
+
2671
+ void langscan_csharp_lex_set_out (FILE * out_str , yyscan_t yyscanner)
2672
+ {
2673
+ struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2674
+ yyout = out_str ;
2675
+ }
2676
+
2677
+ int langscan_csharp_lex_get_debug (yyscan_t yyscanner)
2678
+ {
2679
+ struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2680
+ return yy_flex_debug;
2681
+ }
2682
+
2683
+ void langscan_csharp_lex_set_debug (int bdebug , yyscan_t yyscanner)
2684
+ {
2685
+ struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2686
+ yy_flex_debug = bdebug ;
2687
+ }
2688
+
2689
+ /* Accessor methods for yylval and yylloc */
2690
+
2691
+ /* User-visible API */
2692
+
2693
+ /* langscan_csharp_lex_lex_init is special because it creates the scanner itself, so it is
2694
+ * the ONLY reentrant function that doesn't take the scanner as the last argument.
2695
+ * That's why we explicitly handle the declaration, instead of using our macros.
2696
+ */
2697
+
2698
+ int langscan_csharp_lex_lex_init(yyscan_t* ptr_yy_globals)
2699
+
2700
+ {
2701
+ if (ptr_yy_globals == NULL){
2702
+ errno = EINVAL;
2703
+ return 1;
2704
+ }
2705
+
2706
+ *ptr_yy_globals = (yyscan_t) langscan_csharp_lex_alloc ( sizeof( struct yyguts_t ), NULL );
2707
+
2708
+ if (*ptr_yy_globals == NULL){
2709
+ errno = ENOMEM;
2710
+ return 1;
2711
+ }
2712
+
2713
+ /* By setting to 0xAA, we expose bugs in yy_init_globals. Leave at 0x00 for releases. */
2714
+ memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t));
2715
+
2716
+ return yy_init_globals ( *ptr_yy_globals );
2717
+ }
2718
+
2719
+ /* langscan_csharp_lex_lex_init_extra has the same functionality as langscan_csharp_lex_lex_init, but follows the
2720
+ * convention of taking the scanner as the last argument. Note however, that
2721
+ * this is a *pointer* to a scanner, as it will be allocated by this call (and
2722
+ * is the reason, too, why this function also must handle its own declaration).
2723
+ * The user defined value in the first argument will be available to langscan_csharp_lex_alloc in
2724
+ * the yyextra field.
2725
+ */
2726
+
2727
+ int langscan_csharp_lex_lex_init_extra(YY_EXTRA_TYPE yy_user_defined,yyscan_t* ptr_yy_globals )
2728
+
2729
+ {
2730
+ struct yyguts_t dummy_yyguts;
2731
+
2732
+ langscan_csharp_lex_set_extra (yy_user_defined, &dummy_yyguts);
2733
+
2734
+ if (ptr_yy_globals == NULL){
2735
+ errno = EINVAL;
2736
+ return 1;
2737
+ }
2738
+
2739
+ *ptr_yy_globals = (yyscan_t) langscan_csharp_lex_alloc ( sizeof( struct yyguts_t ), &dummy_yyguts );
2740
+
2741
+ if (*ptr_yy_globals == NULL){
2742
+ errno = ENOMEM;
2743
+ return 1;
2744
+ }
2745
+
2746
+ /* By setting to 0xAA, we expose bugs in
2747
+ yy_init_globals. Leave at 0x00 for releases. */
2748
+ memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t));
2749
+
2750
+ langscan_csharp_lex_set_extra (yy_user_defined, *ptr_yy_globals);
2751
+
2752
+ return yy_init_globals ( *ptr_yy_globals );
2753
+ }
2754
+
2755
+ static int yy_init_globals (yyscan_t yyscanner)
2756
+ {
2757
+ struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2758
+ /* Initialization is the same as for the non-reentrant scanner.
2759
+ * This function is called from langscan_csharp_lex_lex_destroy(), so don't allocate here.
2760
+ */
2761
+
2762
+ yyg->yy_buffer_stack = 0;
2763
+ yyg->yy_buffer_stack_top = 0;
2764
+ yyg->yy_buffer_stack_max = 0;
2765
+ yyg->yy_c_buf_p = (char *) 0;
2766
+ yyg->yy_init = 0;
2767
+ yyg->yy_start = 0;
2768
+
2769
+ yyg->yy_start_stack_ptr = 0;
2770
+ yyg->yy_start_stack_depth = 0;
2771
+ yyg->yy_start_stack = NULL;
2772
+
2773
+ yyg->yy_state_buf = 0;
2774
+ yyg->yy_state_ptr = 0;
2775
+ yyg->yy_full_match = 0;
2776
+ yyg->yy_lp = 0;
2777
+
2778
+ /* Defined in main.c */
2779
+ #ifdef YY_STDINIT
2780
+ yyin = stdin;
2781
+ yyout = stdout;
2782
+ #else
2783
+ yyin = (FILE *) 0;
2784
+ yyout = (FILE *) 0;
2785
+ #endif
2786
+
2787
+ /* For future reference: Set errno on error, since we are called by
2788
+ * langscan_csharp_lex_lex_init()
2789
+ */
2790
+ return 0;
2791
+ }
2792
+
2793
+ /* langscan_csharp_lex_lex_destroy is for both reentrant and non-reentrant scanners. */
2794
+ int langscan_csharp_lex_lex_destroy (yyscan_t yyscanner)
2795
+ {
2796
+ struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2797
+
2798
+ /* Pop the buffer stack, destroying each element. */
2799
+ while(YY_CURRENT_BUFFER){
2800
+ langscan_csharp_lex__delete_buffer(YY_CURRENT_BUFFER ,yyscanner );
2801
+ YY_CURRENT_BUFFER_LVALUE = NULL;
2802
+ langscan_csharp_lex_pop_buffer_state(yyscanner);
2803
+ }
2804
+
2805
+ /* Destroy the stack itself. */
2806
+ langscan_csharp_lex_free(yyg->yy_buffer_stack ,yyscanner);
2807
+ yyg->yy_buffer_stack = NULL;
2808
+
2809
+ /* Destroy the start condition stack. */
2810
+ langscan_csharp_lex_free(yyg->yy_start_stack ,yyscanner );
2811
+ yyg->yy_start_stack = NULL;
2812
+
2813
+ langscan_csharp_lex_free ( yyg->yy_state_buf , yyscanner);
2814
+ yyg->yy_state_buf = NULL;
2815
+
2816
+ /* Reset the globals. This is important in a non-reentrant scanner so the next time
2817
+ * langscan_csharp_lex_lex() is called, initialization will occur. */
2818
+ yy_init_globals( yyscanner);
2819
+
2820
+ /* Destroy the main struct (reentrant only). */
2821
+ langscan_csharp_lex_free ( yyscanner , yyscanner );
2822
+ yyscanner = NULL;
2823
+ return 0;
2824
+ }
2825
+
2826
+ /*
2827
+ * Internal utility routines.
2828
+ */
2829
+
2830
+ #ifndef yytext_ptr
2831
+ static void yy_flex_strncpy (char* s1, yyconst char * s2, int n , yyscan_t yyscanner)
2832
+ {
2833
+ register int i;
2834
+ for ( i = 0; i < n; ++i )
2835
+ s1[i] = s2[i];
2836
+ }
2837
+ #endif
2838
+
2839
+ #ifdef YY_NEED_STRLEN
2840
+ static int yy_flex_strlen (yyconst char * s , yyscan_t yyscanner)
2841
+ {
2842
+ register int n;
2843
+ for ( n = 0; s[n]; ++n )
2844
+ ;
2845
+
2846
+ return n;
2847
+ }
2848
+ #endif
2849
+
2850
+ void *langscan_csharp_lex_alloc (yy_size_t size , yyscan_t yyscanner)
2851
+ {
2852
+ return (void *) malloc( size );
2853
+ }
2854
+
2855
+ void *langscan_csharp_lex_realloc (void * ptr, yy_size_t size , yyscan_t yyscanner)
2856
+ {
2857
+ /* The cast to (char *) in the following accommodates both
2858
+ * implementations that use char* generic pointers, and those
2859
+ * that use void* generic pointers. It works with the latter
2860
+ * because both ANSI C and C++ allow castless assignment from
2861
+ * any pointer type to void*, and deal with argument conversions
2862
+ * as though doing an assignment.
2863
+ */
2864
+ return (void *) realloc( (char *) ptr, size );
2865
+ }
2866
+
2867
+ void langscan_csharp_lex_free (void * ptr , yyscan_t yyscanner)
2868
+ {
2869
+ free( (char *) ptr ); /* see langscan_csharp_lex_realloc() for (char *) cast */
2870
+ }
2871
+
2872
+ #define YYTABLES_NAME "yytables"
2873
+
2874
+ static void update_pos(
2875
+ langscan_csharp_lex_extra_t *extra,
2876
+ char *text,
2877
+ int leng)
2878
+ {
2879
+ int i, j;
2880
+ extra->beg_byteno = extra->end_byteno;
2881
+ extra->beg_lineno = extra->end_lineno;
2882
+ extra->beg_columnno = extra->end_columnno;
2883
+ j = 0;
2884
+ for (i = 0; i < leng; i++) {
2885
+ if (text[i] == '\n') {
2886
+ extra->end_lineno++;
2887
+ j = i + 1;
2888
+ extra->end_columnno = 0;
2889
+ }
2890
+ }
2891
+ extra->end_columnno += leng - j;
2892
+ extra->end_byteno += leng;
2893
+ }
2894
+
2895
+ static int ident_length(unsigned char *ptr, int max)
2896
+ {
2897
+ int len = 0;
2898
+ while (0 < max &&
2899
+ (('0' <= *ptr && *ptr <= '9') ||
2900
+ ('A' <= *ptr && *ptr <= 'Z') ||
2901
+ ('a' <= *ptr && *ptr <= 'z') ||
2902
+ *ptr == '_')) {
2903
+ ptr++;
2904
+ len++;
2905
+ max--;
2906
+ }
2907
+ return len;
2908
+ }
2909
+
2910
+ langscan_csharp_tokenizer_t *langscan_csharp_make_tokenizer(
2911
+ size_t (*user_read)(void **user_data_p, char *buf, size_t maxlen),
2912
+ void *user_data)
2913
+ {
2914
+ langscan_csharp_tokenizer_t *tokenizer;
2915
+ langscan_csharp_lex_extra_t *extra;
2916
+ tokenizer = (langscan_csharp_tokenizer_t *)malloc(sizeof(langscan_csharp_tokenizer_t));
2917
+ if (tokenizer == NULL)
2918
+ return NULL;
2919
+ extra = (langscan_csharp_lex_extra_t *)malloc(sizeof(langscan_csharp_lex_extra_t));
2920
+ if (extra == NULL)
2921
+ return NULL;
2922
+ extra->user_read = user_read;
2923
+ extra->user_data = user_data;
2924
+ extra->beg_lineno = 1;
2925
+ extra->beg_columnno = 0;
2926
+ extra->beg_byteno = 0;
2927
+ extra->end_lineno = 1;
2928
+ extra->end_columnno = 0;
2929
+ extra->end_byteno = 0;
2930
+ extra->eof = 0;
2931
+ tokenizer->extra = extra;
2932
+ langscan_csharp_lex_lex_init(&tokenizer->scanner);
2933
+ langscan_csharp_lex_set_extra(extra, tokenizer->scanner);
2934
+ return tokenizer;
2935
+ }
2936
+
2937
+ langscan_csharp_token_t langscan_csharp_get_token(langscan_csharp_tokenizer_t *tokenizer)
2938
+ {
2939
+ return langscan_csharp_lex_lex(tokenizer->scanner);
2940
+ }
2941
+
2942
+ void langscan_csharp_free_tokenizer(langscan_csharp_tokenizer_t *tokenizer)
2943
+ {
2944
+ langscan_csharp_lex_extra_t *extra = langscan_csharp_lex_get_extra(tokenizer->scanner);
2945
+ free((void *)extra);
2946
+ langscan_csharp_lex_lex_destroy(tokenizer->scanner);
2947
+ free((void *)tokenizer);
2948
+ }
2949
+
2950
+ user_read_t langscan_csharp_tokenizer_get_user_read(langscan_csharp_tokenizer_t *tokenizer)
2951
+ {
2952
+ return tokenizer->extra->user_read;
2953
+ }
2954
+
2955
+ void *langscan_csharp_tokenizer_get_user_data(langscan_csharp_tokenizer_t *tokenizer)
2956
+ {
2957
+ return tokenizer->extra->user_data;
2958
+ }
2959
+
2960
+ const char *langscan_csharp_token_name(langscan_csharp_token_t token)
2961
+ {
2962
+ static char *token_names[] = {
2963
+ "*eof*",
2964
+ #define LANGSCAN_CSHARP_TOKEN(name) #name,
2965
+ LANGSCAN_CSHARP_TOKEN_LIST
2966
+ #undef LANGSCAN_CSHARP_TOKEN
2967
+ };
2968
+
2969
+ return token_names[token];
2970
+ }
2971
+