Skip to content

Commit

Permalink
regeneration of parser after conflict in merge
Browse files Browse the repository at this point in the history
  • Loading branch information
orlarey committed Jan 17, 2025
1 parent 67d4f4f commit 7c9015b
Show file tree
Hide file tree
Showing 3 changed files with 753 additions and 554 deletions.
49 changes: 24 additions & 25 deletions compiler/parser/faustlexer.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#line 2 "faustlexer.cpp"
#line 1 "faustlexer.cpp"

#line 4 "faustlexer.cpp"
#line 3 "faustlexer.cpp"

#define YY_INT_ALIGNED short int

Expand Down Expand Up @@ -306,7 +306,6 @@ typedef int16_t flex_int16_t;
typedef uint16_t flex_uint16_t;
typedef int32_t flex_int32_t;
typedef uint32_t flex_uint32_t;
typedef uint64_t flex_uint64_t;
#else
typedef signed char flex_int8_t;
typedef short int flex_int16_t;
Expand Down Expand Up @@ -415,7 +414,7 @@ typedef struct yy_buffer_state *YY_BUFFER_STATE;
typedef size_t yy_size_t;
#endif

extern yy_size_t yyleng;
extern int yyleng;

extern FILE *yyin, *yyout;

Expand All @@ -432,7 +431,7 @@ extern FILE *yyin, *yyout;
*/
#define YY_LESS_LINENO(n) \
do { \
yy_size_t yyl;\
int yyl;\
for ( yyl = n; yyl < yyleng; ++yyl )\
if ( yytext[yyl] == '\n' )\
--yylineno;\
Expand Down Expand Up @@ -477,7 +476,7 @@ struct yy_buffer_state
/* Number of characters read into yy_ch_buf, not including EOB
* characters.
*/
yy_size_t yy_n_chars;
int yy_n_chars;

/* Whether we "own" the buffer - i.e., we know we created it,
* and can realloc() it to grow it, and should free() it to
Expand Down Expand Up @@ -546,8 +545,8 @@ static YY_BUFFER_STATE * yy_buffer_stack = NULL; /**< Stack as an array. */

/* yy_hold_char holds the character lost when yytext is formed. */
static char yy_hold_char;
static yy_size_t yy_n_chars; /* number of characters read into yy_ch_buf */
yy_size_t yyleng;
static int yy_n_chars; /* number of characters read into yy_ch_buf */
int yyleng;

/* Points to current character in buffer. */
static char *yy_c_buf_p = NULL;
Expand All @@ -574,7 +573,7 @@ static void yy_init_buffer ( YY_BUFFER_STATE b, FILE *file );

YY_BUFFER_STATE yy_scan_buffer ( char *base, yy_size_t size );
YY_BUFFER_STATE yy_scan_string ( const char *yy_str );
YY_BUFFER_STATE yy_scan_bytes ( const char *bytes, yy_size_t len );
YY_BUFFER_STATE yy_scan_bytes ( const char *bytes, int len );

void *yyalloc ( yy_size_t );
void *yyrealloc ( void *, yy_size_t );
Expand Down Expand Up @@ -627,7 +626,7 @@ static void yynoreturn yy_fatal_error ( const char* msg );
*/
#define YY_DO_BEFORE_ACTION \
(yytext_ptr) = yy_bp; \
yyleng = (yy_size_t) (yy_cp - yy_bp); \
yyleng = (int) (yy_cp - yy_bp); \
(yy_hold_char) = *yy_cp; \
*yy_cp = '\0'; \
(yy_c_buf_p) = yy_cp;
Expand Down Expand Up @@ -1237,9 +1236,9 @@ char *yytext;

#define register // suppress the deprecated 'register' warning

#line 1240 "faustlexer.cpp"
#line 1239 "faustlexer.cpp"

#line 1242 "faustlexer.cpp"
#line 1241 "faustlexer.cpp"

#define INITIAL 0
#define comment 1
Expand Down Expand Up @@ -1281,7 +1280,7 @@ FILE *yyget_out ( void );

void yyset_out ( FILE * _out_str );

yy_size_t yyget_leng ( void );
int yyget_leng ( void );

char *yyget_text ( void );

Expand Down Expand Up @@ -1348,7 +1347,7 @@ static int input ( void );
if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
{ \
int c = '*'; \
yy_size_t n; \
int n; \
for ( n = 0; n < max_size && \
(c = getc( yyin )) != EOF && c != '\n'; ++n ) \
buf[n] = (char) c; \
Expand Down Expand Up @@ -1460,7 +1459,7 @@ YY_DECL
#line 43 "faustlexer.l"


#line 1463 "faustlexer.cpp"
#line 1462 "faustlexer.cpp"

while ( /*CONSTCOND*/1 ) /* loops until end-of-file is reached */
{
Expand Down Expand Up @@ -1508,7 +1507,7 @@ YY_DECL

if ( yy_act != YY_END_OF_BUFFER && yy_rule_can_match_eol[yy_act] )
{
yy_size_t yyl;
int yyl;
for ( yyl = 0; yyl < yyleng; ++yyl )
if ( yytext[yyl] == '\n' )

Expand Down Expand Up @@ -2344,7 +2343,7 @@ YY_RULE_SETUP
#line 252 "faustlexer.l"
ECHO;
YY_BREAK
#line 2347 "faustlexer.cpp"
#line 2346 "faustlexer.cpp"

case YY_END_OF_BUFFER:
{
Expand Down Expand Up @@ -2529,7 +2528,7 @@ static int yy_get_next_buffer (void)

else
{
yy_size_t num_to_read =
int num_to_read =
YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;

while ( num_to_read <= 0 )
Expand All @@ -2543,7 +2542,7 @@ static int yy_get_next_buffer (void)

if ( b->yy_is_our_buffer )
{
yy_size_t new_size = b->yy_buf_size * 2;
int new_size = b->yy_buf_size * 2;

if ( new_size <= 0 )
b->yy_buf_size += b->yy_buf_size / 8;
Expand Down Expand Up @@ -2601,7 +2600,7 @@ static int yy_get_next_buffer (void)

if (((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
/* Extend the array by 50%, plus the number we really need. */
yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
int new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc(
(void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, (yy_size_t) new_size );
if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
Expand Down Expand Up @@ -2704,7 +2703,7 @@ static int yy_get_next_buffer (void)

else
{ /* need more input */
yy_size_t offset = (yy_c_buf_p) - (yytext_ptr);
int offset = (int) ((yy_c_buf_p) - (yytext_ptr));
++(yy_c_buf_p);

switch ( yy_get_next_buffer( ) )
Expand Down Expand Up @@ -3078,12 +3077,12 @@ YY_BUFFER_STATE yy_scan_string (const char * yystr )
*
* @return the newly allocated buffer state object.
*/
YY_BUFFER_STATE yy_scan_bytes (const char * yybytes, yy_size_t _yybytes_len )
YY_BUFFER_STATE yy_scan_bytes (const char * yybytes, int _yybytes_len )
{
YY_BUFFER_STATE b;
char *buf;
yy_size_t n;
yy_size_t i;
int i;

/* Get memory for full buffer, including space for trailing EOB's. */
n = (yy_size_t) (_yybytes_len + 2);
Expand Down Expand Up @@ -3125,7 +3124,7 @@ static void yynoreturn yy_fatal_error (const char* msg )
do \
{ \
/* Undo effects of setting up yytext. */ \
yy_size_t yyless_macro_arg = (n); \
int yyless_macro_arg = (n); \
YY_LESS_LINENO(yyless_macro_arg);\
yytext[yyleng] = (yy_hold_char); \
(yy_c_buf_p) = yytext + yyless_macro_arg; \
Expand Down Expand Up @@ -3165,7 +3164,7 @@ FILE *yyget_out (void)
/** Get the length of the current token.
*
*/
yy_size_t yyget_leng (void)
int yyget_leng (void)
{
return yyleng;
}
Expand Down
Loading

0 comments on commit 7c9015b

Please sign in to comment.