|
a/src/query/wasaparse.ypp |
|
b/src/query/wasaparse.ypp |
1 |
%{
|
1 |
%{
|
2 |
#define YYDEBUG 1
|
2 |
#define YYDEBUG 1
|
|
|
3 |
#include "autoconfig.h"
|
3 |
|
4 |
|
4 |
#include <stdio.h>
|
5 |
#include <stdio.h>
|
5 |
|
6 |
|
6 |
#include <iostream>
|
7 |
#include <iostream>
|
7 |
#include <string>
|
8 |
#include <string>
|
8 |
|
9 |
|
9 |
#include "searchdata.h"
|
10 |
#include "searchdata.h"
|
10 |
#include "wasaparserdriver.h"
|
11 |
#include "wasaparserdriver.h"
|
11 |
#include "wasaparse.h"
|
12 |
#include "wasaparse.hpp"
|
12 |
|
13 |
|
13 |
using namespace std;
|
14 |
using namespace std;
|
14 |
|
15 |
|
15 |
// #define LOG_PARSER
|
16 |
// #define LOG_PARSER
|
16 |
#ifdef LOG_PARSER
|
17 |
#ifdef LOG_PARSER
|
|
... |
|
... |
25 |
static void qualify(Rcl::SearchDataClauseDist *, const string &);
|
26 |
static void qualify(Rcl::SearchDataClauseDist *, const string &);
|
26 |
|
27 |
|
27 |
static void addSubQuery(WasaParserDriver *d,
|
28 |
static void addSubQuery(WasaParserDriver *d,
|
28 |
Rcl::SearchData *sd, Rcl::SearchData *sq)
|
29 |
Rcl::SearchData *sd, Rcl::SearchData *sq)
|
29 |
{
|
30 |
{
|
30 |
sd->addClause(new Rcl::SearchDataClauseSub(RefCntr<Rcl::SearchData>(sq)));
|
31 |
sd->addClause(new Rcl::SearchDataClauseSub(STD_SHARED_PTR<Rcl::SearchData>(sq)));
|
31 |
}
|
32 |
}
|
32 |
|
33 |
|
33 |
%}
|
34 |
%}
|
34 |
|
35 |
|
35 |
%skeleton "lalr1.cc"
|
36 |
%skeleton "lalr1.cc"
|