#include "data.h"#include "array-creator.h"#include "data-token.h"#include "symbol.h"#include <stdlib.h>#include <assert.h>#include <stdio.h>#include <string>

Go to the source code of this file.
Classes | |
| union | yyalloc | 
Defines | |
| #define | YYBISON 1 | 
| #define | YYBISON_VERSION "2.4.1" | 
| #define | YYSKELETON_NAME "yacc.c" | 
| #define | YYPURE 0 | 
| #define | YYPUSH 0 | 
| #define | YYPULL 1 | 
| #define | YYLSP_NEEDED 0 | 
| #define | YYDEBUG 1 | 
| #define | YYSTYPE Data | 
| #define | y_tabbed | 
| #define | YYERROR_VERBOSE 0 | 
| #define | YYTOKEN_TABLE 0 | 
| #define | YYSIZE_T unsigned int | 
| #define | YYSIZE_MAXIMUM ((YYSIZE_T) -1) | 
| #define | YY_(msgid) msgid | 
| #define | YYUSE(e) ((void) (e)) | 
| #define | YYID(n) (n) | 
| #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(To, From, Count) | 
| #define | YYSTACK_RELOCATE(Stack_alloc, Stack) | 
| #define | YYFINAL 15 | 
| #define | YYLAST 26 | 
| #define | YYNTOKENS 13 | 
| #define | YYNNTS 9 | 
| #define | YYNRULES 16 | 
| #define | YYNSTATES 27 | 
| #define | YYUNDEFTOK 2 | 
| #define | YYMAXUTOK 267 | 
| #define | YYTRANSLATE(YYX) ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) | 
| #define | YYPACT_NINF -9 | 
| #define | YYTABLE_NINF -1 | 
| #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 | YYFAIL goto yyerrlab | 
| #define | YYRECOVERING() (!!yyerrstatus) | 
| #define | YYBACKUP(Token, Value) | 
| #define | YYTERROR 1 | 
| #define | YYERRCODE 256 | 
| #define | YYRHSLOC(Rhs, K) ((Rhs)[K]) | 
| #define | YYLLOC_DEFAULT(Current, Rhs, N) | 
| #define | YY_LOCATION_PRINT(File, Loc) ((void) 0) | 
| #define | YYLEX yylex () | 
| #define | YYFPRINTF fprintf | 
| #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)) | 
Typedefs | |
| typedef unsigned char | yytype_uint8 | 
| typedef short int | yytype_int8 | 
| typedef unsigned short int | yytype_uint16 | 
| typedef short int | yytype_int16 | 
Enumerations | |
| enum | yytokentype {  BRACE_OPEN = 258, BRACE_CLOSE = 259, COLON = 260, BRACKET_OPEN = 261, BRACKET_CLOSE = 262, SYMBOL = 263, NUMBER = 264, STRING = 265, DIMENSION_OPEN = 266, DIMENSION_CLOSE = 267, BRACE_OPEN = 258, BRACE_CLOSE = 259, COLON = 260, BRACKET_OPEN = 261, BRACKET_CLOSE = 262, SYMBOL = 263, NUMBER = 264, STRING = 265, DIMENSION_OPEN = 266, DIMENSION_CLOSE = 267, META = 258, NAME = 259, LPAREN = 260, RPAREN = 261, MESSAGE = 262, SEMICOLON = 263, NUMBER = 264, DATA = 265, COMMA = 266, LBRACE = 267, RBRACE = 268, STAR = 269, PRECOMPILER = 270, READ = 271, WRITE = 272, VOLATILE = 273, CLASS = 274, COLON = 275, VIRTUAL = 276, ASSIGNMENT = 277, EQUALITY = 278, NEQ = 279, OPERATOR = 280, TEMPLATE_OPEN = 281, TEMPLATE_CLOSE = 282, BRACKETS = 283, TILDE = 284, CONST = 285, META = 258, NAME = 259, LPAREN = 260, RPAREN = 261, MESSAGE = 262, SEMICOLON = 263, NUMBER = 264, DATA = 265, COMMA = 266, LBRACE = 267, RBRACE = 268, STAR = 269, PRECOMPILER = 270, READ = 271, WRITE = 272, VOLATILE = 273, CLASS = 274, COLON = 275, VIRTUAL = 276, ASSIGNMENT = 277, EQUALITY = 278, NEQ = 279, OPERATOR = 280, TEMPLATE_OPEN = 281, TEMPLATE_CLOSE = 282, BRACKETS = 283, TILDE = 284, CONST = 285 }  | 
Functions | |
| int | yylex () | 
| void | yyerror (const char *text) | 
| int | yyparse () | 
Variables | |
| Data | parse_result | 
| int | yytype | 
| YYSTYPE const *const | yyvaluep | 
| yytype_int16 * | yytop | 
| int | yyrule | 
| int | yychar | 
| YYSTYPE | yylval | 
| int | yynerrs | 
| #define y_tabbed | 
Definition at line 84 of file data-syntax.cpp.
| #define YY_ | ( | msgid | ) | msgid | 
Definition at line 212 of file data-syntax.cpp.
| #define YY_LOCATION_PRINT | ( | File, | |||
| Loc | ) | ((void) 0) | 
Definition at line 620 of file data-syntax.cpp.
| #define YY_REDUCE_PRINT | ( | Rule | ) | 
| #define YY_STACK_PRINT | ( | Bottom, | |||
| Top | ) | 
| #define YY_SYMBOL_PRINT | ( | Title, | |||
| Type, | |||||
| Value, | |||||
| Location | ) | 
| #define YYABORT goto yyabortlab | 
Definition at line 549 of file data-syntax.cpp.
| #define YYACCEPT goto yyacceptlab | 
Definition at line 548 of file data-syntax.cpp.
| #define YYBACKUP | ( | Token, | |||
| Value | ) | 
Value:
do \ if (yychar == YYEMPTY && yylen == 1) \ { \ yychar = (Token); \ yylval = (Value); \ yytoken = YYTRANSLATE (yychar); \ YYPOPSTACK (1); \ goto yybackup; \ } \ else \ { \ yyerror (YY_("syntax error: cannot back up")); \ YYERROR; \ } \ while (YYID (0))
Definition at line 561 of file data-syntax.cpp.
| #define YYBISON 1 | 
Definition at line 46 of file data-syntax.cpp.
| #define YYBISON_VERSION "2.4.1" | 
Definition at line 49 of file data-syntax.cpp.
| #define yyclearin (yychar = YYEMPTY) | 
Definition at line 544 of file data-syntax.cpp.
| #define YYDEBUG 1 | 
Definition at line 73 of file data-syntax.cpp.
| #define YYDPRINTF | ( | Args | ) | 
Value:
Definition at line 641 of file data-syntax.cpp.
| #define YYEMPTY (-2) | 
Definition at line 545 of file data-syntax.cpp.
| #define YYEOF 0 | 
Definition at line 546 of file data-syntax.cpp.
| #define YYERRCODE 256 | 
Definition at line 580 of file data-syntax.cpp.
| #define yyerrok (yyerrstatus = 0) | 
Definition at line 543 of file data-syntax.cpp.
| #define YYERROR goto yyerrorlab | 
Definition at line 550 of file data-syntax.cpp.
| #define YYERROR_VERBOSE 0 | 
Definition at line 113 of file data-syntax.cpp.
| #define YYFAIL goto yyerrlab | 
Definition at line 557 of file data-syntax.cpp.
| #define YYFINAL 15 | 
Definition at line 368 of file data-syntax.cpp.
| #define YYFPRINTF fprintf | 
Definition at line 638 of file data-syntax.cpp.
| #define YYFREE free | 
Definition at line 301 of file data-syntax.cpp.
| #define YYID | ( | n | ) | (n) | 
Definition at line 225 of file data-syntax.cpp.
| #define YYINITDEPTH 200 | 
Definition at line 799 of file data-syntax.cpp.
| #define YYLAST 26 | 
Definition at line 370 of file data-syntax.cpp.
| #define YYLEX yylex () | 
Definition at line 630 of file data-syntax.cpp.
| #define YYLLOC_DEFAULT | ( | Current, | |||
| Rhs, | |||||
| N | ) | 
Value:
do \ if (YYID (N)) \ { \ (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 (YYID (0))
Definition at line 589 of file data-syntax.cpp.
| #define YYLSP_NEEDED 0 | 
Definition at line 64 of file data-syntax.cpp.
| #define YYMALLOC malloc | 
Definition at line 294 of file data-syntax.cpp.
| #define YYMAXDEPTH 10000 | 
Definition at line 810 of file data-syntax.cpp.
| #define YYMAXUTOK 267 | 
Definition at line 383 of file data-syntax.cpp.
| #define YYNNTS 9 | 
Definition at line 375 of file data-syntax.cpp.
| #define YYNRULES 16 | 
Definition at line 377 of file data-syntax.cpp.
| #define YYNSTATES 27 | 
Definition at line 379 of file data-syntax.cpp.
| #define YYNTOKENS 13 | 
Definition at line 373 of file data-syntax.cpp.
| #define YYPACT_NINF -9 | 
Definition at line 501 of file data-syntax.cpp.
| #define YYPOPSTACK | ( | N | ) | (yyvsp -= (N), yyssp -= (N)) | 
| #define YYPULL 1 | 
Definition at line 61 of file data-syntax.cpp.
| #define YYPURE 0 | 
Definition at line 55 of file data-syntax.cpp.
| #define YYPUSH 0 | 
Definition at line 58 of file data-syntax.cpp.
| #define YYRECOVERING | ( | ) | (!!yyerrstatus) | 
Definition at line 559 of file data-syntax.cpp.
| #define YYRHSLOC | ( | Rhs, | |||
| K | ) | ((Rhs)[K]) | 
Definition at line 587 of file data-syntax.cpp.
| #define YYSIZE_MAXIMUM ((YYSIZE_T) -1) | 
Definition at line 202 of file data-syntax.cpp.
| #define YYSIZE_T unsigned int | 
Definition at line 198 of file data-syntax.cpp.
| #define YYSKELETON_NAME "yacc.c" | 
Definition at line 52 of file data-syntax.cpp.
| #define YYSTACK_ALLOC YYMALLOC | 
Definition at line 280 of file data-syntax.cpp.
| #define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM | 
Definition at line 283 of file data-syntax.cpp.
| #define YYSTACK_BYTES | ( | N | ) | 
Value:
((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \ + YYSTACK_GAP_MAXIMUM)
Definition at line 327 of file data-syntax.cpp.
| #define YYSTACK_FREE YYFREE | 
Definition at line 281 of file data-syntax.cpp.
| #define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) | 
Definition at line 323 of file data-syntax.cpp.
| #define YYSTACK_RELOCATE | ( | Stack_alloc, | |||
| Stack | ) | 
Value:
do \ { \ YYSIZE_T yynewbytes; \ YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \ Stack = &yyptr->Stack_alloc; \ yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ yyptr += yynewbytes / sizeof (*yyptr); \ } \ while (YYID (0))
Definition at line 354 of file data-syntax.cpp.
Definition at line 78 of file data-syntax.cpp.
| #define YYTABLE_NINF -1 | 
Definition at line 519 of file data-syntax.cpp.
| #define YYTERROR 1 | 
Definition at line 579 of file data-syntax.cpp.
| #define YYTOKEN_TABLE 0 | 
Definition at line 118 of file data-syntax.cpp.
| #define YYTRANSLATE | ( | YYX | ) | ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) | 
Definition at line 385 of file data-syntax.cpp.
| #define YYUNDEFTOK 2 | 
Definition at line 382 of file data-syntax.cpp.
| #define YYUSE | ( | e | ) | ((void) (e)) | 
Definition at line 218 of file data-syntax.cpp.
| typedef short int yytype_int16 | 
Definition at line 185 of file data-syntax.cpp.
| typedef short int yytype_int8 | 
Definition at line 173 of file data-syntax.cpp.
| typedef unsigned short int yytype_uint16 | 
Definition at line 179 of file data-syntax.cpp.
| typedef unsigned char yytype_uint8 | 
Definition at line 164 of file data-syntax.cpp.
| enum yytokentype | 
Definition at line 127 of file data-syntax.cpp.
| void yyerror | ( | const char * | text | ) | 
Definition at line 92 of file data-syntax.cpp.
| int yylex | ( | ) | 
| int yyparse | ( | ) | 
Definition at line 91 of file data-syntax.cpp.
| int yychar | 
Definition at line 1068 of file data-syntax.cpp.
Definition at line 1077 of file data-syntax.cpp.
| int yynerrs | 
Definition at line 1080 of file data-syntax.cpp.
| int yyrule | 
Definition at line 760 of file data-syntax.cpp.
Definition at line 729 of file data-syntax.cpp.
| int yytype | 
Definition at line 672 of file data-syntax.cpp.
Definition at line 673 of file data-syntax.cpp.
 1.5.9