Skip to content
Snippets Groups Projects
Commit 5a541952 authored by w328li's avatar w328li
Browse files

fix conflicts

reason from output:
4 Query: SelectQuery .
    5      | SelectQuery . LIMIT INTEGER
   17 UnionQuery: SelectQuery .
    LIMIT  shift, and go to state 16
    $end      reduce using rule 4 (Query)
    $end      [reduce using rule 17 (UnionQuery)]
    LIMIT     [reduce using rule 17 (UnionQuery)]
    $default  reduce using rule 4 (Query)
solution: add '('')' around state 17
parent 72bf692b
No related branches found
No related tags found
No related merge requests found
......@@ -67,9 +67,6 @@ Terminals unused in grammar
RETURN
State 5 conflicts: 1 shift/reduce, 1 reduce/reduce
Grammar
0 $accept: SQLPProgram $end
......@@ -95,7 +92,7 @@ Grammar
15 UnionQuery: '(' SelectQuery ')' UNION UnionQuery
16 | '(' SelectQuery ')' UNIONALL UnionQuery
17 | SelectQuery
17 | '(' SelectQuery ')'
18 SelectList: Col
19 | Col AS AttrIdentifier
......@@ -142,8 +139,8 @@ Grammar
Terminals, with rules where they appear
$end (0) 0
'(' (40) 15 16 39 41
')' (41) 15 16 39 41
'(' (40) 15 16 17 39 41
')' (41) 15 16 17 39 41
',' (44) 14 20 21
'.' (46) 22 24
error (256)
......@@ -312,6 +309,7 @@ State 2
15 UnionQuery: '(' . SelectQuery ')' UNION UnionQuery
16 | '(' . SelectQuery ')' UNIONALL UnionQuery
17 | '(' . SelectQuery ')'
SELECT shift, and go to state 1
......@@ -336,13 +334,9 @@ State 5
4 Query: SelectQuery .
5 | SelectQuery . LIMIT INTEGER
17 UnionQuery: SelectQuery .
LIMIT shift, and go to state 16
$end reduce using rule 4 (Query)
$end [reduce using rule 17 (UnionQuery)]
LIMIT [reduce using rule 17 (UnionQuery)]
$default reduce using rule 4 (Query)
......@@ -430,6 +424,7 @@ State 14
15 UnionQuery: '(' SelectQuery . ')' UNION UnionQuery
16 | '(' SelectQuery . ')' UNIONALL UnionQuery
17 | '(' SelectQuery . ')'
')' shift, and go to state 28
......@@ -561,10 +556,13 @@ State 28
15 UnionQuery: '(' SelectQuery ')' . UNION UnionQuery
16 | '(' SelectQuery ')' . UNIONALL UnionQuery
17 | '(' SelectQuery ')' .
UNION shift, and go to state 51
UNIONALL shift, and go to state 52
$default reduce using rule 17 (UnionQuery)
State 29
......@@ -786,22 +784,18 @@ State 51
15 UnionQuery: '(' SelectQuery ')' UNION . UnionQuery
SELECT shift, and go to state 1
'(' shift, and go to state 2
'(' shift, and go to state 2
SelectQuery go to state 69
UnionQuery go to state 70
UnionQuery go to state 69
State 52
16 UnionQuery: '(' SelectQuery ')' UNIONALL . UnionQuery
SELECT shift, and go to state 1
'(' shift, and go to state 2
'(' shift, and go to state 2
SelectQuery go to state 69
UnionQuery go to state 71
UnionQuery go to state 70
State 53
......@@ -817,14 +811,14 @@ State 54
FROM shift, and go to state 8
Body go to state 72
Body go to state 71
State 55
41 BasicPred: '(' Pred . ')'
')' shift, and go to state 73
')' shift, and go to state 72
State 56
......@@ -841,7 +835,7 @@ State 56
Col go to state 37
VarIdentifier go to state 13
Pred go to state 74
Pred go to state 73
Conj go to state 39
BasicPred go to state 40
Term go to state 41
......@@ -862,7 +856,7 @@ State 57
Col go to state 37
VarIdentifier go to state 13
Conj go to state 75
Conj go to state 74
BasicPred go to state 40
Term go to state 41
Constant go to state 42
......@@ -921,7 +915,7 @@ State 64
Col go to state 37
VarIdentifier go to state 13
Term go to state 76
Term go to state 75
Constant go to state 42
......@@ -938,7 +932,7 @@ State 66
IDENTIFIER shift, and go to state 18
TableList go to state 77
TableList go to state 76
TableIdentifier go to state 21
......@@ -948,7 +942,7 @@ State 67
IDENTIFIER shift, and go to state 7
SelectList go to state 78
SelectList go to state 77
Col go to state 12
VarIdentifier go to state 13
......@@ -959,88 +953,81 @@ State 68
IDENTIFIER shift, and go to state 46
AttrPath go to state 79
AttrPath go to state 78
AttrIdentifier go to state 50
State 69
17 UnionQuery: SelectQuery .
$default reduce using rule 17 (UnionQuery)
State 70
15 UnionQuery: '(' SelectQuery ')' UNION UnionQuery .
$default reduce using rule 15 (UnionQuery)
State 71
State 70
16 UnionQuery: '(' SelectQuery ')' UNIONALL UnionQuery .
$default reduce using rule 16 (UnionQuery)
State 72
State 71
39 BasicPred: EXIST '(' Body . ')'
')' shift, and go to state 80
')' shift, and go to state 79
State 73
State 72
41 BasicPred: '(' Pred ')' .
$default reduce using rule 41 (BasicPred)
State 74
State 73
35 Pred: Conj OR Pred .
$default reduce using rule 35 (Pred)
State 75
State 74
37 Conj: BasicPred AND Conj .
$default reduce using rule 37 (Conj)
State 76
State 75
38 BasicPred: Term CompOperator Term .
$default reduce using rule 38 (BasicPred)
State 77
State 76
14 TableList: TableIdentifier VarIdentifier ',' TableList .
$default reduce using rule 14 (TableList)
State 78
State 77
21 SelectList: Col AS AttrIdentifier ',' SelectList .
$default reduce using rule 21 (SelectList)
State 79
State 78
24 AttrPath: AttrIdentifier '.' AttrPath .
$default reduce using rule 24 (AttrPath)
State 80
State 79
39 BasicPred: EXIST '(' Body ')' .
......
......@@ -458,7 +458,7 @@ union yyalloc
/* YYNRULES -- Number of rules. */
#define YYNRULES 47
/* YYNSTATES -- Number of states. */
#define YYNSTATES 81
#define YYNSTATES 80
/* YYTRANSLATE[YYX] -- Symbol number corresponding to YYX as returned
by yylex, with out-of-bounds checking. */
......@@ -563,10 +563,10 @@ static const yytype_uint16 yytoknum[] =
};
# endif
#define YYPACT_NINF -70
#define YYPACT_NINF -75
#define yypact_value_is_default(Yystate) \
(!!((Yystate) == (-70)))
(!!((Yystate) == (-75)))
#define YYTABLE_NINF -1
......@@ -577,15 +577,14 @@ static const yytype_uint16 yytoknum[] =
STATE-NUM. */
static const yytype_int8 yypact[] =
{
-53, -29, -49, 15, -70, -66, -64, -70, -24, -21,
-70, -42, -14, -63, -61, -70, -44, -40, -70, -6,
-28, 3, -70, -42, -70, 6, 3, 6, -69, -70,
-70, -6, -45, -70, -70, -70, -6, -70, -70, 45,
47, 34, -70, -6, -37, -70, -70, -35, -70, -70,
-36, -53, -53, -70, -42, -34, -6, -6, -70, -70,
-70, -70, -70, -70, -26, -70, 25, 3, 6, -70,
-70, -70, -33, -70, -70, -70, -70, -70, -70, -70,
-70
-53, -29, -45, 18, -75, -69, -66, -75, -24, -21,
-75, -35, -14, -64, -68, -75, -46, -43, -75, -6,
-32, 3, -75, -35, -75, 4, 3, 4, -74, -75,
-75, -6, -58, -75, -75, -75, -6, -75, -75, 33,
41, 34, -75, -6, -41, -75, -75, -38, -75, -75,
-40, -36, -36, -75, -35, -34, -6, -6, -75, -75,
-75, -75, -75, -75, -26, -75, 25, 3, 4, -75,
-75, -33, -75, -75, -75, -75, -75, -75, -75, -75
};
/* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM.
......@@ -595,26 +594,25 @@ static const yytype_uint8 yydefact[] =
{
0, 0, 0, 0, 2, 5, 3, 26, 0, 0,
7, 0, 19, 0, 0, 1, 0, 0, 27, 0,
11, 0, 9, 0, 8, 0, 0, 0, 0, 6,
11, 0, 9, 0, 8, 0, 0, 0, 18, 6,
4, 0, 0, 45, 46, 47, 0, 44, 12, 35,
37, 0, 43, 0, 14, 10, 28, 20, 21, 23,
24, 0, 0, 41, 0, 0, 0, 0, 31, 32,
33, 34, 30, 29, 0, 13, 0, 0, 0, 18,
16, 17, 0, 42, 36, 38, 39, 15, 22, 25,
40
33, 34, 30, 29, 0, 13, 0, 0, 0, 16,
17, 0, 42, 36, 38, 39, 15, 22, 25, 40
};
/* YYPGOTO[NTERM-NUM]. */
static const yytype_int8 yypgoto[] =
{
-70, -70, -70, 12, -3, -2, -25, -5, 2, 4,
42, -70, 40, -70, -20, 9, 43, 7, -70
-75, -75, -75, 55, -3, -2, -37, -5, 2, 5,
42, -75, 40, -75, -20, 9, 43, 7, -75
};
/* YYDEFGOTO[NTERM-NUM]. */
static const yytype_int8 yydefgoto[] =
{
-1, 3, 4, 69, 10, 20, 6, 11, 37, 49,
-1, 3, 4, 5, 10, 20, 6, 11, 37, 49,
13, 21, 50, 64, 38, 39, 40, 41, 42
};
......@@ -624,26 +622,26 @@ static const yytype_int8 yydefgoto[] =
static const yytype_uint8 yytable[] =
{
31, 25, 7, 12, 23, 7, 22, 18, 24, 1,
7, 12, 5, 1, 14, 15, 55, 51, 52, 8,
45, 48, 16, 65, 17, 7, 70, 71, 12, 29,
27, 28, 8, 30, 7, 43, 74, 46, 2, 19,
8, 58, 59, 60, 61, 62, 54, 33, 34, 56,
35, 72, 57, 66, 63, 67, 18, 68, 73, 80,
9, 32, 78, 44, 77, 47, 75, 33, 34, 12,
35, 76, 79, 0, 53, 0, 26, 0, 0, 0,
7, 12, 51, 52, 69, 70, 55, 1, 15, 16,
45, 48, 17, 65, 28, 7, 8, 29, 12, 27,
30, 43, 8, 54, 7, 46, 73, 56, 2, 19,
8, 58, 59, 60, 61, 62, 57, 33, 34, 66,
35, 71, 67, 68, 63, 2, 18, 14, 72, 79,
9, 32, 77, 44, 76, 47, 74, 33, 34, 12,
35, 75, 0, 78, 53, 0, 26, 0, 0, 0,
0, 0, 0, 0, 0, 36
};
static const yytype_int8 yycheck[] =
{
6, 15, 31, 1, 9, 31, 9, 31, 11, 62,
31, 9, 0, 62, 2, 0, 36, 86, 87, 61,
23, 26, 88, 43, 88, 31, 51, 52, 26, 73,
93, 92, 61, 73, 31, 63, 56, 31, 91, 63,
61, 7, 8, 9, 10, 11, 91, 73, 74, 4,
76, 54, 5, 90, 20, 90, 31, 93, 92, 92,
31, 9, 86, 87, 51, 52, 36, 62, 0, 88,
23, 26, 88, 43, 92, 31, 61, 73, 26, 93,
73, 63, 61, 91, 31, 31, 56, 4, 91, 63,
61, 7, 8, 9, 10, 11, 5, 73, 74, 90,
76, 54, 90, 93, 20, 91, 31, 2, 92, 92,
89, 67, 67, 21, 66, 25, 57, 73, 74, 67,
76, 64, 68, -1, 31, -1, 90, -1, -1, -1,
76, 64, -1, 68, 31, -1, 90, -1, -1, -1,
-1, -1, -1, -1, -1, 91
};
......@@ -657,9 +655,8 @@ static const yytype_uint8 yystos[] =
73, 6, 67, 73, 74, 76, 91, 102, 108, 109,
110, 111, 112, 63, 104, 98, 31, 106, 101, 103,
106, 86, 87, 110, 91, 108, 4, 5, 7, 8,
9, 10, 11, 20, 107, 108, 90, 90, 93, 97,
100, 100, 98, 92, 108, 109, 111, 99, 101, 103,
92
9, 10, 11, 20, 107, 108, 90, 90, 93, 100,
100, 98, 92, 108, 109, 111, 99, 101, 103, 92
};
/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
......@@ -676,7 +673,7 @@ static const yytype_uint8 yyr1[] =
static const yytype_uint8 yyr2[] =
{
0, 2, 1, 1, 3, 1, 3, 2, 3, 3,
4, 2, 3, 4, 2, 4, 5, 5, 1, 1,
4, 2, 3, 4, 2, 4, 5, 5, 3, 1,
3, 3, 5, 3, 1, 3, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 3, 1, 3, 3,
4, 2, 3, 1, 1, 1, 1, 1
......@@ -1363,7 +1360,7 @@ yyreduce:
printf("Printing Tree\n");
print_cons_tree(n);
}
#line 1367 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
#line 1364 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
break;
case 3:
......@@ -1372,7 +1369,7 @@ yyreduce:
printf("Query 1\n");
(yyval) = (yyvsp[0]);
}
#line 1376 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
#line 1373 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
break;
case 4:
......@@ -1381,7 +1378,7 @@ yyreduce:
printf("Query 2\n");
(yyval) = create_limit_operator((yyvsp[-2]), (yyvsp[0]));
}
#line 1385 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
#line 1382 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
break;
case 5:
......@@ -1390,7 +1387,7 @@ yyreduce:
printf("Query 3\n");
(yyval) = (yyvsp[0]);
}
#line 1394 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
#line 1391 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
break;
case 6:
......@@ -1399,7 +1396,7 @@ yyreduce:
printf("Query 4\n");
(yyval) = create_limit_operator((yyvsp[-2]), (yyvsp[0]));
}
#line 1403 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
#line 1400 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
break;
case 14:
......@@ -1408,7 +1405,7 @@ yyreduce:
printf("TableList 1\n");
(yyval) = create_rename_operator((yyvsp[-1]), (yyvsp[0]));
}
#line 1412 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
#line 1409 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
break;
case 15:
......@@ -1417,7 +1414,7 @@ yyreduce:
printf("TableList 2\n");
(yyval) = create_cross_operator(create_rename_operator((yyvsp[-3]), (yyvsp[-2])), (yyvsp[0]));
}
#line 1421 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
#line 1418 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
break;
case 16:
......@@ -1426,7 +1423,7 @@ yyreduce:
printf("UnionQuery 1\n");
(yyval) = create_union_all_operator((yyvsp[-3]), (yyvsp[0]));
}
#line 1430 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
#line 1427 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
break;
case 17:
......@@ -1435,16 +1432,16 @@ yyreduce:
printf("UnionQuery 2\n");
(yyval) = create_union_all_operator((yyvsp[-3]), (yyvsp[0]));
}
#line 1439 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
#line 1436 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
break;
case 18:
#line 97 "SQLPGrammar_new.y" /* yacc.c:1646 */
{
printf("UnionQuery 3\n");
(yyval) = (yyvsp[0]);
(yyval) = (yyvsp[-2]);
}
#line 1448 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
#line 1445 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
break;
case 19:
......@@ -1453,7 +1450,7 @@ yyreduce:
printf("SelectList 2\n");
(yyval) = create_rename_operator((yyvsp[0]), NULL);
}
#line 1457 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
#line 1454 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
break;
case 21:
......@@ -1462,7 +1459,7 @@ yyreduce:
printf("SelectList 4\n");
(yyval) = create_rename_operator((yyvsp[-2]), (yyvsp[-1]));
}
#line 1466 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
#line 1463 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
break;
case 23:
......@@ -1471,7 +1468,7 @@ yyreduce:
printf("col\n");
(yyval) = create_spcol((yyvsp[-2]), (yyvsp[0]));
}
#line 1475 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
#line 1472 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
break;
case 24:
......@@ -1480,7 +1477,7 @@ yyreduce:
printf("AttrPath 1\n");
(yyval) = create_pf((yyvsp[0]), NULL);
}
#line 1484 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
#line 1481 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
break;
case 25:
......@@ -1489,7 +1486,7 @@ yyreduce:
printf("AttrPath 2\n");
(yyval) = create_pf((yyvsp[-2]), (yyvsp[0]));
}
#line 1493 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
#line 1490 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
break;
case 26:
......@@ -1498,7 +1495,7 @@ yyreduce:
printf("VarIdentifier is |%s| ", yytext);
(yyval) = create_var(yytext);
}
#line 1502 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
#line 1499 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
break;
case 27:
......@@ -1507,7 +1504,7 @@ yyreduce:
printf("TableIdentifier is |%s| ", yytext);
(yyval) = create_var(yytext);
}
#line 1511 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
#line 1508 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
break;
case 28:
......@@ -1516,7 +1513,7 @@ yyreduce:
printf("AttrIdentifier is |%s| ", yytext);
(yyval) = create_var(yytext);
}
#line 1520 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
#line 1517 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
break;
case 29:
......@@ -1525,7 +1522,7 @@ yyreduce:
printf("CompOperator EQ\n");
(yyval) = create_op(yytext);
}
#line 1529 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
#line 1526 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
break;
case 30:
......@@ -1534,7 +1531,7 @@ yyreduce:
printf("CompOperator NE\n");
(yyval) = create_op(yytext);
}
#line 1538 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
#line 1535 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
break;
case 31:
......@@ -1543,7 +1540,7 @@ yyreduce:
printf("CompOperator LE\n");
(yyval) = create_op(yytext);
}
#line 1547 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
#line 1544 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
break;
case 32:
......@@ -1552,7 +1549,7 @@ yyreduce:
printf("CompOperator GE\n");
(yyval) = create_op(yytext);
}
#line 1556 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
#line 1553 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
break;
case 33:
......@@ -1561,7 +1558,7 @@ yyreduce:
printf("CompOperator LT\n");
(yyval) = create_op(yytext);
}
#line 1565 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
#line 1562 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
break;
case 34:
......@@ -1570,7 +1567,7 @@ yyreduce:
printf("CompOperator GT\n");
(yyval) = create_op(yytext);
}
#line 1574 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
#line 1571 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
break;
case 35:
......@@ -1579,7 +1576,7 @@ yyreduce:
printf("Pred 1\n");
(yyval) = (yyvsp[0]);
}
#line 1583 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
#line 1580 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
break;
case 36:
......@@ -1588,7 +1585,7 @@ yyreduce:
printf("Pred 2 \n");
(yyval) = create_or_operator((yyvsp[-2]), (yyvsp[0]));
}
#line 1592 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
#line 1589 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
break;
case 37:
......@@ -1597,7 +1594,7 @@ yyreduce:
printf("Conj 1 \n");
(yyval) = (yyvsp[0]);
}
#line 1601 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
#line 1598 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
break;
case 38:
......@@ -1606,7 +1603,7 @@ yyreduce:
printf("Conj 2 \n");
(yyval) = create_and_operator((yyvsp[-2]), (yyvsp[0]));
}
#line 1610 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
#line 1607 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
break;
case 39:
......@@ -1617,7 +1614,7 @@ yyreduce:
cons_cell* second_term = create_term((yyvsp[0]));
(yyval) = create_comp_operator((yyvsp[-1]), first_term, second_term, NULL);
}
#line 1621 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
#line 1618 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
break;
case 40:
......@@ -1626,7 +1623,7 @@ yyreduce:
printf("BasicPred 2\n");
(yyval) = create_exist_operator((yyvsp[-2]));
}
#line 1630 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
#line 1627 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
break;
case 41:
......@@ -1635,7 +1632,7 @@ yyreduce:
printf("BasicPred 3 \n");
(yyval) = create_not_operator((yyvsp[0]));
}
#line 1639 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
#line 1636 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
break;
case 42:
......@@ -1644,7 +1641,7 @@ yyreduce:
printf("BasicPred 4\n");
(yyval) = (yyvsp[-2]);
}
#line 1648 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
#line 1645 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
break;
case 43:
......@@ -1653,7 +1650,7 @@ yyreduce:
printf("Term 1\n");
(yyval) = (yyvsp[0]);
}
#line 1657 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
#line 1654 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
break;
case 44:
......@@ -1662,7 +1659,7 @@ yyreduce:
printf("Term 2\n");
(yyval) = (yyvsp[0]);
}
#line 1666 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
#line 1663 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
break;
case 45:
......@@ -1671,7 +1668,7 @@ yyreduce:
printf("INTEGER is |%s|", yytext);
(yyval) = create_constant(yytext);
}
#line 1675 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
#line 1672 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
break;
case 46:
......@@ -1680,7 +1677,7 @@ yyreduce:
printf("REAL is |%s|", yytext);
(yyval) = create_constant(yytext);
}
#line 1684 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
#line 1681 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
break;
case 47:
......@@ -1689,11 +1686,11 @@ yyreduce:
printf("STRING is |%s|", yytext);
(yyval) = create_constant(yytext);
}
#line 1693 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
#line 1690 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
break;
#line 1697 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
#line 1694 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
default: break;
}
/* User semantic actions sometimes alter yychar, and that requires
......
......@@ -93,7 +93,7 @@ UnionQuery
printf("UnionQuery 2\n");
$$ = create_union_all_operator($2, $5);
}
| SelectQuery
| '(' SelectQuery ')'
{
printf("UnionQuery 3\n");
$$ = $1;
......
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment