Skip to content
Snippets Groups Projects
Commit b82756ee authored by Wanxin Li's avatar Wanxin Li
Browse files

add grammar rules

parent 7f75403f
No related branches found
No related tags found
No related merge requests found
......@@ -38,11 +38,6 @@ Query
printf("Query 1\n");
$$ = $1;
}
| UnionQuery LIMIT INTEGER // remove this case
{
printf("Query 2\n");
$$ = create_limit_operator($1, $3);
}
| SelectQuery
{
printf("Query 3\n");
......@@ -56,8 +51,9 @@ Query
;
SelectQuery
// maybe 2 more cases select/select SelectList
: SELECT Body
: SELECT
: SELECT SelectList
| SELECT Body
{
printf("SelectQuery 1 \n");
$$ = $2;
......
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