~drizzle-trunk/drizzle/7.2

« back to all changes in this revision

Viewing changes to plugin/innobase/pars/pars0lex.l

  • Committer: Continuous Integration
  • Date: 2013-04-27 20:03:58 UTC
  • mfrom: (2633.1.11 drizzle-7.2)
  • Revision ID: ci@drizzle.org-20130427200358-77r6140iqb0orc1o
Merge lp:~brianaker/drizzle/update-bootstrap-april-20113/ Build: jenkins-Drizzle-Builder-192

Show diffs side-by-side

added added

removed removed

Lines of Context:
91
91
%x comment
92
92
%x quoted
93
93
%x id
 
94
 
 
95
%option prefix="innodb_"
 
96
 
94
97
%%
95
98
 
96
99
{DIGIT}+        {
97
 
                        yylval = sym_tab_add_int_lit(pars_sym_tab_global,
 
100
                        innodb_lval = sym_tab_add_int_lit(pars_sym_tab_global,
98
101
                                                                atoi(yytext));
99
102
                        return(PARS_INT_LIT);
100
103
}
108
111
{BOUND_LIT}     {
109
112
                        ulint   type;
110
113
 
111
 
                        yylval = sym_tab_add_bound_lit(pars_sym_tab_global,
 
114
                        innodb_lval = sym_tab_add_bound_lit(pars_sym_tab_global,
112
115
                                yytext + 1, &type);
113
116
 
114
117
                        return((int) type);
115
118
}
116
119
 
117
120
{BOUND_ID}      {
118
 
                        yylval = sym_tab_add_bound_id(pars_sym_tab_global,
 
121
                        innodb_lval = sym_tab_add_bound_id(pars_sym_tab_global,
119
122
                                yytext + 1);
120
123
 
121
124
                        return(PARS_ID_TOKEN);
152
155
 
153
156
                        if (yyleng % 2) {
154
157
                                BEGIN(INITIAL);
155
 
                                yylval = sym_tab_add_str_lit(
 
158
                                innodb_lval = sym_tab_add_str_lit(
156
159
                                        pars_sym_tab_global,
157
160
                                        (byte*) stringbuf, stringbuf_len);
158
161
                                return(PARS_STR_LIT);
190
193
 
191
194
                        if (yyleng % 2) {
192
195
                                BEGIN(INITIAL);
193
 
                                yylval = sym_tab_add_id(
 
196
                                innodb_lval = sym_tab_add_id(
194
197
                                        pars_sym_tab_global,
195
198
                                        (byte*) stringbuf, stringbuf_len);
196
199
 
199
202
}
200
203
 
201
204
"NULL"          {
202
 
                        yylval = sym_tab_add_null_lit(pars_sym_tab_global);
 
205
                        innodb_lval = sym_tab_add_null_lit(pars_sym_tab_global);
203
206
 
204
207
                        return(PARS_NULL_LIT);
205
208
}
206
209
 
207
210
"SQL"           {
208
211
                        /* Implicit cursor name */
209
 
                        yylval = sym_tab_add_str_lit(pars_sym_tab_global,
 
212
                        innodb_lval = sym_tab_add_str_lit(pars_sym_tab_global,
210
213
                                                        (byte*) yytext, yyleng);
211
214
                        return(PARS_SQL_TOKEN);
212
215
}
528
531
}
529
532
 
530
533
{ID}            {
531
 
                        yylval = sym_tab_add_id(pars_sym_tab_global,
 
534
                        innodb_lval = sym_tab_add_id(pars_sym_tab_global,
532
535
                                                        (byte*)yytext,
533
536
                                                        strlen(yytext));
534
537
                        return(PARS_ID_TOKEN);