-/* Generated by re2c 0.16 on Sat Mar 4 23:19:37 2017 */
+/* Generated by re2c 0.16 on Sun Mar 5 10:37:44 2017 */
#line 1 "../src/ast/lex.re"
#include "src/util/c99_stdint.h"
#include <stddef.h>
}
}
++YYCURSOR;
-#line 149 "../src/ast/lex.re"
+#line 148 "../src/ast/lex.re"
{
if (cur == eof) {
if (opts->target == opt_t::CODE) {
yy4:
++YYCURSOR;
yy5:
-#line 170 "../src/ast/lex.re"
+#line 169 "../src/ast/lex.re"
{ goto echo; }
#line 130 "src/ast/lex.cc"
yy6:
}
if (yych == '#') goto yy14;
yy7:
-#line 164 "../src/ast/lex.re"
+#line 163 "../src/ast/lex.re"
{
cline++;
pos = cur;
yy66:
++YYCURSOR;
YYCURSOR = YYCTXMARKER;
-#line 159 "../src/ast/lex.re"
+#line 158 "../src/ast/lex.re"
{
set_sourceline();
goto echo;
goto yy13;
yy89:
++YYCURSOR;
-#line 112 "../src/ast/lex.re"
+#line 111 "../src/ast/lex.re"
{
if (opts->target == opt_t::CODE) {
out.wraw(tok, start)
if (opts->target == opt_t::CODE) {
out.wraw(tok, start);
}
- reuse();
return Reuse;
}
-#line 558 "src/ast/lex.cc"
+#line 557 "src/ast/lex.cc"
yy96:
yych = (YYCTYPE)*++YYCURSOR;
if (yych == 'r') goto yy102;
goto yy13;
yy99:
++YYCURSOR;
-#line 141 "../src/ast/lex.re"
+#line 140 "../src/ast/lex.re"
{
if (opts->target == opt_t::CODE) {
out.wraw(tok, start);
lex_tags();
goto echo;
}
-#line 581 "src/ast/lex.cc"
+#line 580 "src/ast/lex.cc"
yy101:
yych = (YYCTYPE)*++YYCURSOR;
if (yych == 'c') goto yy106;
opts.reset_mapCodeName ();
return Rules;
}
-#line 607 "src/ast/lex.cc"
+#line 606 "src/ast/lex.cc"
yy106:
++YYCURSOR;
-#line 130 "../src/ast/lex.re"
+#line 129 "../src/ast/lex.re"
{
if (opts->target == opt_t::CODE) {
out.wraw(tok, start)
lex_end_of_comment();
goto echo;
}
-#line 621 "src/ast/lex.cc"
+#line 620 "src/ast/lex.cc"
yy108:
yych = (YYCTYPE)*++YYCURSOR;
if (yych == '2') goto yy111;
goto yy13;
yy109:
++YYCURSOR;
-#line 104 "../src/ast/lex.re"
+#line 103 "../src/ast/lex.re"
{
if (opts->target == opt_t::CODE) {
out.wraw(tok, start);
lex_end_of_comment();
goto echo;
}
-#line 636 "src/ast/lex.cc"
+#line 635 "src/ast/lex.cc"
yy111:
yych = (YYCTYPE)*++YYCURSOR;
if (yych != 'c') goto yy13;
++YYCURSOR;
-#line 121 "../src/ast/lex.re"
+#line 120 "../src/ast/lex.re"
{
if (opts->target == opt_t::CODE) {
out.wraw(tok, start)
lex_end_of_comment();
goto echo;
}
-#line 650 "src/ast/lex.cc"
+#line 649 "src/ast/lex.cc"
}
-#line 171 "../src/ast/lex.re"
+#line 170 "../src/ast/lex.re"
}
{
uint32_t ignored = 0;
for (;;) {
-#line 660 "src/ast/lex.cc"
+#line 659 "src/ast/lex.cc"
{
YYCTYPE yych;
if ((YYLIMIT - YYCURSOR) < 2) YYFILL(2);
}
yy116:
++YYCURSOR;
-#line 178 "../src/ast/lex.re"
+#line 177 "../src/ast/lex.re"
{ fatal("expected end of block"); }
-#line 678 "src/ast/lex.cc"
+#line 677 "src/ast/lex.cc"
yy118:
++YYCURSOR;
yy119:
-#line 180 "../src/ast/lex.re"
+#line 179 "../src/ast/lex.re"
{ continue; }
-#line 684 "src/ast/lex.cc"
+#line 683 "src/ast/lex.cc"
yy120:
++YYCURSOR;
-#line 181 "../src/ast/lex.re"
+#line 180 "../src/ast/lex.re"
{ ++ignored; continue; }
-#line 689 "src/ast/lex.cc"
+#line 688 "src/ast/lex.cc"
yy122:
yych = (YYCTYPE)*++YYCURSOR;
if (yych == '\n') goto yy120;
yych = (YYCTYPE)*++YYCURSOR;
if (yych != '/') goto yy119;
++YYCURSOR;
-#line 182 "../src/ast/lex.re"
+#line 181 "../src/ast/lex.re"
{
if (ignored > 0) {
cline += ignored;
tok = pos = cur;
return;
}
-#line 707 "src/ast/lex.cc"
+#line 706 "src/ast/lex.cc"
}
-#line 190 "../src/ast/lex.re"
+#line 189 "../src/ast/lex.re"
}
}
{
std::string fmt, sep;
for (;;) {
-#line 717 "src/ast/lex.cc"
+#line 716 "src/ast/lex.cc"
{
YYCTYPE yych;
static const unsigned char yybm[] = {
}
++YYCURSOR;
yy129:
-#line 197 "../src/ast/lex.re"
+#line 196 "../src/ast/lex.re"
{ fatal("unrecognized configuration"); }
-#line 777 "src/ast/lex.cc"
+#line 776 "src/ast/lex.cc"
yy130:
++YYCURSOR;
if (YYLIMIT <= YYCURSOR) YYFILL(1);
if (yybm[0+yych] & 128) {
goto yy130;
}
-#line 202 "../src/ast/lex.re"
+#line 201 "../src/ast/lex.re"
{ continue; }
-#line 787 "src/ast/lex.cc"
+#line 786 "src/ast/lex.cc"
yy133:
++YYCURSOR;
-#line 203 "../src/ast/lex.re"
+#line 202 "../src/ast/lex.re"
{ ++cline; continue; }
-#line 792 "src/ast/lex.cc"
+#line 791 "src/ast/lex.cc"
yy135:
yych = (YYCTYPE)*++YYCURSOR;
if (yych == '\n') goto yy133;
goto yy129;
yy139:
++YYCURSOR;
-#line 204 "../src/ast/lex.re"
+#line 203 "../src/ast/lex.re"
{
if (opts->target == opt_t::CODE) {
out.wdelay_tags(opts->topIndent,
tok = pos = cur;
return;
}
-#line 820 "src/ast/lex.cc"
+#line 819 "src/ast/lex.cc"
yy141:
yych = (YYCTYPE)*++YYCURSOR;
if (yych == 'r') goto yy144;
goto yy142;
yy150:
++YYCURSOR;
-#line 199 "../src/ast/lex.re"
+#line 198 "../src/ast/lex.re"
{ fmt = lex_conf_string(); continue; }
-#line 859 "src/ast/lex.cc"
+#line 858 "src/ast/lex.cc"
yy152:
yych = (YYCTYPE)*++YYCURSOR;
if (yych != 't') goto yy142;
yych = (YYCTYPE)*++YYCURSOR;
if (yych != 'r') goto yy142;
++YYCURSOR;
-#line 200 "../src/ast/lex.re"
+#line 199 "../src/ast/lex.re"
{ sep = lex_conf_string(); continue; }
-#line 870 "src/ast/lex.cc"
+#line 869 "src/ast/lex.cc"
}
-#line 212 "../src/ast/lex.re"
+#line 211 "../src/ast/lex.re"
}
}
start:
-#line 890 "src/ast/lex.cc"
+#line 889 "src/ast/lex.cc"
{
YYCTYPE yych;
unsigned int yyaccept = 0;
yy159:
++YYCURSOR;
yy160:
-#line 380 "../src/ast/lex.re"
+#line 379 "../src/ast/lex.re"
{
fatalf("unexpected character: '%c'", *tok);
goto scan;
}
-#line 992 "src/ast/lex.cc"
+#line 991 "src/ast/lex.cc"
yy161:
++YYCURSOR;
if (YYLIMIT <= YYCURSOR) YYFILL(1);
if (yybm[0+yych] & 16) {
goto yy161;
}
-#line 364 "../src/ast/lex.re"
+#line 363 "../src/ast/lex.re"
{
goto scan;
}
-#line 1004 "src/ast/lex.cc"
+#line 1003 "src/ast/lex.cc"
yy164:
yyaccept = 0;
yych = (YYCTYPE)*(YYMARKER = ++YYCURSOR);
if (yych == '#') goto yy190;
}
yy165:
-#line 373 "../src/ast/lex.re"
+#line 372 "../src/ast/lex.re"
{
if (cur == eof) return 0;
pos = cur;
cline++;
goto scan;
}
-#line 1022 "src/ast/lex.cc"
+#line 1021 "src/ast/lex.cc"
yy166:
yych = (YYCTYPE)*++YYCURSOR;
if (yych == '\n') goto yy164;
yy167:
++YYCURSOR;
yy168:
-#line 274 "../src/ast/lex.re"
+#line 273 "../src/ast/lex.re"
{ return *tok; }
-#line 1032 "src/ast/lex.cc"
+#line 1031 "src/ast/lex.cc"
yy169:
++YYCURSOR;
-#line 261 "../src/ast/lex.re"
+#line 260 "../src/ast/lex.re"
{ yylval.regexp = lex_str('"', opts->bCaseInsensitive || opts->bCaseInverted); return TOKEN_REGEXP; }
-#line 1037 "src/ast/lex.cc"
+#line 1036 "src/ast/lex.cc"
yy171:
yych = (YYCTYPE)*++YYCURSOR;
if (yych == '}') goto yy192;
goto yy160;
yy172:
++YYCURSOR;
-#line 260 "../src/ast/lex.re"
+#line 259 "../src/ast/lex.re"
{ yylval.regexp = lex_str('\'', opts->bCaseInsensitive || !opts->bCaseInverted); return TOKEN_REGEXP; }
-#line 1046 "src/ast/lex.cc"
+#line 1045 "src/ast/lex.cc"
yy174:
yych = (YYCTYPE)*++YYCURSOR;
if (yych == '/') goto yy192;
goto yy168;
yy175:
++YYCURSOR;
-#line 359 "../src/ast/lex.re"
+#line 358 "../src/ast/lex.re"
{
yylval.regexp = RegExp::make_dot(cline, get_column());
return TOKEN_REGEXP;
}
-#line 1058 "src/ast/lex.cc"
+#line 1057 "src/ast/lex.cc"
yy177:
yych = (YYCTYPE)*++YYCURSOR;
if (yych == '*') goto yy194;
yy182:
yych = (YYCTYPE)*++YYCURSOR;
if (yych == '^') goto yy209;
-#line 262 "../src/ast/lex.re"
+#line 261 "../src/ast/lex.re"
{ yylval.regexp = lex_cls(false); return TOKEN_REGEXP; }
-#line 1120 "src/ast/lex.cc"
+#line 1119 "src/ast/lex.cc"
yy184:
yych = (YYCTYPE)*++YYCURSOR;
if (yych == 'e') goto yy211;
}
}
yy186:
-#line 229 "../src/ast/lex.re"
+#line 228 "../src/ast/lex.re"
{
depth = 1;
code_line = cline;
goto code;
}
-#line 1149 "src/ast/lex.cc"
+#line 1148 "src/ast/lex.cc"
yy187:
++YYCURSOR;
if (YYLIMIT <= YYCURSOR) YYFILL(1);
}
yy192:
++YYCURSOR;
-#line 255 "../src/ast/lex.re"
+#line 254 "../src/ast/lex.re"
{
tok = cur;
return 0;
}
-#line 1190 "src/ast/lex.cc"
+#line 1189 "src/ast/lex.cc"
yy194:
++YYCURSOR;
-#line 249 "../src/ast/lex.re"
+#line 248 "../src/ast/lex.re"
{
depth = 1;
goto comment;
}
-#line 1198 "src/ast/lex.cc"
+#line 1197 "src/ast/lex.cc"
yy196:
++YYCURSOR;
-#line 246 "../src/ast/lex.re"
+#line 245 "../src/ast/lex.re"
{
goto nextLine;
}
-#line 1205 "src/ast/lex.cc"
+#line 1204 "src/ast/lex.cc"
yy198:
++YYCURSOR;
YYCURSOR -= 1;
-#line 339 "../src/ast/lex.re"
+#line 338 "../src/ast/lex.re"
{
if (!opts->FFlag) {
yylval.str = new std::string (tok, tok_len());
return TOKEN_REGEXP;
}
}
-#line 1229 "src/ast/lex.cc"
+#line 1228 "src/ast/lex.cc"
yy200:
++YYCURSOR;
if (YYLIMIT <= YYCURSOR) YYFILL(1);
yy202:
++YYCURSOR;
YYCURSOR = YYCTXMARKER;
-#line 334 "../src/ast/lex.re"
+#line 333 "../src/ast/lex.re"
{
yylval.str = new std::string (tok, tok_len ());
return TOKEN_ID;
}
-#line 1254 "src/ast/lex.cc"
+#line 1253 "src/ast/lex.cc"
yy204:
yych = (YYCTYPE)*++YYCURSOR;
if (yych == '>') goto yy221;
-#line 239 "../src/ast/lex.re"
+#line 238 "../src/ast/lex.re"
{
tok += 2; /* skip ":=" */
depth = 0;
code_line = cline;
goto code;
}
-#line 1265 "src/ast/lex.cc"
+#line 1264 "src/ast/lex.cc"
yy206:
++YYCURSOR;
if (YYLIMIT <= YYCURSOR) YYFILL(1);
}
}
yy208:
-#line 265 "../src/ast/lex.re"
+#line 264 "../src/ast/lex.re"
{
if (!opts->tags) {
fatal("tags are only allowed with '-T, --tags' option");
yylval.regexp = RegExp::make_tag(cline, get_column(), name);
return TOKEN_REGEXP;
}
-#line 1292 "src/ast/lex.cc"
+#line 1291 "src/ast/lex.cc"
yy209:
++YYCURSOR;
-#line 263 "../src/ast/lex.re"
+#line 262 "../src/ast/lex.re"
{ yylval.regexp = lex_cls(true); return TOKEN_REGEXP; }
-#line 1297 "src/ast/lex.cc"
+#line 1296 "src/ast/lex.cc"
yy211:
yych = (YYCTYPE)*++YYCURSOR;
if (yych == '2') goto yy223;
yy212:
++YYCURSOR;
yy213:
-#line 307 "../src/ast/lex.re"
+#line 306 "../src/ast/lex.re"
{
fatal("illegal closure form, use '{n}', '{n,}', '{n,m}' where n and m are numbers");
}
-#line 1309 "src/ast/lex.cc"
+#line 1308 "src/ast/lex.cc"
yy214:
++YYCURSOR;
if ((YYLIMIT - YYCURSOR) < 2) YYFILL(2);
yy219:
++YYCURSOR;
YYCURSOR = YYCTXMARKER;
-#line 321 "../src/ast/lex.re"
+#line 320 "../src/ast/lex.re"
{
yylval.str = new std::string (tok, tok_len ());
if (opts->FFlag)
return TOKEN_ID;
}
}
-#line 1375 "src/ast/lex.cc"
+#line 1374 "src/ast/lex.cc"
yy221:
++YYCURSOR;
YYCURSOR -= 2;
-#line 235 "../src/ast/lex.re"
+#line 234 "../src/ast/lex.re"
{
return *tok;
}
-#line 1383 "src/ast/lex.cc"
+#line 1382 "src/ast/lex.cc"
yy223:
yych = (YYCTYPE)*++YYCURSOR;
if (yych == 'c') goto yy230;
goto yy213;
yy225:
++YYCURSOR;
-#line 276 "../src/ast/lex.re"
+#line 275 "../src/ast/lex.re"
{
if (!s_to_u32_unsafe (tok + 1, cur - 1, yylval.extop.min))
{
yylval.extop.max = yylval.extop.min;
return TOKEN_CLOSESIZE;
}
-#line 1406 "src/ast/lex.cc"
+#line 1405 "src/ast/lex.cc"
yy227:
++YYCURSOR;
-#line 311 "../src/ast/lex.re"
+#line 310 "../src/ast/lex.re"
{
if (!opts->FFlag) {
fatal("curly braces for names only allowed with -F switch");
yylval.str = new std::string (tok + 1, tok_len () - 2); // -2 to omit braces
return TOKEN_ID;
}
-#line 1417 "src/ast/lex.cc"
+#line 1416 "src/ast/lex.cc"
yy229:
yych = (YYCTYPE)*++YYCURSOR;
if (yych == 'n') goto yy235;
goto yy189;
yy233:
++YYCURSOR;
-#line 298 "../src/ast/lex.re"
+#line 297 "../src/ast/lex.re"
{
if (!s_to_u32_unsafe (tok + 1, cur - 2, yylval.extop.min))
{
yylval.extop.max = std::numeric_limits<uint32_t>::max();
return TOKEN_CLOSESIZE;
}
-#line 1445 "src/ast/lex.cc"
+#line 1444 "src/ast/lex.cc"
yy235:
yych = (YYCTYPE)*++YYCURSOR;
if (yych == 'e') goto yy240;
goto yy189;
yy236:
++YYCURSOR;
-#line 319 "../src/ast/lex.re"
+#line 318 "../src/ast/lex.re"
{ lex_conf (); return TOKEN_CONF; }
-#line 1454 "src/ast/lex.cc"
+#line 1453 "src/ast/lex.cc"
yy238:
++YYCURSOR;
-#line 285 "../src/ast/lex.re"
+#line 284 "../src/ast/lex.re"
{
const char * p = strchr (tok, ',');
if (!s_to_u32_unsafe (tok + 1, p, yylval.extop.min))
}
return TOKEN_CLOSESIZE;
}
-#line 1470 "src/ast/lex.cc"
+#line 1469 "src/ast/lex.cc"
yy240:
yych = (YYCTYPE)*++YYCURSOR;
if (yych <= '0') goto yy242;
yy247:
++YYCURSOR;
YYCURSOR = YYCTXMARKER;
-#line 368 "../src/ast/lex.re"
+#line 367 "../src/ast/lex.re"
{
set_sourceline ();
goto scan;
}
-#line 1531 "src/ast/lex.cc"
+#line 1530 "src/ast/lex.cc"
yy249:
yych = (YYCTYPE)*++YYCURSOR;
if (yych == '\n') goto yy247;
if (yych == '\n') goto yy189;
goto yy250;
}
-#line 384 "../src/ast/lex.re"
+#line 383 "../src/ast/lex.re"
flex_name:
-#line 1561 "src/ast/lex.cc"
+#line 1560 "src/ast/lex.cc"
{
YYCTYPE yych;
if ((YYLIMIT - YYCURSOR) < 2) YYFILL(2);
if (yych == '\r') goto yy260;
++YYCURSOR;
yy257:
-#line 395 "../src/ast/lex.re"
+#line 394 "../src/ast/lex.re"
{
YYCURSOR = tok;
goto start;
}
-#line 1575 "src/ast/lex.cc"
+#line 1574 "src/ast/lex.cc"
yy258:
++YYCURSOR;
-#line 389 "../src/ast/lex.re"
+#line 388 "../src/ast/lex.re"
{
YYCURSOR = tok;
lexer_state = LEX_NORMAL;
return TOKEN_FID_END;
}
-#line 1584 "src/ast/lex.cc"
+#line 1583 "src/ast/lex.cc"
yy260:
yych = (YYCTYPE)*++YYCURSOR;
if (yych == '\n') goto yy258;
goto yy257;
}
-#line 399 "../src/ast/lex.re"
+#line 398 "../src/ast/lex.re"
code:
-#line 1595 "src/ast/lex.cc"
+#line 1594 "src/ast/lex.cc"
{
YYCTYPE yych;
unsigned int yyaccept = 0;
}
yy263:
++YYCURSOR;
-#line 462 "../src/ast/lex.re"
+#line 461 "../src/ast/lex.re"
{
if (cur == eof)
{
}
goto code;
}
-#line 1668 "src/ast/lex.cc"
+#line 1667 "src/ast/lex.cc"
yy265:
++YYCURSOR;
yy266:
-#line 476 "../src/ast/lex.re"
+#line 475 "../src/ast/lex.re"
{
goto code;
}
-#line 1676 "src/ast/lex.cc"
+#line 1675 "src/ast/lex.cc"
yy267:
yyaccept = 0;
yych = (YYCTYPE)*(YYMARKER = ++YYCURSOR);
}
}
yy268:
-#line 443 "../src/ast/lex.re"
+#line 442 "../src/ast/lex.re"
{
if (depth == 0)
{
cline++;
goto code;
}
-#line 1715 "src/ast/lex.cc"
+#line 1714 "src/ast/lex.cc"
yy269:
yyaccept = 1;
yych = (YYCTYPE)*(YYMARKER = ++YYCURSOR);
goto yy287;
yy271:
++YYCURSOR;
-#line 415 "../src/ast/lex.re"
+#line 414 "../src/ast/lex.re"
{
if (depth == 0)
{
}
goto code;
}
-#line 1740 "src/ast/lex.cc"
+#line 1739 "src/ast/lex.cc"
yy273:
++YYCURSOR;
-#line 403 "../src/ast/lex.re"
+#line 402 "../src/ast/lex.re"
{
if (depth == 0)
{
}
goto code;
}
-#line 1756 "src/ast/lex.cc"
+#line 1755 "src/ast/lex.cc"
yy275:
yyaccept = 2;
yych = (YYCTYPE)*(YYMARKER = ++YYCURSOR);
}
yy276:
YYCURSOR -= 1;
-#line 430 "../src/ast/lex.re"
+#line 429 "../src/ast/lex.re"
{
if (depth == 0)
{
cline++;
goto code;
}
-#line 1782 "src/ast/lex.cc"
+#line 1781 "src/ast/lex.cc"
yy277:
++YYCURSOR;
goto yy276;
if (yych >= '#') goto yy285;
yy283:
++YYCURSOR;
-#line 473 "../src/ast/lex.re"
+#line 472 "../src/ast/lex.re"
{
goto code;
}
-#line 1821 "src/ast/lex.cc"
+#line 1820 "src/ast/lex.cc"
yy285:
++YYCURSOR;
if (YYLIMIT <= YYCURSOR) YYFILL(1);
yy301:
++YYCURSOR;
YYCURSOR = YYCTXMARKER;
-#line 426 "../src/ast/lex.re"
+#line 425 "../src/ast/lex.re"
{
set_sourceline ();
goto code;
}
-#line 1916 "src/ast/lex.cc"
+#line 1915 "src/ast/lex.cc"
yy303:
yych = (YYCTYPE)*++YYCURSOR;
if (yych == '\n') goto yy301;
if (yych == '\n') goto yy280;
goto yy304;
}
-#line 479 "../src/ast/lex.re"
+#line 478 "../src/ast/lex.re"
comment:
-#line 1950 "src/ast/lex.cc"
+#line 1949 "src/ast/lex.cc"
{
YYCTYPE yych;
static const unsigned char yybm[] = {
}
++YYCURSOR;
yy311:
-#line 511 "../src/ast/lex.re"
+#line 510 "../src/ast/lex.re"
{
if (cur == eof)
{
}
goto comment;
}
-#line 2005 "src/ast/lex.cc"
+#line 2004 "src/ast/lex.cc"
yy312:
yych = (YYCTYPE)*(YYMARKER = ++YYCURSOR);
if (yybm[0+yych] & 32) {
}
if (yych == '#') goto yy319;
yy313:
-#line 502 "../src/ast/lex.re"
+#line 501 "../src/ast/lex.re"
{
if (cur == eof)
{
cline++;
goto comment;
}
-#line 2023 "src/ast/lex.cc"
+#line 2022 "src/ast/lex.cc"
yy314:
yych = (YYCTYPE)*++YYCURSOR;
if (yych == '/') goto yy321;
}
yy321:
++YYCURSOR;
-#line 483 "../src/ast/lex.re"
+#line 482 "../src/ast/lex.re"
{
if (--depth == 0)
{
goto comment;
}
}
-#line 2068 "src/ast/lex.cc"
+#line 2067 "src/ast/lex.cc"
yy323:
++YYCURSOR;
-#line 493 "../src/ast/lex.re"
+#line 492 "../src/ast/lex.re"
{
++depth;
fatal("ambiguous /* found");
goto comment;
}
-#line 2077 "src/ast/lex.cc"
+#line 2076 "src/ast/lex.cc"
yy325:
yych = (YYCTYPE)*++YYCURSOR;
if (yych != 'i') goto yy318;
yy335:
++YYCURSOR;
YYCURSOR = YYCTXMARKER;
-#line 498 "../src/ast/lex.re"
+#line 497 "../src/ast/lex.re"
{
set_sourceline ();
goto comment;
}
-#line 2139 "src/ast/lex.cc"
+#line 2138 "src/ast/lex.cc"
yy337:
yych = (YYCTYPE)*++YYCURSOR;
if (yych == '\n') goto yy335;
if (yych == '\n') goto yy318;
goto yy338;
}
-#line 518 "../src/ast/lex.re"
+#line 517 "../src/ast/lex.re"
nextLine:
-#line 2169 "src/ast/lex.cc"
+#line 2168 "src/ast/lex.cc"
{
YYCTYPE yych;
if (YYLIMIT <= YYCURSOR) YYFILL(1);
yych = (YYCTYPE)*YYCURSOR;
if (yych == '\n') goto yy346;
++YYCURSOR;
-#line 529 "../src/ast/lex.re"
+#line 528 "../src/ast/lex.re"
{ if(cur == eof) {
return 0;
}
goto nextLine;
}
-#line 2182 "src/ast/lex.cc"
+#line 2181 "src/ast/lex.cc"
yy346:
++YYCURSOR;
-#line 522 "../src/ast/lex.re"
+#line 521 "../src/ast/lex.re"
{ if(cur == eof) {
return 0;
}
cline++;
goto scan;
}
-#line 2193 "src/ast/lex.cc"
+#line 2192 "src/ast/lex.cc"
}
-#line 534 "../src/ast/lex.re"
+#line 533 "../src/ast/lex.re"
}
uint32_t u, l;
fst:
-#line 2220 "src/ast/lex.cc"
+#line 2219 "src/ast/lex.cc"
{
YYCTYPE yych;
if (YYLIMIT <= YYCURSOR) YYFILL(1);
yych = (YYCTYPE)*YYCURSOR;
if (yych == ']') goto yy351;
-#line 559 "../src/ast/lex.re"
+#line 558 "../src/ast/lex.re"
{ l = lex_cls_chr(); goto snd; }
-#line 2228 "src/ast/lex.cc"
+#line 2227 "src/ast/lex.cc"
yy351:
++YYCURSOR;
-#line 558 "../src/ast/lex.re"
+#line 557 "../src/ast/lex.re"
{ goto end; }
-#line 2233 "src/ast/lex.cc"
+#line 2232 "src/ast/lex.cc"
}
-#line 560 "../src/ast/lex.re"
+#line 559 "../src/ast/lex.re"
snd:
-#line 2239 "src/ast/lex.cc"
+#line 2238 "src/ast/lex.cc"
{
YYCTYPE yych;
if ((YYLIMIT - YYCURSOR) < 2) YYFILL(2);
yych = (YYCTYPE)*(YYMARKER = YYCURSOR);
if (yych == '-') goto yy356;
yy355:
-#line 563 "../src/ast/lex.re"
+#line 562 "../src/ast/lex.re"
{ u = l; goto add; }
-#line 2248 "src/ast/lex.cc"
+#line 2247 "src/ast/lex.cc"
yy356:
yych = (YYCTYPE)*++YYCURSOR;
if (yych != ']') goto yy358;
yy358:
++YYCURSOR;
YYCURSOR -= 1;
-#line 564 "../src/ast/lex.re"
+#line 563 "../src/ast/lex.re"
{
u = lex_cls_chr();
if (l > u) {
}
goto add;
}
-#line 2266 "src/ast/lex.cc"
+#line 2265 "src/ast/lex.cc"
}
-#line 572 "../src/ast/lex.re"
+#line 571 "../src/ast/lex.re"
add:
if (!(s = opts->encoding.encodeRange(l, u))) {
{
tok = cur;
-#line 2287 "src/ast/lex.cc"
+#line 2286 "src/ast/lex.cc"
{
YYCTYPE yych;
unsigned int yyaccept = 0;
if (yych == '\n') goto yy364;
if (yych == '\\') goto yy366;
++YYCURSOR;
-#line 595 "../src/ast/lex.re"
+#line 594 "../src/ast/lex.re"
{ return static_cast<uint8_t>(tok[0]); }
-#line 2298 "src/ast/lex.cc"
+#line 2297 "src/ast/lex.cc"
yy364:
++YYCURSOR;
-#line 590 "../src/ast/lex.re"
+#line 589 "../src/ast/lex.re"
{ fatal (get_column() - tchar, "syntax error"); }
-#line 2303 "src/ast/lex.cc"
+#line 2302 "src/ast/lex.cc"
yy366:
yych = (YYCTYPE)*++YYCURSOR;
if (yych <= '`') {
}
}
}
-#line 593 "../src/ast/lex.re"
+#line 592 "../src/ast/lex.re"
{ fatal (get_column() - tchar, "syntax error in escape sequence"); }
-#line 2354 "src/ast/lex.cc"
+#line 2353 "src/ast/lex.cc"
yy368:
++YYCURSOR;
-#line 608 "../src/ast/lex.re"
+#line 607 "../src/ast/lex.re"
{
warn.useless_escape(cline, get_column(), tok[1]);
return static_cast<uint8_t>(tok[1]);
}
-#line 2362 "src/ast/lex.cc"
+#line 2361 "src/ast/lex.cc"
yy370:
++YYCURSOR;
-#line 606 "../src/ast/lex.re"
+#line 605 "../src/ast/lex.re"
{ return static_cast<uint8_t>('-'); }
-#line 2367 "src/ast/lex.cc"
+#line 2366 "src/ast/lex.cc"
yy372:
yyaccept = 0;
yych = (YYCTYPE)*(YYMARKER = ++YYCURSOR);
if (yych <= '/') goto yy373;
if (yych <= '7') goto yy397;
yy373:
-#line 592 "../src/ast/lex.re"
+#line 591 "../src/ast/lex.re"
{ fatal (get_column() - tchar, "syntax error in octal escape sequence"); }
-#line 2376 "src/ast/lex.cc"
+#line 2375 "src/ast/lex.cc"
yy374:
++YYCURSOR;
goto yy373;
if (yych <= 'f') goto yy399;
}
yy376:
-#line 591 "../src/ast/lex.re"
+#line 590 "../src/ast/lex.re"
{ fatal (get_column() - tchar, "syntax error in hexadecimal escape sequence"); }
-#line 2394 "src/ast/lex.cc"
+#line 2393 "src/ast/lex.cc"
yy377:
yyaccept = 1;
yych = (YYCTYPE)*(YYMARKER = ++YYCURSOR);
}
yy378:
++YYCURSOR;
-#line 605 "../src/ast/lex.re"
+#line 604 "../src/ast/lex.re"
{ return static_cast<uint8_t>('\\'); }
-#line 2412 "src/ast/lex.cc"
+#line 2411 "src/ast/lex.cc"
yy380:
++YYCURSOR;
-#line 607 "../src/ast/lex.re"
+#line 606 "../src/ast/lex.re"
{ return static_cast<uint8_t>(']'); }
-#line 2417 "src/ast/lex.cc"
+#line 2416 "src/ast/lex.cc"
yy382:
++YYCURSOR;
-#line 598 "../src/ast/lex.re"
+#line 597 "../src/ast/lex.re"
{ return static_cast<uint8_t>('\a'); }
-#line 2422 "src/ast/lex.cc"
+#line 2421 "src/ast/lex.cc"
yy384:
++YYCURSOR;
-#line 599 "../src/ast/lex.re"
+#line 598 "../src/ast/lex.re"
{ return static_cast<uint8_t>('\b'); }
-#line 2427 "src/ast/lex.cc"
+#line 2426 "src/ast/lex.cc"
yy386:
++YYCURSOR;
-#line 600 "../src/ast/lex.re"
+#line 599 "../src/ast/lex.re"
{ return static_cast<uint8_t>('\f'); }
-#line 2432 "src/ast/lex.cc"
+#line 2431 "src/ast/lex.cc"
yy388:
++YYCURSOR;
-#line 601 "../src/ast/lex.re"
+#line 600 "../src/ast/lex.re"
{ return static_cast<uint8_t>('\n'); }
-#line 2437 "src/ast/lex.cc"
+#line 2436 "src/ast/lex.cc"
yy390:
++YYCURSOR;
-#line 602 "../src/ast/lex.re"
+#line 601 "../src/ast/lex.re"
{ return static_cast<uint8_t>('\r'); }
-#line 2442 "src/ast/lex.cc"
+#line 2441 "src/ast/lex.cc"
yy392:
++YYCURSOR;
-#line 603 "../src/ast/lex.re"
+#line 602 "../src/ast/lex.re"
{ return static_cast<uint8_t>('\t'); }
-#line 2447 "src/ast/lex.cc"
+#line 2446 "src/ast/lex.cc"
yy394:
++YYCURSOR;
-#line 604 "../src/ast/lex.re"
+#line 603 "../src/ast/lex.re"
{ return static_cast<uint8_t>('\v'); }
-#line 2452 "src/ast/lex.cc"
+#line 2451 "src/ast/lex.cc"
yy396:
yyaccept = 1;
yych = (YYCTYPE)*(YYMARKER = ++YYCURSOR);
}
yy402:
++YYCURSOR;
-#line 597 "../src/ast/lex.re"
+#line 596 "../src/ast/lex.re"
{ return unesc_oct(tok, cur); }
-#line 2517 "src/ast/lex.cc"
+#line 2516 "src/ast/lex.cc"
yy404:
yych = (YYCTYPE)*++YYCURSOR;
if (yych <= '@') {
}
yy406:
++YYCURSOR;
-#line 596 "../src/ast/lex.re"
+#line 595 "../src/ast/lex.re"
{ return unesc_hex(tok, cur); }
-#line 2546 "src/ast/lex.cc"
+#line 2545 "src/ast/lex.cc"
yy408:
yych = (YYCTYPE)*++YYCURSOR;
if (yych <= '@') {
goto yy398;
}
}
-#line 612 "../src/ast/lex.re"
+#line 611 "../src/ast/lex.re"
}
end = false;
tok = cur;
-#line 2579 "src/ast/lex.cc"
+#line 2578 "src/ast/lex.cc"
{
YYCTYPE yych;
unsigned int yyaccept = 0;
if (yych == '\n') goto yy414;
if (yych == '\\') goto yy416;
++YYCURSOR;
-#line 625 "../src/ast/lex.re"
+#line 624 "../src/ast/lex.re"
{
end = tok[0] == quote;
return static_cast<uint8_t>(tok[0]);
}
-#line 2593 "src/ast/lex.cc"
+#line 2592 "src/ast/lex.cc"
yy414:
++YYCURSOR;
-#line 620 "../src/ast/lex.re"
+#line 619 "../src/ast/lex.re"
{ fatal (get_column() - tchar, "syntax error"); }
-#line 2598 "src/ast/lex.cc"
+#line 2597 "src/ast/lex.cc"
yy416:
yych = (YYCTYPE)*++YYCURSOR;
if (yych <= 'a') {
}
}
}
-#line 623 "../src/ast/lex.re"
+#line 622 "../src/ast/lex.re"
{ fatal (get_column() - tchar, "syntax error in escape sequence"); }
-#line 2646 "src/ast/lex.cc"
+#line 2645 "src/ast/lex.cc"
yy418:
++YYCURSOR;
-#line 639 "../src/ast/lex.re"
+#line 638 "../src/ast/lex.re"
{
if (tok[1] != quote) {
warn.useless_escape(cline, get_column(), tok[1]);
}
return static_cast<uint8_t>(tok[1]);
}
-#line 2656 "src/ast/lex.cc"
+#line 2655 "src/ast/lex.cc"
yy420:
yyaccept = 0;
yych = (YYCTYPE)*(YYMARKER = ++YYCURSOR);
if (yych <= '/') goto yy421;
if (yych <= '7') goto yy443;
yy421:
-#line 622 "../src/ast/lex.re"
+#line 621 "../src/ast/lex.re"
{ fatal (get_column() - tchar, "syntax error in octal escape sequence"); }
-#line 2665 "src/ast/lex.cc"
+#line 2664 "src/ast/lex.cc"
yy422:
++YYCURSOR;
goto yy421;
if (yych <= 'f') goto yy445;
}
yy424:
-#line 621 "../src/ast/lex.re"
+#line 620 "../src/ast/lex.re"
{ fatal (get_column() - tchar, "syntax error in hexadecimal escape sequence"); }
-#line 2683 "src/ast/lex.cc"
+#line 2682 "src/ast/lex.cc"
yy425:
yyaccept = 1;
yych = (YYCTYPE)*(YYMARKER = ++YYCURSOR);
}
yy426:
++YYCURSOR;
-#line 638 "../src/ast/lex.re"
+#line 637 "../src/ast/lex.re"
{ return static_cast<uint8_t>('\\'); }
-#line 2701 "src/ast/lex.cc"
+#line 2700 "src/ast/lex.cc"
yy428:
++YYCURSOR;
-#line 631 "../src/ast/lex.re"
+#line 630 "../src/ast/lex.re"
{ return static_cast<uint8_t>('\a'); }
-#line 2706 "src/ast/lex.cc"
+#line 2705 "src/ast/lex.cc"
yy430:
++YYCURSOR;
-#line 632 "../src/ast/lex.re"
+#line 631 "../src/ast/lex.re"
{ return static_cast<uint8_t>('\b'); }
-#line 2711 "src/ast/lex.cc"
+#line 2710 "src/ast/lex.cc"
yy432:
++YYCURSOR;
-#line 633 "../src/ast/lex.re"
+#line 632 "../src/ast/lex.re"
{ return static_cast<uint8_t>('\f'); }
-#line 2716 "src/ast/lex.cc"
+#line 2715 "src/ast/lex.cc"
yy434:
++YYCURSOR;
-#line 634 "../src/ast/lex.re"
+#line 633 "../src/ast/lex.re"
{ return static_cast<uint8_t>('\n'); }
-#line 2721 "src/ast/lex.cc"
+#line 2720 "src/ast/lex.cc"
yy436:
++YYCURSOR;
-#line 635 "../src/ast/lex.re"
+#line 634 "../src/ast/lex.re"
{ return static_cast<uint8_t>('\r'); }
-#line 2726 "src/ast/lex.cc"
+#line 2725 "src/ast/lex.cc"
yy438:
++YYCURSOR;
-#line 636 "../src/ast/lex.re"
+#line 635 "../src/ast/lex.re"
{ return static_cast<uint8_t>('\t'); }
-#line 2731 "src/ast/lex.cc"
+#line 2730 "src/ast/lex.cc"
yy440:
++YYCURSOR;
-#line 637 "../src/ast/lex.re"
+#line 636 "../src/ast/lex.re"
{ return static_cast<uint8_t>('\v'); }
-#line 2736 "src/ast/lex.cc"
+#line 2735 "src/ast/lex.cc"
yy442:
yyaccept = 1;
yych = (YYCTYPE)*(YYMARKER = ++YYCURSOR);
}
yy448:
++YYCURSOR;
-#line 630 "../src/ast/lex.re"
+#line 629 "../src/ast/lex.re"
{ return unesc_oct(tok, cur); }
-#line 2801 "src/ast/lex.cc"
+#line 2800 "src/ast/lex.cc"
yy450:
yych = (YYCTYPE)*++YYCURSOR;
if (yych <= '@') {
}
yy452:
++YYCURSOR;
-#line 629 "../src/ast/lex.re"
+#line 628 "../src/ast/lex.re"
{ return unesc_hex(tok, cur); }
-#line 2830 "src/ast/lex.cc"
+#line 2829 "src/ast/lex.cc"
yy454:
yych = (YYCTYPE)*++YYCURSOR;
if (yych <= '@') {
goto yy444;
}
}
-#line 645 "../src/ast/lex.re"
+#line 644 "../src/ast/lex.re"
}
sourceline:
tok = cur;
-#line 2877 "src/ast/lex.cc"
+#line 2876 "src/ast/lex.cc"
{
YYCTYPE yych;
static const unsigned char yybm[] = {
yy458:
++YYCURSOR;
yy459:
-#line 690 "../src/ast/lex.re"
+#line 689 "../src/ast/lex.re"
{
goto sourceline;
}
-#line 2930 "src/ast/lex.cc"
+#line 2929 "src/ast/lex.cc"
yy460:
++YYCURSOR;
-#line 678 "../src/ast/lex.re"
+#line 677 "../src/ast/lex.re"
{
if (cur == eof)
{
tok = cur;
return;
}
-#line 2946 "src/ast/lex.cc"
+#line 2945 "src/ast/lex.cc"
yy462:
yych = (YYCTYPE)*(YYMARKER = ++YYCURSOR);
if (yych == '\n') goto yy459;
if (yybm[0+yych] & 64) {
goto yy463;
}
-#line 667 "../src/ast/lex.re"
+#line 666 "../src/ast/lex.re"
{
if (!s_to_u32_unsafe (tok, cur, cline))
{
}
goto sourceline;
}
-#line 2966 "src/ast/lex.cc"
+#line 2965 "src/ast/lex.cc"
yy466:
++YYCURSOR;
if (YYLIMIT <= YYCURSOR) YYFILL(1);
goto yy459;
yy469:
++YYCURSOR;
-#line 674 "../src/ast/lex.re"
+#line 673 "../src/ast/lex.re"
{
escape (in.file_name, std::string (tok + 1, tok_len () - 2)); // -2 to omit quotes
goto sourceline;
}
-#line 2988 "src/ast/lex.cc"
+#line 2987 "src/ast/lex.cc"
yy471:
++YYCURSOR;
if (YYLIMIT <= YYCURSOR) YYFILL(1);
if (yych == '\n') goto yy468;
goto yy466;
}
-#line 693 "../src/ast/lex.re"
+#line 692 "../src/ast/lex.re"
}