-
Notifications
You must be signed in to change notification settings - Fork 0
/
scanner.l
579 lines (509 loc) · 22.2 KB
/
scanner.l
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
%{
// Header
#include <cerrno>
#include <climits>
#include <cstdlib>
#include <sstream>
#include <string_view>
#include <string>
#include <charconv>
#include "sqlynx/parser/grammar/keywords.h"
#include "sqlynx/parser/grammar/location.h"
#include "sqlynx/parser/grammar/raw.h"
#include "sqlynx/parser/parser.h"
#include "sqlynx/parser/scanner.h"
// ISO C++17 does not allow 'register' storage class specifier
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wregister"
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wregister"
using namespace sqlynx;
using namespace sqlynx::parser;
namespace sx = proto;
// Flex use 16KiB buffers by default.
// This is way too large as the data comes from main-memory anyway.
#undef YY_BUF_SIZE
#define YY_BUF_SIZE 1024
#define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
// Declare the yylex function
#define YY_DECL Parser::symbol_type yylex(void* yyscanner)
// Declare yy_extra_type
#define YY_EXTRA_TYPE sqlynx::parser::Scanner*
// Done after the current pattern has been matched and before the corrsponding action.
// We update the location here and not in YY_USER_ACTION so that yyless picks it up.
#undef YY_DO_BEFORE_ACTION
#define YY_DO_BEFORE_ACTION { \
yyg->yytext_ptr = yy_bp; \
yyleng = (yy_size_t) (yy_cp - yy_bp); \
yyg->yy_hold_char = *yy_cp; \
*yy_cp = '\0'; \
yyg->yy_c_buf_p = yy_cp; \
loc = sx::Location(yy_bp - YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, yyleng); \
}
// The user action is run whenever a token is matched
#define YY_USER_ACTION { \
for (unsigned i = 0; i < yyleng; ++i) { \
if (yytext[i] == '\n') { \
ctx.AddLineBreak(sx::Location(loc.offset() + i, 1)); \
} \
} \
}
// Return EOF token in yyterminate
#define yyterminate() return Parser::make_EOF(loc)
using YYLTYPE = sx::Location;
using YYSTYPE = sqlynx::parser::Parser::symbol_type;
%}
%{
// Options
%}
%{
// noyywrap: Disable yywrap (EOF == end of parsing)
// nounput: Disable manipulation of input stream
// noinput: Disable explicit fetch of the next character
// batch: Scanner in batch-mode (vs. interactive)
// caseless: Case-insensitive pattern matching
%}
%option reentrant
%option nodefault
%option noinput
%option nounput
%option noyywrap
%option never-interactive
%option batch
%option caseless
%option prefix="sqlynx_yy"
/*
* OK, here is a short description of lex/flex rules behavior.
* The longest pattern which matches an input string is always chosen.
* For equal-length patterns, the first occurring in the rules list is chosen.
* INITIAL is the starting state, to which all non-conditional rules apply.
* Exclusive states change parsing rules while the state is active. When in
* an exclusive state, only those rules defined for that state apply.
*
* Exclusive states:
* <xb> bit string literal
* <xc> extended C-style comments
* <xd> delimited identifiers (double-quoted identifiers)
* <xh> hexadecimal numeric string
* <xq> standard quoted strings
*
* Remember to add an <<EOF>> case whenever you add a new exclusive state!
* The default one is probably not the right thing.
*/
%x xb
%x xc
%x xd
%x xh
%x xq
/*
* In order to make the world safe for Windows and Mac clients as well as
* Unix ones, we accept either \n or \r as a newline. A DOS-style \r\n
* sequence will be seen as two successive newlines, but that doesn't cause '
* any problems. Comments that start with -- and extend to the next
* newline are treated as equivalent to a single whitespace character.
*
* NOTE a fine point: if there is no newline following --, we will absorb
* everything to the end of the input as a comment. This is correct. Older
* versions of Postgres failed to recognize -- as a comment if the input
* did not end with a newline.
*
* XXX perhaps \f (formfeed) should be treated as a newline as well?
*
* XXX if you change the set of whitespace characters, fix scanner_isspace()
* to agree, and see also the plpgsql lexer.
*/
space [ \t\n\r\f]
horiz_space [ \t\f]
newline [\n\r]
non_newline [^\n\r]
comment ("--"{non_newline}*)
whitespace ({space}+|{comment})
/*
* SQL requires at least one newline in the whitespace separating
* string literals that are to be concatenated. Silly, but who are we
* to argue? Note that {whitespace_with_newline} should not have * after
* it, whereas {whitespace} should generally have a * after it...
*/
special_whitespace ({space}+|{comment}{newline})
horiz_whitespace ({horiz_space}|{comment})
whitespace_with_newline ({horiz_whitespace}*{newline}{special_whitespace}*)
/*
* To ensure that {quotecontinue} can be scanned without having to back up
* if the full pattern isn't matched, we include trailing whitespace in
* {quotestop}. This matches all cases where {quotecontinue} fails to match,
* except for {quote} followed by whitespace and just one "-" (not two,
* which would start a {comment}). To cover that we have {quotefail}.
* The actions for {quotestop} and {quotefail} must throw back characters
* beyond the quote proper.
*/
quote '
quotestop {quote}{whitespace}*
quotecontinue {quote}{whitespace_with_newline}{quote}
quotefail {quote}{whitespace}*"-"
/* Bit string
* It is tempting to scan the string for only those characters
* which are allowed. However, this leads to silently swallowed
* characters if illegal characters are included in the string.
* For example, if xbinside is [01] then B'ABCD' is interpreted
* as a zero-length string, and the ABCD' is lost!
* Better to pass the string forward and let the input routines
* validate the contents.
*/
xbstart [bB]{quote}
xbinside [^']*
/* Hexadecimal number */
xhstart [xX]{quote}
xhinside [^']*
/* Extended quote
* xqdouble implements embedded quote, ''''
*/
xqstart {quote}
xqdouble {quote}{quote}
xqinside [^']+
/* Double quote
* Allows embedded spaces and other special characters into identifiers.
*/
dquote \"
xdstart {dquote}
xdstop {dquote}
xddouble {dquote}{dquote}
xdinside [^"]+
/* C-style comments
*
* The "extended comment" syntax closely resembles allowable operator syntax.
* The tricky part here is to get lex to recognize a string starting with
* slash-star as a comment, when interpreting it as an operator would produce
* a longer match --- remember lex will prefer a longer match! Also, if we
* have something like plus-slash-star, lex will think this is a 3-character
* operator whereas we want to see it as a + operator and a comment start.
* The solution is two-fold:
* 1. append {op_chars}* to xcstart so that it matches as much text as
* {operator} would. Then the tie-breaker (first matching rule of same
* length) ensures xcstart wins. We put back the extra stuff with yyless()
* in case it contains a star-slash that should terminate the comment.
* 2. In the operator rule, check for slash-star within the operator, and
* if found throw it back with yyless(). This handles the plus-slash-star
* problem.
* Dash-dash comments have similar interactions with the operator rule.
*/
xcstart \/\*{op_chars}*
xcstop \*+\/
xcinside [^*/]+
digit [0-9]
ident_start [A-Za-z\200-\377_]
ident_cont [A-Za-z\200-\377_0-9\$]
identifier {ident_start}{ident_cont}*
/* Assorted special-case operators and operator-like tokens */
raw_typecast "::"
raw_dot_trailing \.{space}
raw_dot_dot \.\.
raw_dot \.
colon_equals ":="
/*
* These operator-like tokens (unlike the above ones) also match the {operator}
* rule, which means that they might be overridden by a longer match if they
* are followed by a comment start or a + or - character. Accordingly, if you
* add to this list, you must also add corresponding code to the {operator}
* block to return the correct token in such cases. (This is not needed in
* psqlscan.l since the token value is ignored there.)
*/
equals_greater "=>"
less_equals "<="
greater_equals ">="
less_greater "<>"
not_equals "!="
/*
* "self" is the set of chars that should be returned as single-character
* tokens. "op_chars" is the set of chars that can make up "Op" tokens,
* which can be one or more characters long (but if a single-char token
* appears in the "self" set, it is not to be returned as an Op). Note
* that the sets overlap, but each has some chars that are not in the other.
*
* If you change either set, adjust the character lists appearing in the
* rule for "operator"!
*/
raw_comma \,
raw_lrb \(
raw_rrb \)
raw_lsb \[
raw_rsb \]
raw_semicolon \;
raw_colon \:
raw_plus \+
raw_minus \-
raw_star \*
raw_divide \/
raw_modulo \%
raw_circumflex \^
raw_less_than \<
raw_greater_than \>
raw_equals \=
raw_question_mark \?
raw_dollar \$
op_chars [\~\!\@\#\^\&\|\`\+\-\*\/\%\<\>\=]
operator {op_chars}+
/* we no longer allow unary minus in numbers.
* instead we pass it separately to parser. there it gets
* coerced via doNegate() -- Leon aug 20 1999
*
* {decimalfail} is used because we would like "1..10" to lex as 1, dot_dot, 10.
*
* {realfail1} and {realfail2} are added to prevent the need for scanner
* backup when the {real} rule fails to match completely.
*/
integer {digit}+
decimal (({digit}*\.{digit}+)|({digit}+\.{digit}*))
decimalfail {digit}+\.\.
real ({integer}|{decimal})[Ee][-+]?{digit}+
realfail1 ({integer}|{decimal})[Ee]
realfail2 ({integer}|{decimal})[Ee][-+]
param \${integer}
param2 \?{integer}
other .
/*
* Dollar quoted strings are totally opaque, and no escaping is done on them.
* Other quoted strings must allow some special characters such as single-quote
* and newline.
* Embedded single-quotes are implemented both in the SQL standard
* style of two adjacent single quotes "''" and in the Postgres/Java style
* of escaped-quote "\'".
* Other embedded escaped characters are matched explicitly and the leading
* backslash is dropped from the string.
* Note that xcstart must appear before operator, as explained above!
* Also whitespace (comment) must appear before operator.
*/
%%
%{
// This code is inlined at the beginning of yylex()
Scanner& ctx = *sqlynx_yyget_extra(yyscanner);
sx::Location loc;
auto& ext_begin = ctx.ext_begin;
auto& ext_depth = ctx.ext_depth;
std::string_view input = ctx.GetInputData();
%}
{space}+ {}
{comment} { ctx.AddComment(loc); }
{xcstart} { ext_begin = loc; ++ext_depth; BEGIN(xc); }
<xc>{xcstart} { ext_begin = loc; ++ext_depth; }
<xc>{xcstop} { if (--ext_depth == 0) { ctx.AddComment(Loc({ext_begin, loc})); BEGIN(INITIAL); } }
<xc>{xcinside}
<xc>{op_chars}
<xc>\*+
<xc><<EOF>> { ctx.AddError(Loc({ext_begin, loc}), "unterminated comment"); BEGIN(INITIAL); }
{xbstart} { ext_begin = loc; BEGIN(xb); }
<xb>{quotestop} { BEGIN(INITIAL); return ctx.ReadBitStringLiteral(Loc({ext_begin, loc})); }
<xb>{quotefail} { yyless(1); BEGIN(INITIAL); return ctx.ReadBitStringLiteral(Loc({ext_begin, proto::Location(loc.offset(), loc.length() - 1)})); }
<xh>{xhinside} |
<xb>{xbinside}
<xh>{quotecontinue} |
<xb>{quotecontinue}
<xb><<EOF>> { ctx.AddError(Loc({ext_begin, loc}), "unterminated bit string literal"); BEGIN(INITIAL); }
{xhstart} { ext_begin = loc; BEGIN(xh); }
<xh>{quotestop} { BEGIN(INITIAL); return ctx.ReadHexStringLiteral(Loc({ext_begin, loc})); }
<xh>{quotefail} { yyless(1); BEGIN(INITIAL); return ctx.ReadHexStringLiteral(Loc({ext_begin, proto::Location(loc.offset(), loc.length() - 1)})); }
<xh><<EOF>> { ctx.AddError(Loc({ext_begin, loc}), "unterminated hexadecimal bit string literal"); BEGIN(INITIAL); }
{xqstart} { ext_begin = loc; BEGIN(xq); }
<xq>{quotestop} { BEGIN(INITIAL); return ctx.ReadStringLiteral(Loc({ext_begin, loc})); }
<xq>{quotefail} { yyless(1); BEGIN(INITIAL); return ctx.ReadStringLiteral(Loc({ext_begin, proto::Location(loc.offset(), loc.length() - 1)})); }
<xq>{xqdouble}
<xq>{xqinside}
<xq><<EOF>> { ctx.AddError(Loc({ext_begin, loc}), "unterminated quoted string"); BEGIN(INITIAL); }
{xdstart} { ext_begin = loc; BEGIN(xd); }
<xd>{xddouble}
<xd>{xdinside}
<xd>{xdstop} {
auto xdloc = Loc({ ext_begin, loc });
if (xdloc.length() == 2) { ctx.AddError(xdloc, "zero-length delimited identifier"); }
BEGIN(INITIAL);
return ctx.ReadDoubleQuotedIdentifier(Loc({ext_begin, loc}));
}
<xd><<EOF>> { ctx.AddError(Loc({ ext_begin, loc }), "unterminated delimited identifier"); BEGIN(INITIAL); }
{raw_typecast} { return Parser::make_TYPECAST(loc); }
{raw_dot_dot} { return Parser::make_DOT_DOT(loc); }
{raw_dot} { return Parser::make_DOT(loc); }
{raw_dot_trailing} { return Parser::make_DOT_TRAILING(proto::Location(loc.offset(), 1)); }
{colon_equals} { return Parser::make_COLON_EQUALS(loc); }
{equals_greater} { return Parser::make_EQUALS_GREATER(loc); }
{less_equals} { return Parser::make_LESS_EQUALS(loc); }
{greater_equals} { return Parser::make_GREATER_EQUALS(loc); }
{less_greater} { return Parser::make_NOT_EQUALS(loc); }
{not_equals} { return Parser::make_NOT_EQUALS(loc); }
{raw_comma} { return Parser::make_COMMA(loc); }
{raw_lrb} { return Parser::make_LRB(loc); }
{raw_rrb} { return Parser::make_RRB(loc); }
{raw_lsb} { return Parser::make_LSB(loc); }
{raw_rsb} { return Parser::make_RSB(loc); }
{raw_semicolon} { return Parser::make_SEMICOLON(loc); }
{raw_colon} { return Parser::make_COLON(loc); }
{raw_plus} { return Parser::make_PLUS(loc); }
{raw_minus} { return Parser::make_MINUS(loc); }
{raw_divide} { return Parser::make_DIVIDE(loc); }
{raw_star} { return Parser::make_STAR(loc); }
{raw_modulo} { return Parser::make_MODULO(loc); }
{raw_circumflex} { return Parser::make_CIRCUMFLEX(loc); }
{raw_less_than} { return Parser::make_LESS_THAN(loc); }
{raw_greater_than} { return Parser::make_GREATER_THAN(loc); }
{raw_equals} { return Parser::make_EQUALS(loc); }
{raw_question_mark} { return Parser::make_QUESTION_MARK(loc); }
{raw_dollar} { return Parser::make_DOLLAR(loc); }
{operator} {
/*
* Check for embedded slash-star or dash-dash; those
* are comment starts, so operator must stop there.
* Note that slash-star or dash-dash at the first
* character will match a prior rule, not this one.
*/
int nchars = yyleng;
char* slashstar = strstr(yytext, "/*"); /* slash star */
char* dashdash = strstr(yytext, "--");
if (slashstar && dashdash) {
/* if both appear, take the first one */
if (slashstar > dashdash)
slashstar = dashdash;
} else if (!slashstar) {
slashstar = dashdash;
}
if (slashstar) {
nchars = slashstar - yytext;
}
/*
* For SQL compatibility, '+' and '-' cannot be the
* last char of a multi-char operator unless the operator
* contains chars that are not in SQL operators.
* The idea is to lex '=-' as two operators, but not
* to forbid operator names like '?-' that could not be
* sequences of SQL operators.
*/
while (nchars > 1 && (yytext[nchars - 1] == '+' || yytext[nchars - 1] == '-')) {
int ic;
for (ic = nchars - 2; ic >= 0; ic--) {
if (strchr("~!@#^&|`?%", yytext[ic]))
break;
}
if (ic >= 0)
break; /* found a char that makes it OK */
nchars--; /* else remove the +/-, and check again */
}
/* We don't accept leading ? in any multi-character operators
* except for those in use by hstore, JSON and geometric operators.
*
* We don't accept contained or trailing ? in any
* multi-character operators.
*
* This is necessary in order to support normalized queries without
* spacing between ? as a substition character and a simple operator (e.g. "?=?")
*/
if (yytext[0] == '?' &&
strcmp(yytext, "?|") != 0 && strcmp(yytext, "?&") != 0 &&
strcmp(yytext, "?#") != 0 && strcmp(yytext, "?-") != 0 &&
strcmp(yytext, "?-|") != 0 && strcmp(yytext, "?||") != 0) {
nchars = 1;
}
if (yytext[0] != '?' && strchr(yytext, '?')) {
/* Lex up to just before the ? character */
nchars = strchr(yytext, '?') - yytext;
}
if ((yy_size_t) nchars < yyleng) {
/* Strip the unwanted chars from the token */
yyless(yyleng - nchars);
/*
* If what we have left is only one char, and it's
* one of the characters matching "self", then
* return it as a character token the same way
* that the "self" rule would have.
*/
if (nchars == 1 &&
strchr(",()[].;:+-*/%^<>=?", yytext[0])) {
return matchSpecialCharacter(yytext[0], loc);
}
/*
* Likewise, if what we have left is two chars, and
* those match the tokens ">=", "<=", "=>", "<>" or
* "!=", then we must return the appropriate token
* rather than the generic Op.
*/
if (nchars == 2) {
if (yytext[0] == '=' && yytext[1] == '>')
return Parser::make_EQUALS_GREATER(loc);
if (yytext[0] == '>' && yytext[1] == '=')
return Parser::make_GREATER_EQUALS(loc);
if (yytext[0] == '<' && yytext[1] == '=')
return Parser::make_LESS_EQUALS(loc);
if (yytext[0] == '<' && yytext[1] == '>')
return Parser::make_NOT_EQUALS(loc);
if (yytext[0] == '!' && yytext[1] == '=')
return Parser::make_NOT_EQUALS(loc);
}
}
/*
* Complain if operator is too long. Unlike the case
* for identifiers, we make this an error not a notice-
* and-truncate, because the odds are we are looking at
* a syntactic mistake anyway. NAMEDDATALEN
*/
if (nchars >= 64)
ctx.AddError(loc, "operator too long: operators longer than 64 bytes are not supported");
return Parser::make_Op(loc);
}
{param} { return ctx.ReadParameter(loc); }
{param2} { return ctx.ReadParameter(loc); }
{integer} { return ctx.ReadInteger(loc); }
{decimal} { return Parser::make_FCONST(loc); }
{decimalfail} { yyless(yyleng - 2); return Parser::make_FCONST(loc); }
{real} { return Parser::make_FCONST(loc); }
{realfail1} { yyless(yyleng - 1); return Parser::make_FCONST(loc); }
{realfail2} { yyless(yyleng - 2); return Parser::make_FCONST(loc); }
{identifier} { return ctx.ReadIdentifier(loc); }
{other} { return Parser::make_RAW_CHAR(loc); }
<<EOF>> { return Parser::make_EOF(loc); }
%%
namespace sqlynx {
namespace parser {
Scanner::Scanner(const rope::Rope& text, uint32_t external_id): output(std::make_shared<ScannedScript>(text, external_id)) {
// Write end-of-buffer markers
input_data = output->text_buffer;
assert(input_data.size() >= 2);
input_data[input_data.size() - 2] = YY_END_OF_BUFFER_CHAR;
input_data[input_data.size() - 1] = YY_END_OF_BUFFER_CHAR;
// Get scanner and buffer pointers
yyguts_t* yyg;
yy_buffer_state* yyb;
{
void* p = scanner_state_mem.data();
size_t n = scanner_state_mem.size();
scanner_state_ptr = std::align(alignof(yyguts_t), sizeof(yyguts_t), p, n);
yyg = reinterpret_cast<yyguts_t*>(scanner_state_ptr);
p = scanner_buffer_state_mem.data();
n = scanner_buffer_state_mem.size();
auto b = std::align(alignof(yy_buffer_state), sizeof(yy_buffer_state), p, n);
yyb = reinterpret_cast<yy_buffer_state*>(b);
}
// Configure the initial scanner state
// As done by: yylex_init_extra, yy_init_globals (minus yyalloc)
yyg->yy_buffer_stack = reinterpret_cast<yy_buffer_state**>(scanner_buffer_stack.data());
yyg->yy_buffer_stack_top = 0;
yyg->yy_buffer_stack_max = scanner_buffer_stack.size();
yyg->yy_c_buf_p = nullptr;
yyg->yy_init = 0;
yyg->yy_start = 0;
yyg->yy_start_stack_ptr = 0;
yyg->yy_start_stack_depth = 0;
yyg->yy_start_stack = NULL;
// Configure the initial buffer state
// As done by: yy_scan_buffer (minus yyalloc)
yyb->yy_buf_size = input_data.size() - 2; /* "- 2" to take care of EOB's */
yyb->yy_buf_pos = yyb->yy_ch_buf = input_data.data();
yyb->yy_is_our_buffer = 0;
yyb->yy_input_file = 0;
yyb->yy_n_chars = yyb->yy_buf_size;
yyb->yy_is_interactive = 0;
yyb->yy_at_bol = 1;
yyb->yy_fill_buffer = 0; // This will bypass any refill logic in flex, i.e. yy_get_next_buffer
yyb->yy_buffer_status = YY_BUFFER_NEW;
// Set the buffer
sqlynx_yy_switch_to_buffer(yyb, yyg);
// Set scanner ref
sqlynx_yyset_extra(this, yyg);
}
}
}