#include <stdio.h>#include "parsetree.h"Include dependency graph for parser.tab.c:

Go to the source code of this file.
Classes | |
| union | YYSTYPE |
| struct | YYLTYPE |
| union | yyalloc |
Defines | |
| #define | YYBISON 1 |
| #define | YYBISON_VERSION "2.1" |
| #define | YYSKELETON_NAME "yacc.c" |
| #define | YYPURE 1 |
| #define | YYLSP_NEEDED 1 |
| #define | QUIT 258 |
| #define | TRUE 259 |
| #define | FALSE 260 |
| #define | QUIET 261 |
| #define | VERBOSE 262 |
| #define | WHATTYPE 263 |
| #define | SHOWALL 264 |
| #define | DIVMOD 265 |
| #define | INT 266 |
| #define | STRING 267 |
| #define | IDENT 268 |
| #define | TOFILE 269 |
| #define | ADDTOFILE 270 |
| #define | FROMFILE 271 |
| #define | NEG 272 |
| #define | YYDEBUG 0 |
| #define | YYERROR_VERBOSE 1 |
| #define | YYTOKEN_TABLE 0 |
| #define | yystype YYSTYPE |
| #define | YYSTYPE_IS_DECLARED 1 |
| #define | YYSTYPE_IS_TRIVIAL 1 |
| #define | yyltype YYLTYPE |
| #define | YYLTYPE_IS_DECLARED 1 |
| #define | YYLTYPE_IS_TRIVIAL 1 |
| #define | YYSIZE_T unsigned int |
| #define | YY_(msgid) msgid |
| #define | YYSTACK_ALLOC YYMALLOC |
| #define | YYSTACK_FREE YYFREE |
| #define | YYSTACK_ALLOC_MAXIMUM ((YYSIZE_T) -1) |
| #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) |
| #define | YYFINAL 39 |
| #define | YYLAST 222 |
| #define | YYNTOKENS 31 |
| #define | YYNNTS 7 |
| #define | YYNRULES 40 |
| #define | YYNSTATES 82 |
| #define | YYUNDEFTOK 2 |
| #define | YYMAXUTOK 272 |
| #define | YYTRANSLATE(YYX) ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
| #define | YYPACT_NINF -24 |
| #define | YYTABLE_NINF -40 |
| #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) |
| #define | YYLEX yylex (&yylval, &yylloc) |
| #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 (yyvsp--, yyssp--, yylsp--) |
| #define | YYERROR_VERBOSE_ARGS_MAXIMUM 5 |
Typedefs | |
| typedef YYSTYPE | YYSTYPE |
| typedef YYLTYPE | YYLTYPE |
| typedef short int | yysigned_char |
Enumerations | |
| enum | yytokentype { QUIT = 258, TRUE = 259, FALSE = 260, QUIET = 261, VERBOSE = 262, WHATTYPE = 263, SHOWALL = 264, DIVMOD = 265, INT = 266, STRING = 267, IDENT = 268, TOFILE = 269, ADDTOFILE = 270, FROMFILE = 271, NEG = 272 } |
Functions | |
| int | yylex (YYSTYPE *, YYLTYPE *) |
| void | yyerror (YYLTYPE *, expr *, int *, const char *) |
| YYSIZE_T | yystrlen (char *yystr) const |
| char * | yystpcpy (char *yydest, const char *yysrc) |
| YYSIZE_T | yytnamerr (char *yyres, const char *yystr) |
| void | yydestruct (char *yymsg, int yytype, YYSTYPE *yyvaluep, YYLTYPE *yylocationp) const |
| int | yyparse () |
| int | yyparse (expr *parsed_expr, int *verbosity) |
Variables | |
| const unsigned char | yytranslate [] |
| const char *const | yytname [] |
| const unsigned char | yyr1 [] |
| const unsigned char | yyr2 [] |
| const unsigned char | yydefact [] |
| const yysigned_char | yydefgoto [] |
| const short int | yypact [] |
| const yysigned_char | yypgoto [] |
| const yysigned_char | yytable [] |
| const yysigned_char | yycheck [] |
| const unsigned char | yystos [] |
|
|
Definition at line 89 of file parser.tab.c. Referenced by atlas::interpreter::Lexical_analyser::get_token(). |
|
|
Definition at line 84 of file parser.tab.c. Referenced by atlas::interpreter::Lexical_analyser::get_token(). |
|
|
Definition at line 79 of file parser.tab.c. |
|
|
Definition at line 90 of file parser.tab.c. Referenced by atlas::interpreter::Lexical_analyser::get_token(). |
|
|
Definition at line 87 of file parser.tab.c. |
|
|
Definition at line 85 of file parser.tab.c. |
|
|
Definition at line 91 of file parser.tab.c. |
|
|
Definition at line 80 of file parser.tab.c. |
|
|
Definition at line 77 of file parser.tab.c. Referenced by atlas::interpreter::Lexical_analyser::get_token(). |
|
|
Definition at line 83 of file parser.tab.c. |
|
|
Definition at line 86 of file parser.tab.c. |
|
|
Definition at line 88 of file parser.tab.c. |
|
|
Definition at line 78 of file parser.tab.c. |
|
|
Definition at line 81 of file parser.tab.c. |
|
|
Definition at line 82 of file parser.tab.c. |
|
|
Definition at line 205 of file parser.tab.c. Referenced by yyparse(). |
|
|
Value: fprintf (File, "%d.%d-%d.%d", \
(Loc).first_line, (Loc).first_column, \
(Loc).last_line, (Loc).last_column)
Definition at line 663 of file parser.tab.c. |
|
|
Definition at line 770 of file parser.tab.c. Referenced by yyparse(). |
|
|
Definition at line 769 of file parser.tab.c. Referenced by yyparse(). |
|
|
Definition at line 768 of file parser.tab.c. Referenced by yydestruct(), and yyparse(). |
|
|
Definition at line 597 of file parser.tab.c. |
|
|
Definition at line 596 of file parser.tab.c. |
|
|
Value: do \ if (yychar == YYEMPTY && yylen == 1) \ { \ yychar = (Token); \ yylval = (Value); \ yytoken = YYTRANSLATE (yychar); \ YYPOPSTACK; \ goto yybackup; \ } \ else \ { \ yyerror (&yylloc, parsed_expr, verbosity, YY_("syntax error: cannot back up")); \ YYERROR; \ } \ while (0) Definition at line 609 of file parser.tab.c. |
|
|
Definition at line 37 of file parser.tab.c. |
|
|
Definition at line 40 of file parser.tab.c. |
|
|
Definition at line 592 of file parser.tab.c. |
|
|
Value: do \ { \ YYSIZE_T yyi; \ for (yyi = 0; yyi < (Count); yyi++) \ (To)[yyi] = (From)[yyi]; \ } \ while (0) Definition at line 296 of file parser.tab.c. |
|
|
Definition at line 128 of file parser.tab.c. |
|
|
Definition at line 767 of file parser.tab.c. Referenced by yyparse(). |
|
|
Definition at line 593 of file parser.tab.c. |
|
|
Definition at line 594 of file parser.tab.c. Referenced by yyparse(). |
|
|
Definition at line 628 of file parser.tab.c. |
|
|
Definition at line 591 of file parser.tab.c. |
|
|
Definition at line 598 of file parser.tab.c. |
|
|
Definition at line 136 of file parser.tab.c. |
|
|
Referenced by yyparse(). |
|
|
Definition at line 605 of file parser.tab.c. |
|
|
Definition at line 332 of file parser.tab.c. |
|
|
Definition at line 254 of file parser.tab.c. |
|
|
Definition at line 776 of file parser.tab.c. |
|
|
Definition at line 334 of file parser.tab.c. Referenced by yyparse(). |
|
|
Definition at line 678 of file parser.tab.c. |
|
|
Value: do \ if (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 (0) Definition at line 637 of file parser.tab.c. Referenced by yyparse(). |
|
|
Definition at line 49 of file parser.tab.c. |
|
|
Definition at line 167 of file parser.tab.c. |
|
|
Definition at line 168 of file parser.tab.c. |
|
|
Definition at line 169 of file parser.tab.c. |
|
|
Definition at line 247 of file parser.tab.c. |
|
|
Definition at line 787 of file parser.tab.c. Referenced by yyparse(). |
|
|
Definition at line 347 of file parser.tab.c. |
|
|
Definition at line 339 of file parser.tab.c. |
|
|
Definition at line 341 of file parser.tab.c. |
|
|
Definition at line 343 of file parser.tab.c. |
|
|
Definition at line 337 of file parser.tab.c. Referenced by yyparse(). |
|
|
Definition at line 497 of file parser.tab.c. Referenced by yyparse(). |
|
|
|
|
|
Definition at line 46 of file parser.tab.c. |
|
|
Definition at line 607 of file parser.tab.c. |
|
|
Definition at line 635 of file parser.tab.c. |
|
|
Definition at line 194 of file parser.tab.c. Referenced by yyparse(). |
|
|
Definition at line 43 of file parser.tab.c. |
|
|
Definition at line 238 of file parser.tab.c. Referenced by yyparse(). |
|
|
Definition at line 241 of file parser.tab.c. |
|
|
Value: Definition at line 285 of file parser.tab.c. Referenced by yyparse(). |
|
|
Definition at line 239 of file parser.tab.c. Referenced by yyparse(). |
|
|
Definition at line 281 of file parser.tab.c. |
|
|
Value: do \ { \ YYSIZE_T yynewbytes; \ YYCOPY (&yyptr->Stack, Stack, yysize); \ Stack = &yyptr->Stack; \ yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ yyptr += yynewbytes / sizeof (*yyptr); \ } \ while (0) Definition at line 312 of file parser.tab.c. Referenced by yyparse(). |
|
|
Definition at line 154 of file parser.tab.c. |
|
|
Definition at line 155 of file parser.tab.c. |
|
|
Definition at line 156 of file parser.tab.c. |
|
|
Definition at line 521 of file parser.tab.c. |
|
|
Definition at line 627 of file parser.tab.c. |
|
|
Definition at line 141 of file parser.tab.c. |
|
|
Definition at line 349 of file parser.tab.c. Referenced by yyparse(). |
|
|
Definition at line 346 of file parser.tab.c. |
|
|
|
|
|
Definition at line 328 of file parser.tab.c. |
|
|
|
|
|
Definition at line 58 of file parser.tab.c. |
|
||||||||||||||||||||
|
Definition at line 946 of file parser.tab.c. References destroy_expr(), destroy_exprlist(), YYSTYPE::expression, YYSTYPE::expression_list, and YY_SYMBOL_PRINT. Referenced by yyparse(). |
|
||||||||||||||||||||
|
Definition at line 33 of file main.cpp. References YYLTYPE::first_column, YYLTYPE::first_line, YYLTYPE::last_column, and YYLTYPE::last_line. Referenced by yyparse(). |
|
||||||||||||
|
|
|
||||||||||||
|
|
Referenced by main(). |
|
||||||||||||
|
Definition at line 827 of file parser.tab.c. Referenced by yyparse(), and yytnamerr(). |
|
|
Definition at line 803 of file parser.tab.c. Referenced by yyparse(), and yytnamerr(). |
|
||||||||||||
|
Definition at line 852 of file parser.tab.c. References yystpcpy(), and yystrlen(). Referenced by yyparse(). |
|
|
Initial value:
{
0, 24, 23, 23, 27, 28, 6, 23, 23, 26,
27, 11, 12, 30, 14, 4, 5, 17, 0, 23,
17, 26, 11, 12, 13, 30, 24, 28, 17, 27,
25, 28, 19, 20, 21, 27, 25, 29, 13, 28,
40, 41, 42, 43, 44, 45, 27, 47, 48, 27,
47, 27, -1, -1, -1, 55, -1, -1, -1, 56,
60, 58, 3, 4, 5, 6, 7, 8, 9, -1,
11, 12, 13, 14, 15, 16, 17, 77, -1, -1,
-1, -1, 23, -1, 25, 4, 5, 28, -1, -1,
-1, -1, 11, 12, 13, -1, -1, -1, 17, -1,
-1, -1, -1, -1, 10, -1, 25, -1, -1, 28,
29, 17, 18, 19, 20, 21, -1, 10, -1, -1,
-1, -1, 10, 29, 17, 18, 19, 20, 21, 17,
18, 19, 20, 21, 10, -1, 29, -1, 26, -1,
-1, 17, 18, 19, 20, 21, 10, -1, -1, -1,
26, -1, -1, 17, 18, 19, 20, 21, 10, 23,
-1, -1, -1, -1, -1, 17, 18, 19, 20, 21,
10, 23, -1, -1, -1, -1, -1, 17, 18, 19,
20, 21, 10, 23, -1, -1, -1, -1, -1, 17,
18, 19, 20, 21, 10, 23, -1, -1, -1, -1,
-1, 17, 18, 19, 20, 21, 10, 23, -1, -1,
-1, 10, -1, 17, 18, 19, 20, 21, 17, 18,
19, 20, 21
}
Definition at line 549 of file parser.tab.c. Referenced by yyparse(). |
|
|
Initial value:
{
0, 0, 25, 26, 0, 0, 0, 0, 24, 27,
28, 0, 0, 0, 0, 2, 34, 34, 0, 0,
20, 0, 5, 6, 7, 28, 0, 12, 34, 0,
0, 10, 18, 35, 0, 0, 32, 35, 0, 1,
0, 0, 0, 0, 0, 0, 3, 34, 0, 0,
11, 0, 8, 9, 30, 0, 34, 31, 34, 29,
0, 19, 14, 13, 15, 16, 17, 35, 0, 0,
40, 23, 36, 37, 38, 36, 21, 0, 4, 33,
36, 22
}
Definition at line 476 of file parser.tab.c. Referenced by yyparse(). |
|
|
Initial value:
{
-1, 18, 33, 20, 34, 35, 21
}
Definition at line 490 of file parser.tab.c. Referenced by yyparse(). |
|
|
Initial value:
{
59, -21, -24, -24, -20, -16, 11, -15, -24, -24,
-23, 11, 11, -4, 11, -24, 11, 81, 18, 136,
5, 2, -24, -24, -24, -1, 148, -24, 11, 160,
172, -24, -24, 196, -17, -5, -24, 94, 19, -24,
11, 11, 11, 11, 11, 11, -24, 11, 11, 25,
-24, 8, -24, -24, -24, 11, 11, -24, 11, -24,
11, 201, 13, 13, -24, -24, -24, 112, 22, 184,
-24, -24, 196, 24, 24, 107, -24, 11, -24, -24,
124, -24
}
Definition at line 498 of file parser.tab.c. Referenced by yyparse(). |
|
|
Initial value:
{
-24, -24, 0, -24, 3, -24, -24
}
Definition at line 512 of file parser.tab.c. Referenced by yyparse(). |
|
|
Initial value:
{
0, 31, 32, 32, 32, 32, 32, 32, 32, 32,
32, 32, 32, 33, 33, 33, 33, 33, 33, 33,
33, 34, 34, 34, 34, 34, 34, 34, 34, 34,
34, 34, 34, 34, 35, 35, 35, 36, 36, 37,
37
}
Definition at line 454 of file parser.tab.c. Referenced by yyparse(). |
|
|
Initial value:
{
0, 2, 1, 2, 4, 2, 2, 2, 3, 3,
2, 3, 2, 3, 3, 3, 3, 3, 2, 3,
1, 4, 6, 4, 1, 1, 1, 1, 1, 3,
3, 3, 2, 5, 0, 1, 3, 3, 3, 1,
3
}
Definition at line 464 of file parser.tab.c. Referenced by yyparse(). |
|
|
Initial value:
{
0, 3, 4, 5, 6, 7, 8, 9, 11, 12,
13, 14, 15, 16, 17, 23, 25, 28, 32, 33,
34, 37, 23, 23, 23, 13, 33, 23, 28, 33,
33, 23, 33, 33, 35, 36, 29, 33, 35, 0,
10, 17, 18, 19, 20, 21, 23, 25, 24, 27,
23, 35, 23, 23, 26, 27, 30, 26, 30, 29,
27, 33, 33, 33, 33, 33, 33, 33, 35, 33,
13, 29, 33, 35, 35, 33, 26, 27, 23, 29,
33, 26
}
Definition at line 578 of file parser.tab.c. Referenced by yyparse(). |
|
|
Initial value:
{
19, -39, 22, 23, -39, 28, 26, 24, 27, 54,
55, 29, 30, 56, 32, 2, 3, 37, 39, 31,
38, 57, 8, 9, 25, 58, 48, 28, 14, 49,
47, 51, 43, 44, 45, 55, 16, 71, 70, 17,
61, 62, 63, 64, 65, 66, 60, 67, 69, 77,
68, 55, 0, 0, 0, 72, 0, 0, 0, 73,
75, 74, 1, 2, 3, 4, 5, 6, 7, 0,
8, 9, 10, 11, 12, 13, 14, 80, 0, 0,
0, 0, 15, 0, 16, 2, 3, 17, 0, 0,
0, 0, 8, 9, 25, 0, 0, 0, 14, 0,
0, 0, 0, 0, 40, 0, 16, 0, 0, 17,
36, 41, 42, 43, 44, 45, 0, 40, 0, 0,
0, 0, 40, 59, 41, 42, 43, 44, 45, 41,
42, 43, 44, 45, 40, 0, 79, 0, 76, 0,
0, 41, 42, 43, 44, 45, 40, 0, 0, 0,
81, 0, 0, 41, 42, 43, 44, 45, 40, 46,
0, 0, 0, 0, 0, 41, 42, 43, 44, 45,
40, 50, 0, 0, 0, 0, 0, 41, 42, 43,
44, 45, 40, 52, 0, 0, 0, 0, 0, 41,
42, 43, 44, 45, 40, 53, 0, 0, 0, 0,
0, 41, 42, 43, 44, 45, 40, 78, 0, 0,
0, -40, 0, 41, 42, 43, 44, 45, 41, 42,
43, 44, 45
}
Definition at line 522 of file parser.tab.c. Referenced by yyparse(). |
|
|
Initial value:
{
"$end", "error", "$undefined", "QUIT", "TRUE", "FALSE", "QUIET",
"VERBOSE", "WHATTYPE", "SHOWALL", "DIVMOD", "INT", "STRING", "IDENT",
"TOFILE", "ADDTOFILE", "FROMFILE", "'-'", "'+'", "'*'", "'/'", "'%'",
"NEG", "'\\n'", "'='", "'['", "']'", "','", "'('", "')'", "'|'",
"$accept", "input", "exp", "primary", "commalist", "commabarlist",
"idlist", 0
}
Definition at line 430 of file parser.tab.c. Referenced by yyparse(). |
|
|
Definition at line 353 of file parser.tab.c. |
1.3.9.1