47 #define YYBISON_VERSION "3.0" 50 #define YYSKELETON_NAME "yacc.c" 62 #define YYSTYPE CQASM_VERSIONSTYPE 63 #define YYLTYPE CQASM_VERSIONLTYPE 65 #define yyparse cqasm_versionparse 66 #define yylex cqasm_versionlex 67 #define yyerror cqasm_versionerror 68 #define yydebug cqasm_versiondebug 69 #define yynerrs cqasm_versionnerrs 74 #line 75 "/home/docs/checkouts/readthedocs.org/user_builds/libqasm/checkouts/stable/cbuild/src/cqasm/cqasm-version-parser.cpp" 77 # if defined __cplusplus && 201103L <= __cplusplus 78 # define YY_NULL nullptr 85 #ifdef YYERROR_VERBOSE 86 # undef YYERROR_VERBOSE 87 # define YYERROR_VERBOSE 1 89 # define YYERROR_VERBOSE 0 94 #ifndef YY_CQASM_VERSION_HOME_DOCS_CHECKOUTS_READTHEDOCS_ORG_USER_BUILDS_LIBQASM_CHECKOUTS_STABLE_CBUILD_SRC_CQASM_CQASM_VERSION_PARSER_HPP_INCLUDED 95 # define YY_CQASM_VERSION_HOME_DOCS_CHECKOUTS_READTHEDOCS_ORG_USER_BUILDS_LIBQASM_CHECKOUTS_STABLE_CBUILD_SRC_CQASM_CQASM_VERSION_PARSER_HPP_INCLUDED 97 #ifndef CQASM_VERSIONDEBUG 100 # define CQASM_VERSIONDEBUG 1 102 # define CQASM_VERSIONDEBUG 0 105 # define CQASM_VERSIONDEBUG 0 108 #if CQASM_VERSIONDEBUG 109 extern int cqasm_versiondebug;
112 #line 5 "/home/docs/checkouts/readthedocs.org/user_builds/libqasm/checkouts/stable/src/cqasm/src/cqasm-version-parser.y" 126 #define YYSTYPE CQASM_VERSIONSTYPE 127 #define YYLTYPE CQASM_VERSIONLTYPE 130 #line 131 "/home/docs/checkouts/readthedocs.org/user_builds/libqasm/checkouts/stable/cbuild/src/cqasm/cqasm-version-parser.cpp" 133 #ifndef CQASM_VERSIONTOKENTYPE 134 # define CQASM_VERSIONTOKENTYPE 145 #if ! defined CQASM_VERSIONSTYPE && ! defined CQASM_VERSIONSTYPE_IS_DECLARED 149 #line 32 "/home/docs/checkouts/readthedocs.org/user_builds/libqasm/checkouts/stable/src/cqasm/src/cqasm-version-parser.y" 154 #line 155 "/home/docs/checkouts/readthedocs.org/user_builds/libqasm/checkouts/stable/cbuild/src/cqasm/cqasm-version-parser.cpp" 156 # define CQASM_VERSIONSTYPE_IS_TRIVIAL 1 157 # define CQASM_VERSIONSTYPE_IS_DECLARED 1 161 #if ! defined CQASM_VERSIONLTYPE && ! defined CQASM_VERSIONLTYPE_IS_DECLARED 170 # define CQASM_VERSIONLTYPE_IS_DECLARED 1 171 # define CQASM_VERSIONLTYPE_IS_TRIVIAL 1 182 #line 183 "/home/docs/checkouts/readthedocs.org/user_builds/libqasm/checkouts/stable/cbuild/src/cqasm/cqasm-version-parser.cpp" 184 #line 23 "/home/docs/checkouts/readthedocs.org/user_builds/libqasm/checkouts/stable/src/cqasm/src/cqasm-version-parser.y" 189 #line 190 "/home/docs/checkouts/readthedocs.org/user_builds/libqasm/checkouts/stable/cbuild/src/cqasm/cqasm-version-parser.cpp" 220 # ifdef __SIZE_TYPE__ 221 # define YYSIZE_T __SIZE_TYPE__ 222 # elif defined size_t 223 # define YYSIZE_T size_t 224 # elif ! defined YYSIZE_T 226 # define YYSIZE_T size_t 228 # define YYSIZE_T unsigned int 232 #define YYSIZE_MAXIMUM ((YYSIZE_T) -1) 235 # if defined YYENABLE_NLS && YYENABLE_NLS 237 # include <libintl.h> 238 # define YY_(Msgid) dgettext ("bison-runtime", Msgid) 242 # define YY_(Msgid) Msgid 246 #ifndef __attribute__ 248 # if (! defined __GNUC__ || __GNUC__ < 2 \ 249 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5)) 250 # define __attribute__(Spec) 255 #if ! defined lint || defined __GNUC__ 256 # define YYUSE(E) ((void) (E)) 261 #if defined __GNUC__ && 407 <= __GNUC__ * 100 + __GNUC_MINOR__ 263 # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \ 264 _Pragma ("GCC diagnostic push") \ 265 _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")\ 266 _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"") 267 # define YY_IGNORE_MAYBE_UNINITIALIZED_END \ 268 _Pragma ("GCC diagnostic pop") 270 # define YY_INITIAL_VALUE(Value) Value 272 #ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN 273 # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN 274 # define YY_IGNORE_MAYBE_UNINITIALIZED_END 276 #ifndef YY_INITIAL_VALUE 277 # define YY_INITIAL_VALUE(Value) 281 #if ! defined yyoverflow || YYERROR_VERBOSE 285 # ifdef YYSTACK_USE_ALLOCA 286 # if YYSTACK_USE_ALLOCA 288 # define YYSTACK_ALLOC __builtin_alloca 289 # elif defined __BUILTIN_VA_ARG_INCR 292 # define YYSTACK_ALLOC __alloca 293 # elif defined _MSC_VER 295 # define alloca _alloca 297 # define YYSTACK_ALLOC alloca 298 # if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS 301 # ifndef EXIT_SUCCESS 302 # define EXIT_SUCCESS 0 309 # ifdef YYSTACK_ALLOC 311 # define YYSTACK_FREE(Ptr) do { ; } while (0) 312 # ifndef YYSTACK_ALLOC_MAXIMUM 317 # define YYSTACK_ALLOC_MAXIMUM 4032 320 # define YYSTACK_ALLOC YYMALLOC 321 # define YYSTACK_FREE YYFREE 322 # ifndef YYSTACK_ALLOC_MAXIMUM 323 # define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM 325 # if (defined __cplusplus && ! defined EXIT_SUCCESS \ 326 && ! ((defined YYMALLOC || defined malloc) \ 327 && (defined YYFREE || defined free))) 329 # ifndef EXIT_SUCCESS 330 # define EXIT_SUCCESS 0 334 # define YYMALLOC malloc 335 # if ! defined malloc && ! defined EXIT_SUCCESS 341 # if ! defined free && ! defined EXIT_SUCCESS 349 #if (! defined yyoverflow \ 350 && (! defined __cplusplus \ 351 || (defined CQASM_VERSIONLTYPE_IS_TRIVIAL && CQASM_VERSIONLTYPE_IS_TRIVIAL \ 352 && defined CQASM_VERSIONSTYPE_IS_TRIVIAL && CQASM_VERSIONSTYPE_IS_TRIVIAL))) 363 # define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) 367 # define YYSTACK_BYTES(N) \ 368 ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE) + sizeof (YYLTYPE)) \ 369 + 2 * YYSTACK_GAP_MAXIMUM) 371 # define YYCOPY_NEEDED 1 378 # define YYSTACK_RELOCATE(Stack_alloc, Stack) \ 381 YYSIZE_T yynewbytes; \ 382 YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \ 383 Stack = &yyptr->Stack_alloc; \ 384 yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ 385 yyptr += yynewbytes / sizeof (*yyptr); \ 391 #if defined YYCOPY_NEEDED && YYCOPY_NEEDED 395 # if defined __GNUC__ && 1 < __GNUC__ 396 # define YYCOPY(Dst, Src, Count) \ 397 __builtin_memcpy (Dst, Src, (Count) * sizeof (*(Src))) 399 # define YYCOPY(Dst, Src, Count) \ 403 for (yyi = 0; yyi < (Count); yyi++) \ 404 (Dst)[yyi] = (Src)[yyi]; \ 428 #define YYMAXUTOK 261 430 #define YYTRANSLATE(YYX) \ 431 ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) 437 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
438 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
439 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
440 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
441 2, 2, 2, 2, 2, 2, 7, 2, 2, 2,
442 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
443 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
444 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
445 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
446 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
447 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
448 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
449 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
450 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
451 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
452 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
453 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
454 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
455 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
456 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
457 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
458 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
459 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
460 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
461 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
462 2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
466 #if CQASM_VERSIONDEBUG 474 #if CQASM_VERSIONDEBUG || YYERROR_VERBOSE || 0 477 static const char *
const yytname[] =
479 "$end",
"error",
"$undefined",
"VERSION",
"INT_LITERAL",
"UNKNOWN",
480 "END_OF_FILE",
"'.'",
"$accept",
"Version",
"Root",
YY_NULL 489 0, 256, 257, 258, 259, 260, 261, 46
493 #define YYPACT_NINF -5 495 #define yypact_value_is_default(Yystate) \ 496 (!!((Yystate) == (-5))) 498 #define YYTABLE_NINF -1 500 #define yytable_value_is_error(Yytable_value) \ 507 -3, -2, 1, -5, -4, -5, 0, -5
515 0, 0, 0, 2, 4, 1, 0, 3
547 0, 3, 10, 4, 9, 0, 7, 4
563 #define yyerrok (yyerrstatus = 0) 564 #define yyclearin (yychar = YYEMPTY) 568 #define YYACCEPT goto yyacceptlab 569 #define YYABORT goto yyabortlab 570 #define YYERROR goto yyerrorlab 573 #define YYRECOVERING() (!!yyerrstatus) 575 #define YYBACKUP(Token, Value) \ 577 if (yychar == YYEMPTY) \ 581 YYPOPSTACK (yylen); \ 587 yyerror (&yylloc, scanner, helper, YY_("syntax error: cannot back up")); \ 594 #define YYERRCODE 256 601 #ifndef YYLLOC_DEFAULT 602 # define YYLLOC_DEFAULT(Current, Rhs, N) \ 606 (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \ 607 (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \ 608 (Current).last_line = YYRHSLOC (Rhs, N).last_line; \ 609 (Current).last_column = YYRHSLOC (Rhs, N).last_column; \ 613 (Current).first_line = (Current).last_line = \ 614 YYRHSLOC (Rhs, 0).last_line; \ 615 (Current).first_column = (Current).last_column = \ 616 YYRHSLOC (Rhs, 0).last_column; \ 621 #define YYRHSLOC(Rhs, K) ((Rhs)[K]) 625 #if CQASM_VERSIONDEBUG 629 # define YYFPRINTF fprintf 632 # define YYDPRINTF(Args) \ 643 #ifndef YY_LOCATION_PRINT 644 # if defined CQASM_VERSIONLTYPE_IS_TRIVIAL && CQASM_VERSIONLTYPE_IS_TRIVIAL 650 yy_location_print_ (FILE *yyo,
YYLTYPE const *
const yylocp)
653 int end_col = 0 != yylocp->last_column ? yylocp->last_column - 1 : 0;
654 if (0 <= yylocp->first_line)
656 res += YYFPRINTF (yyo,
"%d", yylocp->first_line);
657 if (0 <= yylocp->first_column)
658 res += YYFPRINTF (yyo,
".%d", yylocp->first_column);
660 if (0 <= yylocp->last_line)
662 if (yylocp->first_line < yylocp->last_line)
664 res += YYFPRINTF (yyo,
"-%d", yylocp->last_line);
666 res += YYFPRINTF (yyo,
".%d", end_col);
668 else if (0 <= end_col && yylocp->first_column < end_col)
669 res += YYFPRINTF (yyo,
"-%d", end_col);
674 # define YY_LOCATION_PRINT(File, Loc) \ 675 yy_location_print_ (File, &(Loc)) 678 # define YY_LOCATION_PRINT(File, Loc) ((void) 0) 683 # define YY_SYMBOL_PRINT(Title, Type, Value, Location) \ 687 YYFPRINTF (stderr, "%s ", Title); \ 688 yy_symbol_print (stderr, \ 689 Type, Value, Location, scanner, helper); \ 690 YYFPRINTF (stderr, "\n"); \ 702 FILE *yyo = yyoutput;
711 YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
724 YYFPRINTF (yyoutput,
"%s %s (",
725 yytype <
YYNTOKENS ?
"token" :
"nterm", yytname[yytype]);
727 YY_LOCATION_PRINT (yyoutput, *yylocationp);
728 YYFPRINTF (yyoutput,
": ");
729 yy_symbol_value_print (yyoutput, yytype, yyvaluep, yylocationp, scanner, helper);
730 YYFPRINTF (yyoutput,
")");
741 YYFPRINTF (stderr,
"Stack now");
742 for (; yybottom <= yytop; yybottom++)
744 int yybot = *yybottom;
745 YYFPRINTF (stderr,
" %d", yybot);
747 YYFPRINTF (stderr,
"\n");
750 # define YY_STACK_PRINT(Bottom, Top) \ 753 yy_stack_print ((Bottom), (Top)); \ 764 unsigned long int yylno = yyrline[yyrule];
765 int yynrhs = yyr2[yyrule];
767 YYFPRINTF (stderr,
"Reducing stack by rule %d (line %lu):\n",
770 for (yyi = 0; yyi < yynrhs; yyi++)
772 YYFPRINTF (stderr,
" $%d = ", yyi + 1);
773 yy_symbol_print (stderr,
774 yystos[yyssp[yyi + 1 - yynrhs]],
775 &(yyvsp[(yyi + 1) - (yynrhs)])
776 , &(yylsp[(yyi + 1) - (yynrhs)]) , scanner, helper);
777 YYFPRINTF (stderr,
"\n");
781 # define YY_REDUCE_PRINT(Rule) \ 784 yy_reduce_print (yyssp, yyvsp, yylsp, Rule, scanner, helper); \ 791 # define YYDPRINTF(Args) 792 # define YY_SYMBOL_PRINT(Title, Type, Value, Location) 793 # define YY_STACK_PRINT(Bottom, Top) 794 # define YY_REDUCE_PRINT(Rule) 800 # define YYINITDEPTH 200 811 # define YYMAXDEPTH 10000 818 # if defined __GLIBC__ && defined _STRING_H 819 # define yystrlen strlen 823 yystrlen (
const char *yystr)
826 for (yylen = 0; yystr[yylen]; yylen++)
834 # if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE 835 # define yystpcpy stpcpy 840 yystpcpy (
char *yydest,
const char *yysrc)
843 const char *yys = yysrc;
845 while ((*yyd++ = *yys++) !=
'\0')
862 yytnamerr (
char *yyres,
const char *yystr)
867 char const *yyp = yystr;
874 goto do_not_strip_quotes;
878 goto do_not_strip_quotes;
891 do_not_strip_quotes: ;
895 return yystrlen (yystr);
897 return yystpcpy (yyres, yystr) - yyres;
910 yysyntax_error (
YYSIZE_T *yymsg_alloc,
char **yymsg,
915 enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
917 const char *yyformat =
YY_NULL;
919 char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
949 int yyn = yypact[*yyssp];
950 yyarg[yycount++] = yytname[yytoken];
956 int yyxbegin = yyn < 0 ? -yyn : 0;
958 int yychecklim =
YYLAST - yyn + 1;
962 for (yyx = yyxbegin; yyx < yyxend; ++yyx)
963 if (yycheck[yyx + yyn] == yyx && yyx !=
YYTERROR 966 if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
972 yyarg[yycount++] = yytname[yyx];
975 if (! (yysize <= yysize1
986 # define YYCASE_(N, S) \ 991 YYCASE_(1,
YY_(
"syntax error, unexpected %s"));
992 YYCASE_(2,
YY_(
"syntax error, unexpected %s, expecting %s"));
993 YYCASE_(3,
YY_(
"syntax error, unexpected %s, expecting %s or %s"));
994 YYCASE_(4,
YY_(
"syntax error, unexpected %s, expecting %s or %s or %s"));
995 YYCASE_(5,
YY_(
"syntax error, unexpected %s, expecting %s or %s or %s or %s"));
1000 YYSIZE_T yysize1 = yysize + yystrlen (yyformat);
1006 if (*yymsg_alloc < yysize)
1008 *yymsg_alloc = 2 * yysize;
1009 if (! (yysize <= *yymsg_alloc
1021 while ((*yyp = *yyformat) !=
'\0')
1022 if (*yyp ==
'%' && yyformat[1] ==
's' && yyi < yycount)
1024 yyp += yytnamerr (yyp, yyarg[yyi++]);
1045 YYUSE (yylocationp);
1079 # if defined CQASM_VERSIONLTYPE_IS_TRIVIAL && CQASM_VERSIONLTYPE_IS_TRIVIAL 1132 char *yymsg = yymsgbuf;
1133 YYSIZE_T yymsg_alloc =
sizeof yymsgbuf;
1136 #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N), yylsp -= (N)) 1142 yyssp = yyss = yyssa;
1143 yyvsp = yyvs = yyvsa;
1144 yylsp = yyls = yylsa;
1147 YYDPRINTF ((stderr,
"Starting parse\n"));
1167 if (yyss + yystacksize - 1 <= yyssp)
1170 YYSIZE_T yysize = yyssp - yyss + 1;
1185 yyoverflow (
YY_(
"memory exhausted"),
1186 &yyss1, yysize *
sizeof (*yyssp),
1187 &yyvs1, yysize *
sizeof (*yyvsp),
1188 &yyls1, yysize *
sizeof (*yylsp),
1196 # ifndef YYSTACK_RELOCATE 1197 goto yyexhaustedlab;
1201 goto yyexhaustedlab;
1211 goto yyexhaustedlab;
1215 # undef YYSTACK_RELOCATE 1222 yyssp = yyss + yysize - 1;
1223 yyvsp = yyvs + yysize - 1;
1224 yylsp = yyls + yysize - 1;
1226 YYDPRINTF ((stderr,
"Stack size increased to %lu\n",
1227 (
unsigned long int) yystacksize));
1229 if (yyss + yystacksize - 1 <= yyssp)
1233 YYDPRINTF ((stderr,
"Entering state %d\n", yystate));
1249 yyn = yypact[yystate];
1258 YYDPRINTF ((stderr,
"Reading a token: "));
1262 if (yychar <=
YYEOF)
1264 yychar = yytoken =
YYEOF;
1265 YYDPRINTF ((stderr,
"Now at end of input.\n"));
1276 if (yyn < 0 ||
YYLAST < yyn || yycheck[yyn] != yytoken)
1310 yyn = yydefact[yystate];
1331 yyval = yyvsp[1-yylen];
1339 #line 53 "/home/docs/checkouts/readthedocs.org/user_builds/libqasm/checkouts/stable/src/cqasm/src/cqasm-version-parser.y" 1340 { helper.
version.push_back(std::atoll((yyvsp[0].str)));
std::free((yyvsp[0].str)); }
1341 #line 1342 "/home/docs/checkouts/readthedocs.org/user_builds/libqasm/checkouts/stable/cbuild/src/cqasm/cqasm-version-parser.cpp" 1345 #line 54 "/home/docs/checkouts/readthedocs.org/user_builds/libqasm/checkouts/stable/src/cqasm/src/cqasm-version-parser.y" 1346 { helper.
version.push_back(std::atoll((yyvsp[0].str)));
std::free((yyvsp[0].str)); }
1347 #line 1348 "/home/docs/checkouts/readthedocs.org/user_builds/libqasm/checkouts/stable/cbuild/src/cqasm/cqasm-version-parser.cpp" 1351 #line 57 "/home/docs/checkouts/readthedocs.org/user_builds/libqasm/checkouts/stable/src/cqasm/src/cqasm-version-parser.y" 1353 #line 1354 "/home/docs/checkouts/readthedocs.org/user_builds/libqasm/checkouts/stable/cbuild/src/cqasm/cqasm-version-parser.cpp" 1357 #line 1358 "/home/docs/checkouts/readthedocs.org/user_builds/libqasm/checkouts/stable/cbuild/src/cqasm/cqasm-version-parser.cpp" 1386 yystate = yypgoto[yyn -
YYNTOKENS] + *yyssp;
1387 if (0 <= yystate && yystate <=
YYLAST && yycheck[yystate] == *yyssp)
1388 yystate = yytable[yystate];
1407 #if ! YYERROR_VERBOSE 1408 yyerror (&yylloc, scanner, helper,
YY_(
"syntax error"));
1410 # define YYSYNTAX_ERROR yysyntax_error (&yymsg_alloc, &yymsg, \ 1413 char const *yymsgp =
YY_(
"syntax error");
1414 int yysyntax_error_status;
1416 if (yysyntax_error_status == 0)
1418 else if (yysyntax_error_status == 1)
1420 if (yymsg != yymsgbuf)
1426 yymsg_alloc =
sizeof yymsgbuf;
1427 yysyntax_error_status = 2;
1435 yyerror (&yylloc, scanner, helper, yymsgp);
1436 if (yysyntax_error_status == 2)
1437 goto yyexhaustedlab;
1439 # undef YYSYNTAX_ERROR 1443 yyerror_range[1] =
yylloc;
1445 if (yyerrstatus == 3)
1450 if (yychar <=
YYEOF)
1453 if (yychar ==
YYEOF)
1458 yydestruct (
"Error: discarding",
1459 yytoken, &
yylval, &yylloc, scanner, helper);
1480 yyerror_range[1] = yylsp[1-yylen];
1498 yyn = yypact[yystate];
1514 yyerror_range[1] = *yylsp;
1515 yydestruct (
"Error: popping",
1516 yystos[yystate], yyvsp, yylsp, scanner, helper);
1526 yyerror_range[2] =
yylloc;
1553 #if !defined yyoverflow || YYERROR_VERBOSE 1558 yyerror (&yylloc, scanner, helper,
YY_(
"memory exhausted"));
1569 yydestruct (
"Cleanup: discarding lookahead",
1570 yytoken, &
yylval, &yylloc, scanner, helper);
1576 while (yyssp != yyss)
1578 yydestruct (
"Cleanup: popping",
1579 yystos[*yyssp], yyvsp, yylsp, scanner, helper);
1587 if (yymsg != yymsgbuf)
1592 #line 60 "/home/docs/checkouts/readthedocs.org/user_builds/libqasm/checkouts/stable/src/cqasm/src/cqasm-version-parser.y" 1597 std::ostringstream sb;
1599 <<
":" << yyllocp->first_line
1600 <<
":" << yyllocp->first_column
#define yytable_value_is_error(Yytable_value)
#define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
#define YY_SYMBOL_PRINT(Title, Type, Value, Location)
Defines utilities for detecting and dealing with cQASM language versions.
#define YYSTACK_ALLOC_MAXIMUM
Version version
The parse result.
#define yypact_value_is_default(Yystate)
#define YYLLOC_DEFAULT(Current, Rhs, N)
int cqasm_versionparse(yyscan_t scanner, cqasm::version::ParseHelper &helper)
Version number primitive used within the AST and semantic trees.
unsigned char yytype_uint8
Internal helper class for parsing cQASM file versions.
unsigned char yytype_uint8
unsigned short int yytype_uint16
std::string filename
Name of the file being parsed.
#define YY_IGNORE_MAYBE_UNINITIALIZED_END
#define YY_REDUCE_PRINT(Rule)
Contains custom exception objects used by libqasm.
static void push_error(const std::string &error)
Pushes an error.
#define YY_INITIAL_VALUE(Value)
Namespace for detecting and dealing with cQASM language versions.
#define YYSTACK_RELOCATE(Stack_alloc, Stack)
unsigned short int yytype_uint16
#define YY_STACK_PRINT(Bottom, Top)
#define __attribute__(Spec)