Skip to content

Commit 61dd8b6

Browse files
committed
Remove shift/reduce conflicts introduced by last change.
1 parent 9c9a72b commit 61dd8b6

File tree

1 file changed

+9
-17
lines changed

1 file changed

+9
-17
lines changed

src/interfaces/ecpg/preproc/preproc.y

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -350,8 +350,8 @@ make_name(void)
350350
%type <str> blockend variable_list variable c_thing c_term
351351
%type <str> opt_pointer ECPGDisconnect dis_name storage_modifier
352352
%type <str> stmt ECPGRelease execstring server_name
353-
%type <str> connection_object opt_server opt_port c_stuff opt_reference
354-
%type <str> user_name opt_user char_variable ora_user ident
353+
%type <str> connection_object opt_server opt_port c_stuff c_stuff_item
354+
%type <str> user_name opt_user char_variable ora_user ident opt_reference
355355
%type <str> quoted_ident_stringvar
356356
%type <str> db_prefix server opt_options opt_connection_name c_list
357357
%type <str> ECPGSetConnection cpp_line ECPGTypedef c_args ECPGKeywords
@@ -5376,26 +5376,18 @@ quoted_ident_stringvar: IDENT { $$ = make3_str(make_str("\""), $1, make_str("\""
53765376

53775377
cpp_line: CPP_LINE { $$ = $1; };
53785378

5379-
c_stuff: c_anything { $$ = $1; }
5380-
| c_stuff c_anything
5381-
{
5382-
$$ = cat2_str($1, $2);
5383-
}
5384-
| c_stuff '(' c_stuff ')'
5385-
{
5386-
$$ = cat_str(4, $1, make_str("("), $3, make_str(")"));
5387-
}
5388-
| c_stuff '(' ')'
5389-
{
5390-
$$ = cat_str(3, $1, make_str("("), make_str(")"));
5391-
}
5379+
c_stuff_item: c_anything { $$ = $1; }
5380+
| '(' ')' { $$ = make_str("()"); }
53925381
| '(' c_stuff ')'
53935382
{
53945383
$$ = cat_str(3, make_str("("), $2, make_str(")"));
53955384
}
5396-
| '(' c_stuff ')' c_stuff
5385+
;
5386+
5387+
c_stuff: c_stuff_item { $$ = $1; }
5388+
| c_stuff c_stuff_item
53975389
{
5398-
$$ = cat_str(4, make_str("("), $2, make_str(")"), $4);
5390+
$$ = cat2_str($1, $2);
53995391
}
54005392
;
54015393

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy