dcop
yacc.cc File Reference
#include <config.h>
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include <qstring.h>
Include dependency graph for yacc.cc:
Go to the source code of this file.
Defines | |
#define | AMP_ENTITY "&" |
#define | T_ACCESS 295 |
#define | T_AMPERSAND 292 |
#define | T_ARRAY_CLOSE 310 |
#define | T_ARRAY_OPEN 309 |
#define | T_ASTERISK 288 |
#define | T_CHAR 311 |
#define | T_CHARACTER_LITERAL 259 |
#define | T_CLASS 265 |
#define | T_COLON 271 |
#define | T_COMMA 287 |
#define | T_CONST 278 |
#define | T_DCOP 312 |
#define | T_DCOP_AREA 313 |
#define | T_DCOP_SIGNAL_AREA 314 |
#define | T_DOUBLE_LITERAL 260 |
#define | T_ENUM 296 |
#define | T_EQUAL 305 |
#define | T_EXTERN 293 |
#define | T_EXTERN_C 294 |
#define | T_FALSE 302 |
#define | T_FRIEND 280 |
#define | T_FUNOPERATOR 319 |
#define | T_GREATER 291 |
#define | T_IDENTIFIER 261 |
#define | T_INCLUDE 264 |
#define | T_INLINE 279 |
#define | T_INT 308 |
#define | T_INTEGER_LITERAL 262 |
#define | T_LEFT_CURLY_BRACKET 267 |
#define | T_LEFT_PARANTHESIS 268 |
#define | T_LESS 290 |
#define | T_LONG 317 |
#define | T_MINUS 286 |
#define | T_MISCOPERATOR 320 |
#define | T_MUTABLE 304 |
#define | T_NAMESPACE 297 |
#define | T_NULL 307 |
#define | T_PLUS 285 |
#define | T_PRIVATE 276 |
#define | T_PROTECTED 274 |
#define | T_PUBLIC 273 |
#define | T_RETURN 281 |
#define | T_RIGHT_CURLY_BRACKET 269 |
#define | T_RIGHT_PARANTHESIS 270 |
#define | T_SCOPE 306 |
#define | T_SEMICOLON 272 |
#define | T_SHIFT 321 |
#define | T_SHORT 318 |
#define | T_SIGNAL 282 |
#define | T_SIGNED 315 |
#define | T_SLOT 283 |
#define | T_STATIC 303 |
#define | T_STRING_LITERAL 263 |
#define | T_STRUCT 266 |
#define | T_TILDE 289 |
#define | T_TRIPE_DOT 275 |
#define | T_TRIPLE_DOT 300 |
#define | T_TRUE 301 |
#define | T_TYPEDEF 284 |
#define | T_UNIMPORTANT 258 |
#define | T_UNKNOWN 299 |
#define | T_UNSIGNED 316 |
#define | T_USING 298 |
#define | T_VIRTUAL 277 |
#define | YY_REDUCE_PRINT(Rule) |
#define | YY_STACK_PRINT(Bottom, Top) |
#define | YYABORT goto yyabortlab |
#define | YYACCEPT goto yyacceptlab |
#define | YYBACKUP(Token, Value) |
#define | YYBISON 1 |
#define | yyclearin (yychar = YYEMPTY) |
#define | YYCOPY(To, From, Count) |
#define | YYDEBUG 1 |
#define | YYDPRINTF(Args) |
#define | YYDSYMPRINT(Args) |
#define | YYDSYMPRINTF(Title, Token, Value, Location) |
#define | YYEMPTY (-2) |
#define | YYEOF 0 |
#define | YYERRCODE 256 |
#define | yyerrok (yyerrstatus = 0) |
#define | YYERROR goto yyerrorlab |
#define | YYERROR_VERBOSE 1 |
#define | YYERROR_VERBOSE |
#define | YYFAIL goto yyerrlab |
#define | YYFINAL 5 |
#define | YYFPRINTF fprintf |
#define | YYFREE free |
#define | YYINITDEPTH 200 |
#define | YYLAST 559 |
#define | YYLEX yylex () |
#define | YYLLOC_DEFAULT(Current, Rhs, N) |
#define | YYLSP_NEEDED 0 |
#define | YYMALLOC malloc |
#define | YYMAXDEPTH 10000 |
#define | YYMAXUTOK 321 |
#define | YYNNTS 53 |
#define | YYNRULES 185 |
#define | YYNSTATES 374 |
#define | YYNTOKENS 67 |
#define | YYPACT_NINF -191 |
#define | YYPOPSTACK (yyvsp--, yyssp--) |
#define | YYPURE 0 |
#define | YYRECOVERING() (!!yyerrstatus) |
#define | YYSIZE_T unsigned int |
#define | YYSKELETON_NAME "yacc.c" |
#define | YYSTACK_ALLOC YYMALLOC |
#define | YYSTACK_BYTES(N) |
#define | YYSTACK_FREE YYFREE |
#define | YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) |
#define | YYSTACK_RELOCATE(Stack) |
#define | yystype YYSTYPE |
#define | YYSTYPE_IS_DECLARED 1 |
#define | YYSTYPE_IS_TRIVIAL 1 |
#define | YYTABLE_NINF -177 |
#define | YYTERROR 1 |
#define | YYTRANSLATE(YYX) ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
#define | YYUNDEFTOK 2 |
Typedefs | |
typedef short int | yysigned_char |
Enumerations | |
enum | yytokentype { T_UNIMPORTANT = 258, T_CHARACTER_LITERAL = 259, T_DOUBLE_LITERAL = 260, T_IDENTIFIER = 261, T_INTEGER_LITERAL = 262, T_STRING_LITERAL = 263, T_INCLUDE = 264, T_CLASS = 265, T_STRUCT = 266, T_LEFT_CURLY_BRACKET = 267, T_LEFT_PARANTHESIS = 268, T_RIGHT_CURLY_BRACKET = 269, T_RIGHT_PARANTHESIS = 270, T_COLON = 271, T_SEMICOLON = 272, T_PUBLIC = 273, T_PROTECTED = 274, T_TRIPE_DOT = 275, T_PRIVATE = 276, T_VIRTUAL = 277, T_CONST = 278, T_INLINE = 279, T_FRIEND = 280, T_RETURN = 281, T_SIGNAL = 282, T_SLOT = 283, T_TYPEDEF = 284, T_PLUS = 285, T_MINUS = 286, T_COMMA = 287, T_ASTERISK = 288, T_TILDE = 289, T_LESS = 290, T_GREATER = 291, T_AMPERSAND = 292, T_EXTERN = 293, T_EXTERN_C = 294, T_ACCESS = 295, T_ENUM = 296, T_NAMESPACE = 297, T_USING = 298, T_UNKNOWN = 299, T_TRIPLE_DOT = 300, T_TRUE = 301, T_FALSE = 302, T_STATIC = 303, T_MUTABLE = 304, T_EQUAL = 305, T_SCOPE = 306, T_NULL = 307, T_INT = 308, T_ARRAY_OPEN = 309, T_ARRAY_CLOSE = 310, T_CHAR = 311, T_DCOP = 312, T_DCOP_AREA = 313, T_DCOP_SIGNAL_AREA = 314, T_SIGNED = 315, T_UNSIGNED = 316, T_LONG = 317, T_SHORT = 318, T_FUNOPERATOR = 319, T_MISCOPERATOR = 320, T_SHIFT = 321, T_UNIMPORTANT = 258, T_CHARACTER_LITERAL = 259, T_DOUBLE_LITERAL = 260, T_IDENTIFIER = 261, T_INTEGER_LITERAL = 262, T_STRING_LITERAL = 263, T_INCLUDE = 264, T_CLASS = 265, T_STRUCT = 266, T_LEFT_CURLY_BRACKET = 267, T_LEFT_PARANTHESIS = 268, T_RIGHT_CURLY_BRACKET = 269, T_RIGHT_PARANTHESIS = 270, T_COLON = 271, T_SEMICOLON = 272, T_PUBLIC = 273, T_PROTECTED = 274, T_TRIPE_DOT = 275, T_PRIVATE = 276, T_VIRTUAL = 277, T_CONST = 278, T_INLINE = 279, T_FRIEND = 280, T_RETURN = 281, T_SIGNAL = 282, T_SLOT = 283, T_TYPEDEF = 284, T_PLUS = 285, T_MINUS = 286, T_COMMA = 287, T_ASTERISK = 288, T_TILDE = 289, T_LESS = 290, T_GREATER = 291, T_AMPERSAND = 292, T_EXTERN = 293, T_EXTERN_C = 294, T_ACCESS = 295, T_ENUM = 296, T_NAMESPACE = 297, T_USING = 298, T_UNKNOWN = 299, T_TRIPLE_DOT = 300, T_TRUE = 301, T_FALSE = 302, T_STATIC = 303, T_MUTABLE = 304, T_EQUAL = 305, T_SCOPE = 306, T_NULL = 307, T_INT = 308, T_ARRAY_OPEN = 309, T_ARRAY_CLOSE = 310, T_CHAR = 311, T_DCOP = 312, T_DCOP_AREA = 313, T_DCOP_SIGNAL_AREA = 314, T_SIGNED = 315, T_UNSIGNED = 316, T_LONG = 317, T_SHORT = 318, T_FUNOPERATOR = 319, T_MISCOPERATOR = 320, T_SHIFT = 321 } |
Functions | |
void | dcopidlInitFlex (const char *_code) |
void | dcopidlParse (const char *_code) |
static void | yy_stack_print (bottom, top) short int *bottom |
void | yyerror (const char *s) |
int | yylex () |
int | yyparse () |
static YYSIZE_T | yystrlen (yystr) const char *yystr |
Variables | |
static int | dcop_area = 0 |
static int | dcop_signal_area = 0 |
int | function_mode |
int | idl_line_no |
static QString | in_namespace ("") |
short int * | top |
int | yychar |
static const short int | yycheck [] |
static const unsigned char | yydefact [] |
static const short int | yydefgoto [] |
YYSTYPE | yylval |
int | yynerrs |
static const short int | yypact [] |
static const short int | yypgoto [] |
static const unsigned short int | yyprhs [] |
static const unsigned char | yyr1 [] |
static const unsigned char | yyr2 [] |
static const yysigned_char | yyrhs [] |
static const unsigned short int | yyrline [] |
const char * | yysrc |
static const unsigned char | yystos [] |
static const short int | yytable [] |
static const char *const | yytname [] |
static const unsigned char | yytranslate [] |
int | yytype |
YYSTYPE * | yyvaluep |
Define Documentation
#define YY_REDUCE_PRINT | ( | Rule | ) |
Value:
do { \ if (yydebug) \ yy_reduce_print (Rule); \ } while (0)
#define YY_STACK_PRINT | ( | Bottom, | |||
Top | ) |
Value:
do { \ if (yydebug) \ yy_stack_print ((Bottom), (Top)); \ } while (0)
#define YYBACKUP | ( | Token, | |||
Value | ) |
#define YYCOPY | ( | To, | |||
From, | |||||
Count | ) |
#define YYDPRINTF | ( | Args | ) |
#define YYDSYMPRINT | ( | Args | ) |
#define YYDSYMPRINTF | ( | Title, | |||
Token, | |||||
Value, | |||||
Location | ) |
#define YYLLOC_DEFAULT | ( | Current, | |||
Rhs, | |||||
N | ) |
#define YYPOPSTACK (yyvsp--, yyssp--) |
#define YYSTACK_BYTES | ( | N | ) |
Value:
((N) * (sizeof (short int) + sizeof (YYSTYPE)) \ + YYSTACK_GAP_MAXIMUM)
#define YYSTACK_RELOCATE | ( | Stack | ) |
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)
#define YYTRANSLATE | ( | YYX | ) | ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
Typedef Documentation
typedef short int yysigned_char |
Enumeration Type Documentation
enum yytokentype |
- Enumerator:
Function Documentation
void dcopidlInitFlex | ( | const char * | _code | ) |
static void yy_stack_print | ( | bottom | , | |
top | ||||
) | [static] |
int yylex | ( | ) |
static YYSIZE_T yystrlen | ( | yystr | ) | const [static] |
Variable Documentation
int dcop_signal_area = 0 [static] |
int function_mode |
Definition at line 850 of file scanner.cc.
int idl_line_no |
QString in_namespace("") [static] |
const short int yydefgoto[] [static] |
Initial value:
{ -1, 2, 3, 156, 26, 192, 183, 214, 171, 172, 173, 174, 175, 27, 151, 152, 153, 94, 343, 176, 177, 109, 110, 216, 217, 178, 325, 29, 80, 122, 30, 126, 127, 31, 291, 124, 197, 359, 32, 137, 33, 360, 316, 317, 179, 86, 87, 146, 147, 142, 81, 82, 180 }
const short int yypgoto[] [static] |
Initial value:
{ -191, 9, -191, 314, -191, -191, -2, -191, -191, 301, -191, -191, -191, -8, 238, -191, 243, -33, -191, 77, 473, -91, -191, -72, -111, -191, 155, -191, -9, -123, 1, 274, -191, 41, -190, 277, -97, -124, -78, -191, 22, 121, -191, 134, 6, -191, -41, 335, -191, -191, -191, 348, 5 }
const unsigned short int yyprhs[] [static] |
Initial value:
{ 0, 0, 3, 7, 8, 11, 16, 17, 19, 20, 27, 35, 39, 43, 49, 50, 58, 63, 69, 72, 77, 85, 94, 97, 99, 101, 103, 106, 107, 109, 111, 113, 115, 117, 119, 121, 122, 126, 129, 132, 135, 137, 141, 143, 148, 152, 154, 157, 161, 164, 166, 167, 169, 171, 174, 178, 181, 184, 187, 190, 193, 196, 202, 207, 212, 217, 224, 229, 236, 243, 251, 258, 265, 271, 275, 277, 281, 283, 285, 287, 290, 292, 294, 296, 300, 304, 312, 322, 323, 325, 327, 330, 332, 335, 338, 342, 345, 349, 352, 356, 359, 363, 365, 367, 370, 372, 375, 377, 380, 383, 386, 388, 389, 391, 395, 397, 399, 402, 405, 410, 417, 421, 423, 426, 428, 432, 436, 439, 442, 446, 449, 451, 454, 458, 460, 464, 467, 469, 470, 473, 479, 481, 483, 485, 487, 492, 493, 495, 497, 499, 501, 503, 505, 512, 520, 522, 526, 527, 532, 534, 538, 541, 547, 551, 557, 565, 572, 576, 578, 580, 584, 589, 592, 593, 595, 598, 599, 601, 605, 608, 611, 615, 621, 627, 633, 640 }
const unsigned char yyr1[] [static] |
Initial value:
{ 0, 67, 68, 68, 69, 69, 69, 70, 70, 71, 71, 71, 71, 71, 72, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 73, 73, 74, 74, 75, 75, 75, 76, 76, 76, 77, 77, 78, 79, 80, 80, 81, 81, 82, 82, 83, 83, 84, 84, 85, 85, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 87, 87, 87, 87, 88, 88, 89, 89, 90, 90, 90, 90, 90, 91, 91, 91, 92, 92, 93, 93, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 95, 95, 96, 96, 96, 97, 97, 97, 97, 97, 97, 98, 98, 99, 99, 100, 100, 100, 100, 100, 100, 100, 100, 101, 101, 102, 102, 102, 103, 103, 103, 104, 104, 104, 104, 104, 105, 105, 106, 106, 106, 106, 106, 107, 107, 108, 108, 108, 109, 110, 110, 111, 111, 111, 111, 111, 111, 111, 112, 113, 113, 113, 114, 114, 115, 116, 116, 117, 117, 117, 118, 119, 119, 119, 119, 119, 119 }
const unsigned char yyr2[] [static] |
Initial value:
{ 0, 2, 3, 0, 2, 4, 0, 1, 0, 6, 7, 3, 3, 5, 0, 7, 4, 5, 2, 4, 7, 8, 2, 1, 1, 1, 2, 0, 1, 1, 1, 1, 1, 1, 1, 0, 3, 2, 2, 2, 1, 3, 1, 4, 3, 1, 2, 3, 2, 1, 0, 1, 1, 2, 3, 2, 2, 2, 2, 2, 2, 5, 4, 4, 4, 6, 4, 6, 6, 7, 6, 6, 5, 3, 1, 3, 1, 1, 1, 2, 1, 1, 1, 3, 3, 7, 9, 0, 1, 1, 2, 1, 2, 2, 3, 2, 3, 2, 3, 2, 3, 1, 1, 2, 1, 2, 1, 2, 2, 2, 1, 0, 1, 3, 1, 1, 2, 2, 4, 6, 3, 1, 2, 1, 3, 3, 2, 2, 3, 2, 1, 2, 3, 1, 3, 2, 1, 0, 2, 5, 1, 1, 1, 1, 4, 0, 1, 1, 1, 1, 1, 1, 6, 7, 1, 3, 0, 4, 1, 3, 2, 5, 3, 5, 7, 6, 3, 1, 1, 3, 4, 2, 0, 1, 2, 0, 1, 3, 2, 2, 3, 5, 5, 5, 6, 7 }
const yysigned_char yyrhs[] [static] |
const unsigned short int yyrline[] [static] |
Initial value:
{ 0, 164, 164, 167, 171, 175, 179, 184, 185, 189, 198, 207, 210, 213, 217, 216, 228, 231, 234, 237, 240, 243, 246, 249, 252, 255, 261, 262, 265, 265, 267, 267, 267, 269, 269, 269, 272, 277, 285, 293, 305, 308, 316, 322, 331, 335, 342, 346, 354, 358, 366, 368, 372, 376, 380, 384, 388, 392, 396, 400, 404, 408, 412, 416, 420, 424, 428, 432, 436, 443, 444, 445, 446, 450, 451, 455, 456, 460, 461, 462, 463, 464, 468, 469, 470, 474, 484, 493, 496, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 526, 527, 532, 535, 536, 544, 545, 546, 547, 548, 554, 565, 569, 577, 582, 591, 596, 603, 608, 613, 620, 625, 630, 638, 642, 649, 658, 666, 676, 678, 681, 688, 691, 694, 697, 700, 706, 707, 711, 711, 711, 711, 711, 715, 737, 748, 749, 750, 755, 760, 761, 765, 769, 773, 777, 783, 789, 795, 808, 815, 816, 817, 821, 822, 826, 830, 831, 834, 835, 836, 839, 843, 844, 845, 846, 847, 848 }
const char* const yytname[] [static] |
Initial value:
{ "$end", "error", "$undefined", "T_UNIMPORTANT", "T_CHARACTER_LITERAL", "T_DOUBLE_LITERAL", "T_IDENTIFIER", "T_INTEGER_LITERAL", "T_STRING_LITERAL", "T_INCLUDE", "T_CLASS", "T_STRUCT", "T_LEFT_CURLY_BRACKET", "T_LEFT_PARANTHESIS", "T_RIGHT_CURLY_BRACKET", "T_RIGHT_PARANTHESIS", "T_COLON", "T_SEMICOLON", "T_PUBLIC", "T_PROTECTED", "T_TRIPE_DOT", "T_PRIVATE", "T_VIRTUAL", "T_CONST", "T_INLINE", "T_FRIEND", "T_RETURN", "T_SIGNAL", "T_SLOT", "T_TYPEDEF", "T_PLUS", "T_MINUS", "T_COMMA", "T_ASTERISK", "T_TILDE", "T_LESS", "T_GREATER", "T_AMPERSAND", "T_EXTERN", "T_EXTERN_C", "T_ACCESS", "T_ENUM", "T_NAMESPACE", "T_USING", "T_UNKNOWN", "T_TRIPLE_DOT", "T_TRUE", "T_FALSE", "T_STATIC", "T_MUTABLE", "T_EQUAL", "T_SCOPE", "T_NULL", "T_INT", "T_ARRAY_OPEN", "T_ARRAY_CLOSE", "T_CHAR", "T_DCOP", "T_DCOP_AREA", "T_DCOP_SIGNAL_AREA", "T_SIGNED", "T_UNSIGNED", "T_LONG", "T_SHORT", "T_FUNOPERATOR", "T_MISCOPERATOR", "T_SHIFT", "$accept", "main", "includes", "dcoptag", "declaration", "@1", "member_list", "bool_value", "nodcop_area", "sigslot", "nodcop_area_begin", "dcop_area_begin", "dcop_signal_area_begin", "Identifier", "super_class_name", "super_class", "super_classes", "class_header", "opt_semicolon", "body", "enum", "enum_list", "enum_item", "number", "int_expression", "typedef", "const_qualifier", "int_type", "asterisks", "params", "type_name", "templ_type_list", "templ_type", "type", "type_list", "param", "default", "value", "virtual_qualifier", "operator", "function_header", "values", "init_item", "init_list", "function", "function_begin", "function_body", "function_lines", "function_line", "Identifier_list_rest", "Identifier_list_entry", "Identifier_list", "member", 0 }
const unsigned char yytranslate[] [static] |