99#define FLEX_SCANNER
1010#define YY_FLEX_MAJOR_VERSION 2
1111#define YY_FLEX_MINOR_VERSION 5
12- #define YY_FLEX_SUBMINOR_VERSION 35
12+ #define YY_FLEX_SUBMINOR_VERSION 39
1313#if YY_FLEX_SUBMINOR_VERSION > 0
1414#define FLEX_BETA
1515#endif
@@ -47,15 +47,13 @@ typedef int16_t flex_int16_t;
4747typedef uint16_t flex_uint16_t ;
4848typedef int32_t flex_int32_t ;
4949typedef uint32_t flex_uint32_t ;
50- typedef uint64_t flex_uint64_t ;
5150#else
5251typedef signed char flex_int8_t ;
5352typedef short int flex_int16_t ;
5453typedef int flex_int32_t ;
5554typedef unsigned char flex_uint8_t ;
5655typedef unsigned short int flex_uint16_t ;
5756typedef unsigned int flex_uint32_t ;
58- #endif /* ! C99 */
5957
6058/* Limits of integral types. */
6159#ifndef INT8_MIN
@@ -86,6 +84,8 @@ typedef unsigned int flex_uint32_t;
8684#define UINT32_MAX (4294967295U )
8785#endif
8886
87+ #endif /* ! C99 */
88+
8989#endif /* ! FLEXINT_H */
9090
9191#ifdef __cplusplus
@@ -189,11 +189,18 @@ typedef size_t yy_size_t;
189189 */
190190 #define YY_LESS_LINENO (n ) \
191191 do { \
192- yy_size_t yyl;\
192+ int yyl;\
193193 for ( yyl = n; yyl < yyleng; ++yyl )\
194194 if ( yytext[yyl] == ' \n ' )\
195195 --yylineno;\
196196 }while (0 )
197+ #define YY_LINENO_REWIND_TO (dst ) \
198+ do {\
199+ const char *p;\
200+ for ( p = yy_cp-1 ; p >= (dst); --p)\
201+ if ( *p == ' \n ' )\
202+ --yylineno;\
203+ }while (0 )
197204
198205/* Return all but the first "n" matched characters back to the input stream. */
199206#define yyless (n ) \
@@ -339,7 +346,7 @@ void yyfree (void * ,yyscan_t yyscanner );
339346
340347/* Begin user sect3 */
341348
342- #define yywrap (n ) 1
349+ #define yywrap (yyscanner ) 1
343350#define YY_SKIP_YYWRAP
344351
345352typedef unsigned char YY_CHAR;
@@ -358,7 +365,7 @@ static void yy_fatal_error (yyconst char msg[] ,yyscan_t yyscanner );
358365 */
359366#define YY_DO_BEFORE_ACTION \
360367 yyg->yytext_ptr = yy_bp; \
361- yyleng = (yy_size_t ) (yy_cp - yy_bp); \
368+ yyleng = (size_t ) (yy_cp - yy_bp); \
362369 yyg->yy_hold_char = *yy_cp; \
363370 *yy_cp = ' \0 ' ; \
364371 yyg->yy_c_buf_p = yy_cp;
@@ -661,7 +668,7 @@ bool parseInt(const char* text, int& value) {
661668int yy_input_proc (char * buf, int size, yyscan_t yyscanner);
662669#define YY_INPUT (buf, result, max_size ) \
663670 result = yy_input_proc(buf, max_size, yyscanner);
664- #line 665 "gecode/flatzinc/lexer.yy.cpp"
671+ #line 672 "gecode/flatzinc/lexer.yy.cpp"
665672
666673#define INITIAL 0
667674
@@ -752,6 +759,10 @@ int yyget_lineno (yyscan_t yyscanner );
752759
753760void yyset_lineno (int line_number ,yyscan_t yyscanner );
754761
762+ int yyget_column (yyscan_t yyscanner );
763+
764+ void yyset_column (int column_no ,yyscan_t yyscanner );
765+
755766YYSTYPE * yyget_lval (yyscan_t yyscanner );
756767
757768void yyset_lval (YYSTYPE * yylval_param ,yyscan_t yyscanner );
@@ -798,7 +809,7 @@ static int input (yyscan_t yyscanner );
798809/* This used to be an fputs(), but since the string might contain NUL's,
799810 * we now use fwrite().
800811 */
801- #define ECHO fwrite ( yytext, yyleng, 1 , yyout )
812+ #define ECHO do { if ( fwrite ( yytext, yyleng, 1 , yyout )) {} } while ( 0 )
802813#endif
803814
804815/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
@@ -809,7 +820,7 @@ static int input (yyscan_t yyscanner );
809820 if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
810821 { \
811822 int c = ' *' ; \
812- yy_size_t n; \
823+ size_t n; \
813824 for ( n = 0 ; n < max_size && \
814825 (c = getc ( yyin )) != EOF && c != ' \n ' ; ++n ) \
815826 buf[n] = (char ) c; \
@@ -894,11 +905,6 @@ YY_DECL
894905 register int yy_act;
895906 struct yyguts_t * yyg = (struct yyguts_t *)yyscanner;
896907
897- #line 79 "./gecode/flatzinc/lexer.lxx"
898-
899-
900- #line 901 "gecode/flatzinc/lexer.yy.cpp"
901-
902908 yylval = yylval_param;
903909
904910 if ( !yyg->yy_init )
@@ -927,6 +933,12 @@ YY_DECL
927933 yy_load_buffer_state (yyscanner );
928934 }
929935
936+ {
937+ #line 79 "./gecode/flatzinc/lexer.lxx"
938+
939+
940+ #line 941 "gecode/flatzinc/lexer.yy.cpp"
941+
930942 while ( 1 ) /* loops until end-of-file is reached */
931943 {
932944 yy_cp = yyg->yy_c_buf_p ;
@@ -943,7 +955,7 @@ YY_DECL
943955yy_match:
944956 do
945957 {
946- register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI (*yy_cp)];
958+ register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI (*yy_cp)] ;
947959 if ( yy_accept[yy_current_state] )
948960 {
949961 yyg->yy_last_accepting_state = yy_current_state;
@@ -1293,7 +1305,7 @@ YY_RULE_SETUP
12931305#line 155 "./gecode/flatzinc/lexer.lxx"
12941306ECHO;
12951307 YY_BREAK
1296- #line 1297 "gecode/flatzinc/lexer.yy.cpp"
1308+ #line 1309 "gecode/flatzinc/lexer.yy.cpp"
12971309case YY_STATE_EOF (INITIAL):
12981310 yyterminate ();
12991311
@@ -1424,6 +1436,7 @@ case YY_STATE_EOF(INITIAL):
14241436 " fatal flex scanner internal error--no action found" );
14251437 } /* end of action switch */
14261438 } /* end of scanning one token */
1439+ } /* end of user's declarations */
14271440} /* end of yylex */
14281441
14291442/* yy_get_next_buffer - try to read in a new buffer
@@ -1487,7 +1500,7 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
14871500 { /* Not enough room in the buffer - grow it. */
14881501
14891502 /* just a shorter name for the current buffer */
1490- YY_BUFFER_STATE b = YY_CURRENT_BUFFER ;
1503+ YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE ;
14911504
14921505 int yy_c_buf_p_offset =
14931506 (int ) (yyg->yy_c_buf_p - b->yy_ch_buf );
@@ -1622,6 +1635,7 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
16221635 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int ) yy_c];
16231636 yy_is_jam = (yy_current_state == 220 );
16241637
1638+ (void )yyg;
16251639 return yy_is_jam ? 0 : yy_current_state;
16261640}
16271641
@@ -1716,7 +1730,7 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
17161730 case EOB_ACT_END_OF_FILE:
17171731 {
17181732 if ( yywrap (yyscanner ) )
1719- return 0 ;
1733+ return EOF ;
17201734
17211735 if ( ! yyg->yy_did_buffer_switch_on_eof )
17221736 YY_NEW_FILE;
@@ -1863,10 +1877,6 @@ static void yy_load_buffer_state (yyscan_t yyscanner)
18631877 yyfree ((void *) b ,yyscanner );
18641878}
18651879
1866- #ifndef __cplusplus
1867- extern int isatty (int );
1868- #endif /* __cplusplus */
1869-
18701880/* Initializes or reinitializes a buffer.
18711881 * This function is sometimes called more than once on the same buffer,
18721882 * such as during a yyrestart() or at EOF.
@@ -2076,16 +2086,17 @@ YY_BUFFER_STATE yy_scan_string (yyconst char * yystr , yyscan_t yyscanner)
20762086
20772087/* * Setup the input buffer state to scan the given bytes. The next call to yylex() will
20782088 * scan from a @e copy of @a bytes.
2079- * @param bytes the byte buffer to scan
2080- * @param len the number of bytes in the buffer pointed to by @a bytes.
2089+ * @param yybytes the byte buffer to scan
2090+ * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
20812091 * @param yyscanner The scanner object.
20822092 * @return the newly allocated buffer state object.
20832093 */
20842094YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len , yyscan_t yyscanner)
20852095{
20862096 YY_BUFFER_STATE b;
20872097 char *buf;
2088- yy_size_t n, i;
2098+ yy_size_t n;
2099+ yy_size_t i;
20892100
20902101 /* Get memory for full buffer, including space for trailing EOB's. */
20912102 n = _yybytes_len + 2 ;
@@ -2231,7 +2242,7 @@ void yyset_lineno (int line_number , yyscan_t yyscanner)
22312242
22322243 /* lineno is only valid if an input buffer exists. */
22332244 if (! YY_CURRENT_BUFFER )
2234- yy_fatal_error ( " yyset_lineno called with no buffer" , yyscanner);
2245+ YY_FATAL_ERROR ( " yyset_lineno called with no buffer" );
22352246
22362247 yylineno = line_number;
22372248}
@@ -2246,7 +2257,7 @@ void yyset_column (int column_no , yyscan_t yyscanner)
22462257
22472258 /* column is only valid if an input buffer exists. */
22482259 if (! YY_CURRENT_BUFFER )
2249- yy_fatal_error ( " yyset_column called with no buffer" , yyscanner);
2260+ YY_FATAL_ERROR ( " yyset_column called with no buffer" );
22502261
22512262 yycolumn = column_no;
22522263}
0 commit comments