Parser, generated by Bison.
More...
Go to the source code of this file.
|
#define | YYBISON 1 |
|
#define | YYBISON_VERSION "3.0" |
|
#define | YYSKELETON_NAME "yacc.c" |
|
#define | YYPURE 2 |
|
#define | YYPUSH 0 |
|
#define | YYPULL 1 |
|
#define | YYSTYPE CQASM_VERSIONSTYPE |
|
#define | YYLTYPE CQASM_VERSIONLTYPE |
|
#define | yyparse cqasm_versionparse |
|
#define | yylex cqasm_versionlex |
|
#define | yyerror cqasm_versionerror |
|
#define | yydebug cqasm_versiondebug |
|
#define | yynerrs cqasm_versionnerrs |
|
#define | YY_NULL 0 |
|
#define | YYERROR_VERBOSE 0 |
|
#define | YY_CQASM_VERSION_HOME_DOCS_CHECKOUTS_READTHEDOCS_ORG_USER_BUILDS_LIBQASM_CHECKOUTS_LATEST_CBUILD_SRC_CQASM_CQASM_VERSION_PARSER_HPP_INCLUDED |
|
#define | CQASM_VERSIONDEBUG 0 |
|
#define | YYSTYPE CQASM_VERSIONSTYPE |
|
#define | YYLTYPE CQASM_VERSIONLTYPE |
|
#define | CQASM_VERSIONTOKENTYPE |
|
#define | CQASM_VERSIONSTYPE_IS_TRIVIAL 1 |
|
#define | CQASM_VERSIONSTYPE_IS_DECLARED 1 |
|
#define | CQASM_VERSIONLTYPE_IS_DECLARED 1 |
|
#define | CQASM_VERSIONLTYPE_IS_TRIVIAL 1 |
|
#define | YYSIZE_T size_t |
|
#define | YYSIZE_MAXIMUM ((YYSIZE_T) -1) |
|
#define | YY_(Msgid) Msgid |
|
#define | __attribute__(Spec) /* empty */ |
|
#define | YYUSE(E) ((void) (E)) |
|
#define | YY_INITIAL_VALUE(Value) Value |
|
#define | YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
|
#define | YY_IGNORE_MAYBE_UNINITIALIZED_END |
|
#define | YYSTACK_ALLOC YYMALLOC |
|
#define | YYSTACK_FREE YYFREE |
|
#define | YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM |
|
#define | YYMALLOC malloc |
|
#define | YYFREE free |
|
#define | YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) |
|
#define | YYSTACK_BYTES(N) |
|
#define | YYCOPY_NEEDED 1 |
|
#define | YYSTACK_RELOCATE(Stack_alloc, Stack) |
|
#define | YYCOPY(Dst, Src, Count) |
|
#define | YYFINAL 5 |
|
#define | YYLAST 4 |
|
#define | YYNTOKENS 8 |
|
#define | YYNNTS 3 |
|
#define | YYNRULES 4 |
|
#define | YYNSTATES 8 |
|
#define | YYUNDEFTOK 2 |
|
#define | YYMAXUTOK 261 |
|
#define | YYTRANSLATE(YYX) ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
|
#define | YYPACT_NINF -5 |
|
#define | yypact_value_is_default(Yystate) (!!((Yystate) == (-5))) |
|
#define | YYTABLE_NINF -1 |
|
#define | yytable_value_is_error(Yytable_value) 0 |
|
#define | yyerrok (yyerrstatus = 0) |
|
#define | yyclearin (yychar = YYEMPTY) |
|
#define | YYEMPTY (-2) |
|
#define | YYEOF 0 |
|
#define | YYACCEPT goto yyacceptlab |
|
#define | YYABORT goto yyabortlab |
|
#define | YYERROR goto yyerrorlab |
|
#define | YYRECOVERING() (!!yyerrstatus) |
|
#define | YYBACKUP(Token, Value) |
|
#define | YYTERROR 1 |
|
#define | YYERRCODE 256 |
|
#define | YYLLOC_DEFAULT(Current, Rhs, N) |
|
#define | YYRHSLOC(Rhs, K) ((Rhs)[K]) |
|
#define | YYDPRINTF(Args) |
|
#define | YY_SYMBOL_PRINT(Title, Type, Value, Location) |
|
#define | YY_STACK_PRINT(Bottom, Top) |
|
#define | YY_REDUCE_PRINT(Rule) |
|
#define | YYINITDEPTH 200 |
|
#define | YYMAXDEPTH 10000 |
|
#define | YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N), yylsp -= (N)) |
|
Parser, generated by Bison.
Definition in file cqasm-version-parser.cpp.
#include <memory>
#include <cstdio>
#include <cstdint>
#include "cqasm-error.hpp"
#include "cqasm-version.hpp"
#include <stddef.h>
◆ YYBISON
◆ YYBISON_VERSION
#define YYBISON_VERSION "3.0" |
◆ YYSKELETON_NAME
#define YYSKELETON_NAME "yacc.c" |
◆ YYPURE
◆ YYPUSH
◆ YYPULL
◆ YYSTYPE [1/2]
◆ YYLTYPE [1/2]
◆ yyparse
◆ yylex
◆ yyerror
#define yyerror cqasm_versionerror |
◆ yydebug
#define yydebug cqasm_versiondebug |
◆ yynerrs
#define yynerrs cqasm_versionnerrs |
◆ YY_NULL
◆ YYERROR_VERBOSE
#define YYERROR_VERBOSE 0 |
◆ YY_CQASM_VERSION_HOME_DOCS_CHECKOUTS_READTHEDOCS_ORG_USER_BUILDS_LIBQASM_CHECKOUTS_LATEST_CBUILD_SRC_CQASM_CQASM_VERSION_PARSER_HPP_INCLUDED
#define YY_CQASM_VERSION_HOME_DOCS_CHECKOUTS_READTHEDOCS_ORG_USER_BUILDS_LIBQASM_CHECKOUTS_LATEST_CBUILD_SRC_CQASM_CQASM_VERSION_PARSER_HPP_INCLUDED |
◆ CQASM_VERSIONDEBUG
#define CQASM_VERSIONDEBUG 0 |
◆ YYSTYPE [2/2]
◆ YYLTYPE [2/2]
◆ CQASM_VERSIONTOKENTYPE
#define CQASM_VERSIONTOKENTYPE |
◆ CQASM_VERSIONSTYPE_IS_TRIVIAL
#define CQASM_VERSIONSTYPE_IS_TRIVIAL 1 |
◆ CQASM_VERSIONSTYPE_IS_DECLARED
#define CQASM_VERSIONSTYPE_IS_DECLARED 1 |
◆ CQASM_VERSIONLTYPE_IS_DECLARED
#define CQASM_VERSIONLTYPE_IS_DECLARED 1 |
◆ CQASM_VERSIONLTYPE_IS_TRIVIAL
#define CQASM_VERSIONLTYPE_IS_TRIVIAL 1 |
◆ YYSIZE_T
◆ YYSIZE_MAXIMUM
◆ YY_
#define YY_ |
( |
|
Msgid | ) |
Msgid |
◆ __attribute__
#define __attribute__ |
( |
|
Spec | ) |
/* empty */ |
◆ YYUSE
#define YYUSE |
( |
|
E | ) |
((void) (E)) |
◆ YY_INITIAL_VALUE
#define YY_INITIAL_VALUE |
( |
|
Value | ) |
Value |
◆ YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
#define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
◆ YY_IGNORE_MAYBE_UNINITIALIZED_END
#define YY_IGNORE_MAYBE_UNINITIALIZED_END |
◆ YYSTACK_ALLOC
◆ YYSTACK_FREE
◆ YYSTACK_ALLOC_MAXIMUM
◆ YYMALLOC
◆ YYFREE
◆ YYSTACK_GAP_MAXIMUM
#define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) |
◆ YYSTACK_BYTES
#define YYSTACK_BYTES |
( |
|
N | ) |
|
◆ YYCOPY_NEEDED
◆ YYSTACK_RELOCATE
#define YYSTACK_RELOCATE |
( |
|
Stack_alloc, |
|
|
|
Stack |
|
) |
| |
Value:do \
{ \
YYSIZE_T yynewbytes; \
YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
Stack = &yyptr->Stack_alloc; \
yyptr += yynewbytes / sizeof (*yyptr); \
} \
while (0)
#define YYSTACK_GAP_MAXIMUM
Definition at line 378 of file cqasm-version-parser.cpp.
◆ YYCOPY
#define YYCOPY |
( |
|
Dst, |
|
|
|
Src, |
|
|
|
Count |
|
) |
| |
Value:do \
{ \
YYSIZE_T yyi; \
for (yyi = 0; yyi < (Count); yyi++) \
(Dst)[yyi] = (Src)[yyi]; \
} \
while (0)
Definition at line 399 of file cqasm-version-parser.cpp.
◆ YYFINAL
◆ YYLAST
◆ YYNTOKENS
◆ YYNNTS
◆ YYNRULES
◆ YYNSTATES
◆ YYUNDEFTOK
◆ YYMAXUTOK
◆ YYTRANSLATE
◆ YYPACT_NINF
◆ yypact_value_is_default
#define yypact_value_is_default |
( |
|
Yystate | ) |
(!!((Yystate) == (-5))) |
◆ YYTABLE_NINF
◆ yytable_value_is_error
#define yytable_value_is_error |
( |
|
Yytable_value | ) |
0 |
◆ yyerrok
#define yyerrok (yyerrstatus = 0) |
◆ yyclearin
#define yyclearin (yychar = YYEMPTY) |
◆ YYEMPTY
◆ YYEOF
◆ YYACCEPT
#define YYACCEPT goto yyacceptlab |
◆ YYABORT
#define YYABORT goto yyabortlab |
◆ YYERROR
#define YYERROR goto yyerrorlab |
◆ YYRECOVERING
#define YYRECOVERING |
( |
| ) |
(!!yyerrstatus) |
◆ YYBACKUP
#define YYBACKUP |
( |
|
Token, |
|
|
|
Value |
|
) |
| |
Value: { \
yychar = (Token); \
YYPOPSTACK (yylen); \
yystate = *yyssp; \
goto yybackup; \
} \
else \
{ \
yyerror (&
yylloc, scanner, helper,
YY_(
"syntax error: cannot back up")); \
YYERROR; \
} \
while (0)
Definition at line 575 of file cqasm-version-parser.cpp.
◆ YYTERROR
◆ YYERRCODE
◆ YYLLOC_DEFAULT
#define YYLLOC_DEFAULT |
( |
|
Current, |
|
|
|
Rhs, |
|
|
|
N |
|
) |
| |
Value: { \
(Current).first_line =
YYRHSLOC (Rhs, 1).first_line; \
(Current).first_column =
YYRHSLOC (Rhs, 1).first_column; \
(Current).last_line =
YYRHSLOC (Rhs, N).last_line; \
(Current).last_column =
YYRHSLOC (Rhs, N).last_column; \
} \
else \
{ \
(Current).first_line = (Current).last_line = \
YYRHSLOC (Rhs, 0).last_line; \
(Current).first_column = (Current).last_column = \
YYRHSLOC (Rhs, 0).last_column; \
} \
while (0)
Definition at line 602 of file cqasm-version-parser.cpp.
◆ YYRHSLOC
#define YYRHSLOC |
( |
|
Rhs, |
|
|
|
K |
|
) |
| ((Rhs)[K]) |
◆ YYDPRINTF
#define YYDPRINTF |
( |
|
Args | ) |
|
◆ YY_SYMBOL_PRINT
#define YY_SYMBOL_PRINT |
( |
|
Title, |
|
|
|
Type, |
|
|
|
Value, |
|
|
|
Location |
|
) |
| |
◆ YY_STACK_PRINT
#define YY_STACK_PRINT |
( |
|
Bottom, |
|
|
|
Top |
|
) |
| |
◆ YY_REDUCE_PRINT
#define YY_REDUCE_PRINT |
( |
|
Rule | ) |
|
◆ YYINITDEPTH
◆ YYMAXDEPTH
◆ YYPOPSTACK
#define YYPOPSTACK |
( |
|
N | ) |
(yyvsp -= (N), yyssp -= (N), yylsp -= (N)) |
◆ yyscan_t
◆ CQASM_VERSIONSTYPE
◆ CQASM_VERSIONLTYPE
◆ yytype_uint8
◆ yytype_int8
◆ yytype_uint16
◆ yytype_int16
◆ cqasm_versiontokentype
Enumerator |
---|
VERSION | |
INT_LITERAL | |
UNKNOWN | |
END_OF_FILE | |
VERSION | |
INT_LITERAL | |
UNKNOWN | |
END_OF_FILE | |
Definition at line 135 of file cqasm-version-parser.cpp.
◆ cqasm_versionparse()
◆ yylex()
◆ yyerror()
◆ malloc()
◆ free()
◆ yyparse()