#define YY_FLEX_MINOR_VERSION 5
#include <stdio.h>
+#include <unistd.h>
/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
#ifdef __cplusplus
#include <stdlib.h>
-#include <unistd.h>
/* Use prototypes in function declarations. */
#define YY_USE_PROTOS
*yy_cp = '\0'; \
yy_c_buf_p = yy_cp;
-#define YY_NUM_RULES 62
-#define YY_END_OF_BUFFER 63
-static yyconst short int yy_acclist[293] =
+#define YY_NUM_RULES 89
+#define YY_END_OF_BUFFER 90
+static yyconst short int yy_acclist[420] =
{ 0,
- 63, 61, 62, 60, 61, 62, 1, 60, 62, 61,
- 62, 61, 62, 61, 62, 11, 61, 62, 1, 62,
- 11, 61, 62, 26, 61, 62, 1, 27, 62, 20,
- 26, 61, 62, 26, 61, 62, 26, 61, 62, 26,
- 61, 62, 24, 26, 61, 62, 25, 26, 61, 62,
- 26, 61, 62, 23, 61, 62, 22, 23, 61, 62,
- 23, 61, 62, 61, 62, 61, 62, 56, 61, 62,
- 56, 61, 62, 57, 61, 62, 61, 62, 61, 62,
- 54, 61, 62, 54, 61, 62, 56, 61, 62, 56,
- 61, 62, 56, 61, 62, 56, 61, 62, 56, 61,
-
- 62, 56, 61, 62, 56, 61, 62, 56, 61, 62,
- 56, 61, 62, 56, 61, 62, 56, 61, 62, 56,
- 61, 62, 56, 61, 62, 56, 61, 62, 58, 61,
- 62, 59, 61, 62, 6, 13, 10, 7, 19, 14,
- 21, 8, 56, 55, 56, 54, 9, 54, 54, 56,
- 56, 56, 56, 56, 56, 56, 56, 56, 56, 56,
- 56, 56, 56, 56, 56, 56, 56, 56, 56, 56,
- 2, 12, 15, 17, 3, 4, 55, 56, 54, 5,
- 54, 54, 56, 56, 56, 56, 56, 56, 56, 38,
- 56, 56, 56, 56, 56, 56, 56, 56, 56, 56,
-
- 56, 56, 56, 56, 56, 56, 16, 18, 29, 56,
- 56, 41, 56, 56, 56, 33, 56, 56, 56, 47,
- 56, 36, 56, 51, 56, 56, 56, 56, 56, 56,
- 56, 56, 52, 56, 56, 56, 56, 30, 56, 28,
- 56, 50, 56, 56, 48, 56, 39, 56, 56, 56,
- 56, 56, 37, 56, 56, 56, 56, 32, 56, 56,
- 56, 56, 40, 56, 56, 56, 56, 42, 56, 46,
- 56, 34, 56, 31, 56, 56, 56, 56, 53, 56,
- 56, 43, 56, 56, 45, 56, 44, 56, 49, 56,
- 35, 56
-
+ 90, 87, 89, 86, 87, 89, 1, 88, 89, 87,
+ 88, 89, 87, 89, 87, 89, 86, 87, 89, 87,
+ 89, 87, 89, 87, 89, 27, 87, 89, 1, 28,
+ 88, 89, 27, 87, 88, 89, 27, 87, 89, 27,
+ 87, 89, 27, 87, 89, 50, 87, 89, 1, 51,
+ 88, 89, 50, 87, 88, 89, 43, 50, 87, 89,
+ 50, 87, 89, 50, 87, 89, 50, 87, 89, 48,
+ 50, 87, 89, 49, 50, 87, 89, 50, 87, 89,
+ 50, 87, 89, 46, 87, 89, 1, 47, 88, 89,
+ 46, 87, 88, 89, 45, 46, 87, 89, 46, 87,
+
+ 89, 46, 87, 89, 87, 89, 87, 89, 78, 87,
+ 89, 78, 87, 89, 87, 89, 81, 87, 89, 81,
+ 87, 89, 81, 87, 89, 81, 87, 89, 83, 87,
+ 89, 87, 89, 87, 89, 87, 89, 81, 87, 89,
+ 81, 87, 89, 81, 87, 89, 81, 87, 89, 81,
+ 87, 89, 81, 87, 89, 81, 87, 89, 81, 87,
+ 89, 81, 87, 89, 81, 87, 89, 81, 87, 89,
+ 81, 87, 89, 84, 87, 89, 85, 87, 89, 10,
+ 87, 89, 10, 87, 88, 89, 10, 87, 89, 10,
+ 87, 89, 10, 87, 89, 10, 87, 89, 15, 87,
+
+ 89, 15, 87, 88, 89, 15, 87, 89, 15, 87,
+ 89, 15, 87, 89, 15, 87, 89, 18, 87, 89,
+ 18, 87, 88, 89, 18, 87, 89, 18, 87, 89,
+ 22, 34, 26, 23, 42, 35, 44, 78, 24, 78,
+ 78, 80, 81, 79, 81, 81, 81, 25, 82, 81,
+ 81, 81, 81, 81, 81, 81, 81, 81, 81, 81,
+ 81, 81, 81, 81, 81, 81, 81, 9, 7, 14,
+ 11, 13, 12, 14, 17, 16, 3, 29, 33, 40,
+ 36, 38, 19, 78, 20, 78, 78, 80, 80, 79,
+ 81, 81, 81, 69, 21, 81, 81, 81, 81, 81,
+
+ 81, 81, 64, 81, 81, 81, 81, 81, 81, 81,
+ 81, 81, 81, 81, 81, 81, 12, 30, 31, 32,
+ 41, 37, 39, 80, 81, 55, 81, 54, 81, 6,
+ 81, 67, 81, 81, 81, 81, 59, 81, 81, 62,
+ 81, 81, 81, 81, 81, 81, 81, 81, 81, 81,
+ 81, 56, 81, 8, 52, 81, 54, 81, 68, 81,
+ 81, 65, 81, 81, 81, 81, 81, 63, 81, 81,
+ 81, 81, 58, 81, 81, 81, 81, 81, 66, 81,
+ 81, 81, 81, 70, 81, 76, 81, 60, 81, 57,
+ 81, 81, 81, 4, 81, 81, 81, 71, 81, 81,
+
+ 81, 75, 81, 74, 81, 81, 77, 81, 81, 61,
+ 81, 73, 81, 72, 81, 4, 2, 5, 53
} ;
-static yyconst short int yy_accept[217] =
+static yyconst short int yy_accept[376] =
{ 0,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 2, 4, 7, 10, 12, 14, 16,
- 19, 21, 24, 27, 30, 34, 37, 40, 43, 47,
- 51, 54, 57, 61, 64, 66, 68, 71, 74, 77,
- 79, 81, 84, 87, 90, 93, 96, 99, 102, 105,
- 108, 111, 114, 117, 120, 123, 126, 129, 132, 135,
- 136, 136, 136, 136, 137, 138, 138, 138, 138, 139,
- 139, 140, 141, 142, 143, 143, 143, 144, 145, 146,
- 147, 148, 148, 148, 149, 149, 149, 150, 151, 152,
- 153, 154, 155, 156, 157, 158, 159, 160, 161, 162,
-
- 163, 164, 165, 166, 167, 168, 169, 170, 171, 171,
- 172, 172, 173, 173, 173, 174, 175, 175, 176, 176,
- 177, 177, 178, 179, 180, 180, 181, 182, 183, 184,
- 185, 186, 187, 188, 189, 190, 192, 193, 194, 195,
- 196, 197, 198, 199, 200, 201, 202, 203, 204, 205,
- 206, 207, 207, 208, 209, 211, 212, 214, 215, 216,
- 218, 219, 220, 222, 224, 226, 227, 228, 229, 230,
- 231, 232, 233, 235, 236, 237, 238, 240, 241, 242,
- 244, 245, 247, 249, 250, 251, 252, 253, 255, 256,
- 257, 258, 260, 261, 262, 263, 265, 266, 267, 268,
-
- 270, 272, 274, 276, 277, 278, 279, 281, 282, 284,
- 285, 287, 289, 291, 293, 293
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 2,
+ 4, 7, 10, 13, 15, 17, 20, 22, 24, 26,
+ 29, 33, 37, 40, 43, 46, 49, 53, 57, 61,
+ 64, 67, 70, 74, 78, 81, 84, 87, 91, 95,
+ 99, 102, 105, 107, 109, 112, 115, 117, 120, 123,
+ 126, 129, 132, 134, 136, 138, 141, 144, 147, 150,
+ 153, 156, 159, 162, 165, 168, 171, 174, 177, 180,
+ 183, 187, 190, 193, 196, 199, 202, 206, 209, 212,
+ 215, 218, 221, 225, 228, 231, 232, 232, 232, 232,
+
+ 232, 232, 232, 232, 232, 232, 233, 233, 234, 234,
+ 234, 234, 234, 234, 235, 235, 236, 236, 236, 237,
+ 238, 239, 240, 240, 240, 241, 241, 241, 242, 243,
+ 244, 245, 246, 247, 248, 248, 249, 249, 249, 249,
+ 250, 251, 252, 253, 254, 255, 256, 257, 258, 259,
+ 260, 261, 262, 263, 264, 265, 266, 267, 268, 269,
+ 269, 269, 269, 270, 270, 271, 271, 271, 271, 272,
+ 273, 273, 275, 276, 277, 277, 278, 278, 278, 278,
+ 278, 279, 279, 279, 280, 280, 280, 280, 280, 281,
+ 281, 281, 281, 282, 283, 283, 284, 284, 285, 285,
+
+ 286, 287, 288, 289, 290, 291, 292, 293, 294, 295,
+ 295, 295, 296, 296, 296, 297, 298, 299, 300, 301,
+ 302, 303, 305, 306, 307, 308, 309, 310, 311, 312,
+ 313, 314, 315, 316, 317, 317, 318, 318, 318, 318,
+ 319, 319, 320, 321, 321, 321, 321, 322, 323, 324,
+ 324, 325, 326, 328, 330, 330, 331, 332, 334, 335,
+ 336, 337, 339, 340, 342, 343, 344, 345, 346, 347,
+ 348, 349, 350, 351, 352, 354, 354, 355, 355, 355,
+ 356, 356, 356, 356, 356, 356, 356, 356, 357, 359,
+ 361, 362, 364, 365, 366, 367, 368, 370, 371, 372,
+
+ 373, 375, 376, 377, 377, 377, 377, 377, 377, 377,
+ 377, 378, 379, 381, 382, 383, 384, 386, 388, 390,
+ 392, 393, 394, 395, 395, 395, 395, 395, 395, 396,
+ 397, 398, 400, 401, 402, 404, 404, 404, 404, 404,
+ 404, 404, 406, 407, 409, 410, 412, 412, 412, 412,
+ 412, 412, 412, 412, 414, 416, 416, 417, 417, 417,
+ 417, 418, 418, 418, 418, 418, 419, 419, 419, 419,
+ 419, 419, 419, 420, 420
} ;
static yyconst int yy_ec[256] =
{ 0,
1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
+ 1, 4, 5, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 2, 1, 4, 1, 1, 5, 1, 6, 1,
- 1, 7, 1, 1, 1, 8, 9, 10, 11, 11,
- 11, 11, 11, 11, 11, 12, 12, 13, 1, 1,
- 1, 1, 1, 1, 14, 14, 14, 14, 14, 14,
- 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
- 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
- 1, 16, 1, 1, 15, 1, 17, 18, 19, 20,
-
- 21, 22, 23, 24, 25, 15, 26, 27, 28, 29,
- 30, 31, 15, 32, 33, 34, 35, 36, 15, 37,
- 38, 15, 39, 1, 40, 1, 1, 1, 1, 1,
+ 1, 6, 1, 7, 8, 1, 9, 1, 10, 11,
+ 12, 13, 1, 1, 1, 14, 15, 16, 17, 18,
+ 18, 18, 18, 18, 18, 19, 19, 20, 1, 21,
+ 1, 22, 1, 1, 23, 23, 23, 23, 24, 23,
+ 25, 25, 26, 25, 25, 25, 25, 25, 25, 25,
+ 25, 27, 28, 25, 25, 25, 25, 25, 25, 25,
+ 29, 30, 31, 1, 25, 1, 32, 33, 34, 35,
+
+ 36, 37, 38, 39, 40, 25, 25, 41, 42, 43,
+ 44, 45, 46, 47, 48, 49, 50, 51, 52, 53,
+ 25, 25, 54, 1, 55, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1
} ;
-static yyconst int yy_meta[41] =
+static yyconst int yy_meta[56] =
{ 0,
- 1, 1, 2, 1, 1, 1, 1, 1, 1, 3,
- 3, 3, 4, 5, 6, 1, 5, 5, 5, 5,
- 5, 5, 6, 6, 6, 6, 6, 6, 6, 6,
- 6, 6, 6, 6, 6, 6, 6, 6, 1, 1
+ 1, 2, 3, 4, 4, 2, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 5, 5, 5, 5, 6,
+ 1, 1, 7, 7, 8, 8, 8, 8, 1, 1,
+ 9, 7, 7, 7, 7, 7, 7, 8, 8, 8,
+ 8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
+ 8, 8, 8, 1, 1
} ;
-static yyconst short int yy_base[231] =
+static yyconst short int yy_base[402] =
{ 0,
- 0, 2, 3, 5, 19, 57, 10, 13, 97, 0,
- 137, 0, 491, 492, 492, 492, 11, 463, 0, 492,
- 492, 480, 492, 492, 492, 11, 23, 0, 492, 492,
- 448, 492, 492, 0, 24, 0, 474, 2, 492, 26,
- 33, 33, 44, 33, 40, 44, 54, 55, 56, 58,
- 59, 165, 167, 166, 168, 63, 65, 492, 492, 492,
- 483, 468, 445, 492, 492, 8, 477, 476, 492, 478,
- 492, 492, 492, 492, 477, 466, 465, 464, 173, 172,
- 492, 473, 177, 185, 197, 0, 202, 64, 198, 185,
- 191, 203, 204, 205, 208, 209, 66, 68, 210, 211,
-
- 73, 212, 214, 215, 217, 219, 227, 220, 472, 492,
- 441, 492, 467, 466, 492, 492, 468, 492, 467, 492,
- 456, 455, 230, 239, 464, 492, 243, 0, 233, 243,
- 244, 247, 248, 249, 253, 453, 251, 254, 256, 258,
- 259, 260, 261, 265, 266, 267, 268, 271, 273, 274,
- 172, 432, 492, 492, 451, 279, 450, 280, 286, 449,
- 281, 287, 448, 447, 446, 290, 291, 292, 299, 297,
- 312, 298, 445, 301, 303, 305, 444, 492, 306, 443,
- 307, 442, 441, 319, 321, 322, 323, 439, 324, 325,
- 326, 395, 328, 330, 335, 389, 331, 339, 337, 362,
-
- 361, 360, 358, 340, 341, 342, 356, 349, 354, 352,
- 353, 216, 71, 36, 492, 376, 382, 388, 394, 400,
- 406, 408, 412, 418, 424, 430, 434, 438, 444, 448
+ 0, 33, 4, 5, 17, 78, 16, 46, 133, 919,
+ 175, 918, 47, 53, 60, 89, 65, 93, 925, 928,
+ 928, 928, 928, 1, 883, 27, 38, 30, 887, 928,
+ 928, 928, 907, 190, 893, 928, 928, 928, 928, 70,
+ 13, 0, 928, 928, 192, 865, 928, 928, 928, 928,
+ 0, 193, 93, 30, 221, 99, 0, 899, 62, 10,
+ 84, 928, 112, 92, 225, 171, 183, 70, 79, 173,
+ 185, 177, 69, 216, 228, 226, 231, 928, 928, 928,
+ 928, 903, 200, 243, 255, 928, 928, 902, 270, 248,
+ 279, 913, 912, 244, 284, 928, 911, 881, 258, 876,
+
+ 289, 871, 224, 244, 80, 928, 864, 928, 0, 899,
+ 245, 898, 897, 928, 903, 928, 295, 862, 928, 928,
+ 290, 928, 901, 294, 300, 310, 0, 323, 883, 882,
+ 881, 283, 235, 282, 886, 886, 895, 315, 866, 867,
+ 300, 323, 324, 325, 301, 303, 327, 328, 329, 181,
+ 330, 332, 334, 337, 338, 339, 341, 340, 928, 360,
+ 361, 380, 928, 387, 928, 389, 394, 402, 928, 408,
+ 880, 928, 928, 928, 891, 928, 845, 849, 850, 836,
+ 928, 857, 834, 928, 833, 846, 835, 857, 928, 873,
+ 872, 871, 928, 928, 877, 928, 845, 399, 875, 928,
+
+ 403, 0, 857, 856, 855, 364, 356, 379, 928, 422,
+ 871, 928, 842, 413, 383, 393, 386, 403, 361, 406,
+ 415, 852, 416, 417, 418, 419, 421, 423, 349, 422,
+ 429, 425, 426, 432, 454, 928, 823, 834, 401, 928,
+ 834, 928, 928, 817, 827, 840, 928, 928, 928, 824,
+ 844, 433, 843, 842, 474, 928, 441, 835, 438, 439,
+ 443, 827, 446, 826, 451, 458, 268, 459, 462, 465,
+ 469, 467, 471, 472, 817, 502, 928, 510, 512, 928,
+ 494, 786, 785, 788, 772, 0, 763, 487, 473, 773,
+ 497, 747, 486, 482, 500, 501, 732, 499, 504, 507,
+
+ 718, 508, 509, 530, 684, 612, 609, 621, 632, 620,
+ 517, 518, 634, 522, 523, 524, 633, 631, 617, 607,
+ 525, 530, 560, 514, 590, 577, 608, 575, 532, 534,
+ 544, 585, 547, 535, 584, 588, 549, 546, 580, 570,
+ 588, 554, 555, 552, 564, 545, 546, 449, 365, 590,
+ 584, 598, 4, 276, 242, 246, 928, 176, 604, 612,
+ 928, 590, 165, 616, 591, 928, 85, 622, 17, 626,
+ 644, 646, 928, 928, 663, 672, 681, 690, 699, 708,
+ 717, 726, 735, 738, 742, 746, 755, 764, 773, 782,
+ 787, 790, 794, 802, 807, 815, 819, 826, 834, 843,
+
+ 852
} ;
-static yyconst short int yy_def[231] =
+static yyconst short int yy_def[402] =
{ 0,
- 216, 216, 217, 217, 218, 218, 219, 219, 215, 9,
- 215, 11, 215, 215, 215, 215, 215, 215, 215, 215,
- 215, 215, 215, 215, 215, 215, 215, 220, 215, 215,
- 215, 215, 215, 221, 215, 222, 223, 223, 215, 215,
- 215, 215, 215, 223, 223, 223, 223, 223, 223, 223,
- 223, 223, 223, 223, 223, 223, 223, 215, 215, 215,
- 224, 215, 215, 215, 215, 215, 215, 215, 215, 225,
- 215, 215, 215, 215, 226, 227, 223, 228, 223, 215,
- 215, 229, 215, 215, 215, 230, 215, 223, 223, 223,
- 223, 223, 223, 223, 223, 223, 223, 223, 223, 223,
-
- 223, 223, 223, 223, 223, 223, 223, 223, 224, 215,
- 215, 215, 215, 215, 215, 215, 225, 215, 226, 215,
- 227, 228, 223, 215, 229, 215, 215, 230, 223, 223,
- 223, 223, 223, 223, 223, 223, 223, 223, 223, 223,
- 223, 223, 223, 223, 223, 223, 223, 223, 223, 223,
- 223, 215, 215, 215, 223, 223, 223, 223, 223, 223,
- 223, 223, 223, 223, 223, 223, 223, 223, 223, 223,
- 223, 223, 223, 223, 223, 223, 223, 215, 223, 223,
- 223, 223, 223, 223, 223, 223, 223, 223, 223, 223,
- 223, 223, 223, 223, 223, 223, 223, 223, 223, 223,
-
- 223, 223, 223, 223, 223, 223, 223, 223, 223, 223,
- 223, 223, 223, 223, 0, 215, 215, 215, 215, 215,
- 215, 215, 215, 215, 215, 215, 215, 215, 215, 215
+ 375, 375, 376, 376, 377, 377, 378, 378, 374, 9,
+ 9, 11, 379, 379, 380, 380, 381, 381, 374, 374,
+ 374, 374, 374, 374, 374, 374, 374, 374, 374, 374,
+ 374, 374, 374, 374, 374, 374, 374, 374, 374, 374,
+ 374, 382, 374, 374, 374, 374, 374, 374, 374, 374,
+ 383, 374, 374, 374, 374, 374, 384, 385, 385, 385,
+ 385, 374, 374, 374, 386, 385, 385, 385, 385, 385,
+ 385, 385, 385, 385, 385, 385, 385, 374, 374, 374,
+ 374, 374, 374, 374, 374, 374, 374, 374, 374, 374,
+ 374, 374, 374, 374, 374, 374, 387, 374, 374, 374,
+
+ 374, 374, 374, 374, 374, 374, 374, 374, 388, 374,
+ 374, 374, 374, 374, 389, 374, 374, 374, 374, 374,
+ 374, 374, 390, 374, 374, 374, 391, 374, 392, 385,
+ 393, 385, 385, 385, 374, 374, 394, 374, 395, 374,
+ 385, 385, 385, 385, 385, 385, 385, 385, 385, 385,
+ 385, 385, 385, 385, 385, 385, 385, 385, 374, 374,
+ 374, 374, 374, 396, 374, 374, 374, 374, 374, 374,
+ 374, 374, 374, 374, 387, 374, 374, 374, 374, 374,
+ 374, 374, 374, 374, 374, 374, 374, 374, 374, 374,
+ 374, 374, 374, 374, 389, 374, 374, 374, 390, 374,
+
+ 374, 391, 392, 397, 393, 385, 385, 385, 374, 374,
+ 394, 374, 395, 386, 385, 385, 385, 385, 385, 385,
+ 385, 385, 385, 385, 385, 385, 385, 385, 385, 385,
+ 385, 385, 385, 385, 398, 374, 374, 374, 374, 374,
+ 374, 374, 374, 374, 374, 374, 374, 374, 374, 374,
+ 397, 385, 385, 385, 374, 374, 385, 385, 385, 385,
+ 385, 385, 385, 385, 385, 385, 385, 385, 385, 385,
+ 385, 385, 385, 385, 385, 374, 374, 398, 374, 374,
+ 374, 374, 374, 374, 374, 399, 374, 385, 385, 385,
+ 385, 385, 385, 385, 385, 385, 385, 385, 385, 385,
+
+ 385, 385, 385, 374, 374, 374, 374, 374, 374, 374,
+ 385, 385, 385, 385, 385, 385, 385, 385, 385, 385,
+ 385, 385, 374, 374, 374, 374, 374, 374, 385, 385,
+ 385, 385, 385, 385, 385, 374, 374, 374, 374, 374,
+ 374, 385, 385, 385, 385, 385, 400, 374, 374, 374,
+ 374, 374, 374, 385, 385, 400, 374, 374, 374, 374,
+ 374, 401, 374, 374, 401, 374, 374, 374, 374, 374,
+ 374, 374, 374, 0, 374, 374, 374, 374, 374, 374,
+ 374, 374, 374, 374, 374, 374, 374, 374, 374, 374,
+ 374, 374, 374, 374, 374, 374, 374, 374, 374, 374,
+
+ 374
} ;
-static yyconst short int yy_nxt[533] =
+static yyconst short int yy_nxt[984] =
{ 0,
- 215, 15, 16, 15, 16, 21, 19, 21, 17, 22,
- 17, 22, 21, 33, 78, 21, 33, 60, 18, 61,
- 18, 24, 25, 63, 26, 34, 66, 27, 34, 69,
- 74, 70, 75, 79, 28, 80, 80, 80, 64, 81,
- 83, 82, 84, 84, 85, 78, 113, 114, 78, 67,
- 68, 83, 78, 87, 87, 87, 78, 29, 30, 24,
- 25, 31, 26, 89, 88, 27, 78, 78, 78, 86,
- 78, 78, 28, 90, 95, 78, 78, 78, 78, 92,
- 78, 93, 91, 78, 94, 78, 129, 96, 140, 107,
- 143, 106, 139, 97, 108, 29, 30, 14, 15, 16,
-
- 14, 14, 14, 14, 14, 35, 14, 14, 14, 36,
- 37, 37, 14, 37, 37, 37, 37, 37, 38, 37,
- 37, 37, 37, 37, 37, 37, 37, 37, 37, 37,
- 37, 37, 37, 37, 37, 39, 14, 14, 15, 16,
- 14, 14, 14, 14, 40, 41, 42, 43, 43, 36,
- 37, 37, 14, 44, 37, 45, 46, 47, 48, 37,
- 37, 49, 37, 50, 37, 51, 52, 53, 37, 54,
- 55, 56, 57, 37, 37, 58, 59, 78, 78, 78,
- 78, 124, 124, 124, 78, 78, 127, 127, 127, 102,
- 103, 177, 83, 98, 84, 84, 85, 78, 100, 104,
-
- 99, 101, 123, 78, 83, 105, 85, 85, 85, 83,
- 78, 87, 87, 87, 130, 78, 78, 78, 131, 132,
- 78, 78, 78, 78, 78, 133, 78, 78, 78, 78,
- 141, 78, 78, 135, 134, 142, 145, 138, 136, 78,
- 137, 144, 78, 148, 151, 78, 146, 147, 124, 124,
- 124, 149, 127, 127, 127, 78, 78, 155, 150, 78,
- 78, 78, 158, 78, 159, 78, 78, 156, 78, 162,
- 78, 78, 78, 78, 157, 160, 164, 78, 78, 78,
- 78, 161, 165, 78, 163, 78, 78, 169, 173, 166,
- 167, 78, 78, 78, 171, 168, 170, 175, 78, 78,
-
- 174, 172, 78, 78, 78, 180, 179, 176, 186, 78,
- 78, 78, 181, 78, 182, 78, 191, 78, 78, 78,
- 183, 184, 185, 187, 78, 193, 195, 196, 189, 192,
- 188, 78, 190, 78, 78, 78, 78, 78, 78, 194,
- 78, 200, 78, 78, 202, 198, 205, 78, 197, 78,
- 201, 78, 78, 78, 78, 199, 204, 209, 208, 203,
- 210, 78, 207, 206, 78, 78, 78, 211, 78, 213,
- 78, 214, 78, 78, 78, 212, 14, 14, 14, 14,
- 14, 14, 20, 20, 20, 20, 20, 20, 23, 23,
- 23, 23, 23, 23, 32, 32, 32, 32, 32, 32,
-
- 71, 78, 71, 71, 71, 71, 73, 78, 73, 73,
- 73, 73, 76, 76, 77, 77, 77, 77, 109, 109,
- 109, 109, 109, 109, 117, 117, 117, 117, 117, 117,
- 119, 119, 119, 119, 119, 119, 121, 121, 121, 121,
- 122, 122, 122, 122, 125, 125, 125, 125, 125, 125,
- 128, 78, 128, 78, 78, 78, 78, 78, 78, 78,
- 78, 78, 78, 78, 178, 78, 126, 78, 78, 120,
- 118, 154, 153, 152, 110, 126, 78, 78, 78, 120,
- 118, 116, 115, 112, 111, 110, 78, 72, 65, 62,
- 215, 13, 215, 215, 215, 215, 215, 215, 215, 215,
-
- 215, 215, 215, 215, 215, 215, 215, 215, 215, 215,
- 215, 215, 215, 215, 215, 215, 215, 215, 215, 215,
- 215, 215, 215, 215, 215, 215, 215, 215, 215, 215,
- 215, 215
+ 374, 21, 22, 21, 23, 21, 31, 31, 32, 32,
+ 362, 374, 34, 96, 24, 97, 33, 33, 48, 37,
+ 49, 38, 50, 39, 362, 114, 40, 115, 99, 131,
+ 35, 41, 99, 25, 26, 22, 21, 23, 26, 101,
+ 27, 28, 122, 101, 123, 51, 42, 24, 48, 22,
+ 49, 81, 50, 52, 83, 22, 133, 81, 83, 82,
+ 84, 103, 22, 185, 87, 85, 25, 22, 104, 93,
+ 43, 44, 88, 100, 105, 51, 110, 94, 102, 29,
+ 37, 131, 38, 106, 39, 45, 46, 40, 131, 131,
+ 89, 22, 41, 87, 89, 22, 90, 93, 131, 111,
+
+ 95, 91, 132, 131, 136, 94, 137, 42, 121, 121,
+ 121, 121, 124, 145, 128, 128, 128, 128, 185, 150,
+ 369, 146, 134, 112, 113, 135, 186, 121, 121, 121,
+ 121, 43, 44, 20, 21, 22, 21, 23, 21, 20,
+ 20, 20, 20, 20, 20, 20, 53, 54, 55, 56,
+ 56, 56, 57, 20, 20, 58, 58, 58, 58, 58,
+ 58, 20, 20, 20, 58, 58, 59, 58, 58, 60,
+ 58, 58, 58, 58, 58, 58, 58, 58, 58, 58,
+ 58, 61, 58, 58, 58, 58, 62, 20, 63, 64,
+ 131, 101, 131, 117, 101, 101, 131, 117, 101, 367,
+
+ 131, 160, 131, 65, 131, 160, 66, 363, 67, 68,
+ 69, 70, 161, 147, 71, 72, 224, 141, 73, 74,
+ 149, 142, 75, 143, 76, 77, 144, 148, 78, 79,
+ 102, 118, 102, 102, 124, 131, 125, 125, 125, 126,
+ 138, 138, 138, 138, 101, 131, 173, 131, 101, 101,
+ 131, 190, 357, 101, 131, 140, 162, 163, 174, 99,
+ 164, 131, 151, 99, 179, 152, 153, 154, 156, 159,
+ 157, 166, 180, 127, 158, 166, 155, 181, 207, 182,
+ 168, 169, 167, 102, 170, 101, 173, 131, 102, 101,
+ 101, 171, 183, 172, 101, 131, 117, 184, 191, 192,
+
+ 117, 131, 131, 295, 100, 198, 198, 198, 198, 201,
+ 201, 201, 201, 124, 206, 125, 125, 125, 126, 131,
+ 131, 208, 131, 124, 102, 126, 126, 126, 126, 102,
+ 138, 138, 138, 138, 118, 102, 124, 215, 128, 128,
+ 128, 128, 131, 131, 131, 140, 131, 131, 131, 131,
+ 219, 131, 220, 131, 216, 217, 131, 131, 131, 131,
+ 131, 160, 162, 163, 227, 160, 164, 218, 131, 225,
+ 221, 223, 161, 226, 229, 131, 222, 228, 231, 234,
+ 131, 162, 163, 131, 230, 162, 232, 233, 162, 163,
+ 166, 270, 162, 261, 166, 168, 169, 253, 131, 170,
+
+ 358, 167, 131, 168, 169, 131, 171, 168, 236, 168,
+ 169, 252, 131, 168, 198, 198, 198, 198, 201, 201,
+ 201, 201, 131, 255, 256, 131, 254, 255, 138, 138,
+ 138, 138, 257, 259, 131, 131, 131, 131, 131, 258,
+ 131, 131, 131, 140, 131, 131, 263, 262, 131, 282,
+ 260, 131, 131, 264, 181, 276, 277, 131, 131, 276,
+ 131, 268, 131, 265, 273, 131, 275, 267, 266, 269,
+ 131, 271, 272, 279, 274, 255, 256, 131, 131, 255,
+ 254, 131, 288, 291, 131, 289, 131, 290, 131, 294,
+ 131, 131, 131, 183, 292, 304, 298, 293, 296, 304,
+
+ 299, 131, 300, 276, 277, 131, 131, 276, 302, 301,
+ 297, 276, 277, 276, 277, 276, 131, 276, 131, 131,
+ 131, 303, 311, 131, 312, 314, 131, 131, 131, 279,
+ 315, 304, 313, 316, 317, 304, 131, 131, 319, 318,
+ 322, 131, 131, 131, 131, 323, 323, 323, 323, 131,
+ 321, 131, 357, 131, 131, 320, 331, 330, 332, 329,
+ 334, 336, 337, 131, 131, 336, 131, 184, 343, 346,
+ 335, 131, 333, 131, 131, 323, 323, 323, 323, 344,
+ 342, 350, 345, 131, 349, 350, 351, 352, 352, 353,
+ 354, 350, 348, 353, 347, 350, 366, 366, 355, 360,
+
+ 360, 360, 360, 131, 131, 359, 359, 359, 359, 361,
+ 341, 366, 366, 360, 360, 360, 360, 364, 340, 359,
+ 359, 359, 359, 361, 339, 338, 131, 360, 360, 360,
+ 360, 368, 368, 368, 368, 370, 131, 368, 368, 368,
+ 368, 371, 371, 371, 371, 372, 373, 372, 373, 372,
+ 131, 372, 131, 131, 328, 327, 326, 325, 324, 371,
+ 371, 371, 371, 20, 20, 20, 20, 20, 20, 20,
+ 20, 20, 30, 30, 30, 30, 30, 30, 30, 30,
+ 30, 36, 36, 36, 36, 36, 36, 36, 36, 36,
+ 47, 47, 47, 47, 47, 47, 47, 47, 47, 80,
+
+ 80, 80, 80, 80, 80, 80, 80, 80, 86, 86,
+ 86, 86, 86, 86, 86, 86, 86, 92, 92, 92,
+ 92, 92, 92, 92, 92, 92, 116, 116, 180, 116,
+ 116, 116, 116, 116, 116, 120, 120, 131, 120, 120,
+ 120, 120, 120, 120, 129, 129, 130, 130, 130, 130,
+ 139, 131, 139, 139, 139, 175, 175, 175, 175, 175,
+ 175, 175, 175, 175, 188, 188, 131, 188, 188, 188,
+ 188, 188, 188, 195, 195, 195, 195, 195, 195, 195,
+ 195, 195, 199, 199, 199, 199, 199, 199, 199, 199,
+ 199, 202, 131, 202, 203, 203, 203, 203, 205, 205,
+
+ 205, 205, 211, 211, 211, 211, 211, 211, 211, 211,
+ 211, 213, 310, 213, 213, 213, 235, 235, 308, 307,
+ 306, 235, 235, 251, 251, 251, 251, 278, 278, 305,
+ 278, 278, 278, 278, 309, 309, 131, 309, 309, 309,
+ 309, 309, 309, 356, 356, 131, 131, 356, 356, 356,
+ 356, 356, 365, 365, 131, 365, 365, 365, 365, 365,
+ 365, 131, 131, 204, 287, 286, 285, 284, 283, 281,
+ 280, 131, 140, 212, 131, 204, 204, 200, 250, 196,
+ 249, 248, 247, 246, 245, 244, 243, 242, 241, 240,
+ 239, 238, 237, 176, 236, 214, 140, 212, 210, 209,
+
+ 131, 131, 204, 200, 197, 196, 194, 193, 189, 187,
+ 178, 107, 177, 176, 173, 173, 165, 159, 131, 119,
+ 109, 108, 107, 98, 374, 27, 27, 19, 374, 374,
+ 374, 374, 374, 374, 374, 374, 374, 374, 374, 374,
+ 374, 374, 374, 374, 374, 374, 374, 374, 374, 374,
+ 374, 374, 374, 374, 374, 374, 374, 374, 374, 374,
+ 374, 374, 374, 374, 374, 374, 374, 374, 374, 374,
+ 374, 374, 374, 374, 374, 374, 374, 374, 374, 374,
+ 374, 374, 374
} ;
-static yyconst short int yy_chk[533] =
+static yyconst short int yy_chk[984] =
{ 0,
- 0, 1, 1, 2, 2, 3, 2, 4, 1, 3,
- 2, 4, 7, 7, 38, 8, 8, 17, 1, 17,
- 2, 5, 5, 19, 5, 7, 26, 5, 8, 27,
- 35, 27, 35, 38, 5, 40, 40, 40, 19, 41,
- 42, 41, 42, 42, 42, 44, 66, 66, 214, 26,
- 26, 43, 45, 43, 43, 43, 46, 5, 5, 6,
- 6, 6, 6, 45, 44, 6, 47, 48, 49, 42,
- 50, 51, 6, 46, 50, 56, 88, 57, 97, 48,
- 98, 48, 47, 213, 49, 101, 88, 50, 98, 57,
- 101, 56, 97, 51, 57, 6, 6, 9, 9, 9,
-
+ 0, 1, 1, 1, 1, 1, 3, 4, 3, 4,
+ 353, 0, 4, 24, 1, 24, 3, 4, 7, 5,
+ 7, 5, 7, 5, 353, 41, 5, 41, 26, 60,
+ 4, 5, 26, 1, 2, 2, 2, 2, 2, 27,
+ 2, 2, 54, 27, 54, 7, 5, 2, 8, 13,
+ 8, 13, 8, 8, 14, 14, 60, 14, 14, 13,
+ 14, 28, 15, 369, 15, 14, 2, 17, 28, 17,
+ 5, 5, 15, 26, 28, 8, 40, 17, 27, 2,
+ 6, 59, 6, 28, 6, 6, 6, 6, 73, 68,
+ 16, 16, 6, 16, 16, 18, 16, 18, 69, 40,
+
+ 18, 16, 59, 61, 64, 18, 64, 6, 53, 53,
+ 53, 53, 56, 68, 56, 56, 56, 56, 105, 73,
+ 367, 69, 61, 40, 40, 63, 105, 63, 63, 63,
+ 63, 6, 6, 9, 9, 9, 9, 9, 9, 9,
+ 9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
- 9, 9, 9, 9, 9, 9, 9, 11, 11, 11,
- 11, 11, 11, 11, 11, 11, 11, 11, 11, 11,
- 11, 11, 11, 11, 11, 11, 11, 11, 11, 11,
- 11, 11, 11, 11, 11, 11, 11, 11, 11, 11,
- 11, 11, 11, 11, 11, 11, 11, 52, 54, 53,
- 55, 80, 80, 80, 151, 79, 83, 83, 83, 54,
- 54, 151, 84, 52, 84, 84, 84, 90, 53, 54,
-
- 52, 53, 79, 91, 85, 55, 85, 85, 85, 87,
- 89, 87, 87, 87, 89, 92, 93, 94, 89, 90,
- 95, 96, 99, 100, 102, 91, 103, 104, 212, 105,
- 99, 106, 108, 93, 92, 100, 103, 96, 94, 107,
- 95, 102, 123, 106, 108, 129, 104, 105, 124, 124,
- 124, 106, 127, 127, 127, 130, 131, 123, 107, 132,
- 133, 134, 131, 137, 132, 135, 138, 129, 139, 135,
- 140, 141, 142, 143, 130, 133, 138, 144, 145, 146,
- 147, 134, 139, 148, 137, 149, 150, 143, 147, 140,
- 141, 156, 158, 161, 145, 142, 144, 149, 159, 162,
-
- 148, 146, 166, 167, 168, 158, 156, 150, 168, 170,
- 172, 169, 159, 174, 161, 175, 172, 176, 179, 181,
- 162, 166, 167, 169, 171, 175, 179, 181, 171, 174,
- 170, 184, 171, 185, 186, 187, 189, 190, 191, 176,
- 193, 187, 194, 197, 190, 185, 194, 195, 184, 199,
- 189, 198, 204, 205, 206, 186, 193, 199, 198, 191,
- 204, 208, 197, 195, 210, 211, 209, 205, 207, 208,
- 203, 210, 202, 201, 200, 206, 216, 216, 216, 216,
- 216, 216, 217, 217, 217, 217, 217, 217, 218, 218,
- 218, 218, 218, 218, 219, 219, 219, 219, 219, 219,
-
- 220, 196, 220, 220, 220, 220, 221, 192, 221, 221,
- 221, 221, 222, 222, 223, 223, 223, 223, 224, 224,
- 224, 224, 224, 224, 225, 225, 225, 225, 225, 225,
- 226, 226, 226, 226, 226, 226, 227, 227, 227, 227,
- 228, 228, 228, 228, 229, 229, 229, 229, 229, 229,
- 230, 188, 230, 183, 182, 180, 177, 173, 165, 164,
- 163, 160, 157, 155, 152, 136, 125, 122, 121, 119,
- 117, 114, 113, 111, 109, 82, 78, 77, 76, 75,
- 70, 68, 67, 63, 62, 61, 37, 31, 22, 18,
- 13, 215, 215, 215, 215, 215, 215, 215, 215, 215,
-
- 215, 215, 215, 215, 215, 215, 215, 215, 215, 215,
- 215, 215, 215, 215, 215, 215, 215, 215, 215, 215,
- 215, 215, 215, 215, 215, 215, 215, 215, 215, 215,
- 215, 215
+ 9, 9, 9, 9, 9, 9, 9, 9, 11, 11,
+ 66, 34, 70, 45, 52, 34, 72, 45, 52, 363,
+
+ 150, 83, 67, 11, 71, 83, 11, 358, 11, 11,
+ 11, 11, 83, 70, 11, 11, 150, 66, 11, 11,
+ 72, 67, 11, 67, 11, 11, 67, 71, 11, 11,
+ 34, 45, 45, 52, 55, 74, 55, 55, 55, 55,
+ 65, 65, 65, 65, 84, 76, 94, 75, 84, 90,
+ 77, 111, 356, 90, 133, 65, 85, 85, 94, 99,
+ 85, 355, 74, 99, 103, 74, 75, 75, 76, 85,
+ 77, 89, 103, 55, 77, 89, 75, 103, 133, 104,
+ 91, 91, 89, 84, 91, 95, 95, 267, 90, 95,
+ 101, 91, 104, 91, 101, 354, 117, 104, 111, 111,
+
+ 117, 134, 132, 267, 99, 121, 121, 121, 121, 124,
+ 124, 124, 124, 125, 132, 125, 125, 125, 125, 141,
+ 145, 134, 146, 126, 95, 126, 126, 126, 126, 101,
+ 138, 138, 138, 138, 117, 117, 128, 141, 128, 128,
+ 128, 128, 142, 143, 144, 138, 147, 148, 149, 151,
+ 145, 152, 146, 153, 142, 143, 154, 155, 156, 158,
+ 157, 160, 161, 161, 152, 160, 161, 144, 229, 151,
+ 147, 149, 160, 151, 154, 207, 148, 153, 156, 158,
+ 219, 162, 162, 206, 155, 162, 156, 157, 164, 164,
+ 166, 229, 164, 219, 166, 167, 167, 207, 208, 167,
+
+ 349, 166, 215, 168, 168, 217, 167, 168, 167, 170,
+ 170, 206, 216, 170, 198, 198, 198, 198, 201, 201,
+ 201, 201, 218, 210, 210, 220, 208, 210, 214, 214,
+ 214, 214, 215, 217, 221, 223, 224, 225, 226, 216,
+ 227, 230, 228, 214, 232, 233, 221, 220, 231, 239,
+ 218, 234, 252, 223, 239, 235, 235, 259, 260, 235,
+ 257, 227, 261, 224, 232, 263, 234, 226, 225, 228,
+ 265, 230, 231, 235, 233, 255, 255, 266, 268, 255,
+ 252, 269, 257, 261, 270, 259, 272, 260, 271, 266,
+ 273, 274, 289, 348, 263, 281, 270, 265, 268, 281,
+
+ 270, 294, 271, 276, 276, 293, 288, 276, 273, 272,
+ 269, 278, 278, 279, 279, 278, 291, 279, 298, 295,
+ 296, 274, 288, 299, 289, 293, 300, 302, 303, 278,
+ 294, 304, 291, 295, 296, 304, 311, 312, 299, 298,
+ 303, 314, 315, 316, 321, 304, 304, 304, 304, 322,
+ 302, 329, 347, 330, 334, 300, 314, 312, 315, 311,
+ 321, 323, 324, 331, 346, 323, 333, 324, 330, 334,
+ 322, 344, 316, 342, 343, 323, 323, 323, 323, 331,
+ 329, 339, 333, 345, 338, 339, 340, 340, 340, 341,
+ 343, 350, 337, 341, 336, 350, 362, 365, 345, 351,
+
+ 351, 351, 351, 335, 332, 350, 350, 350, 350, 352,
+ 328, 362, 365, 352, 352, 352, 352, 359, 327, 359,
+ 359, 359, 359, 360, 326, 325, 320, 360, 360, 360,
+ 360, 364, 364, 364, 364, 368, 319, 368, 368, 368,
+ 368, 370, 370, 370, 370, 371, 371, 372, 372, 371,
+ 318, 372, 317, 313, 310, 309, 308, 307, 306, 371,
+ 371, 371, 371, 375, 375, 375, 375, 375, 375, 375,
+ 375, 375, 376, 376, 376, 376, 376, 376, 376, 376,
+ 376, 377, 377, 377, 377, 377, 377, 377, 377, 377,
+ 378, 378, 378, 378, 378, 378, 378, 378, 378, 379,
+
+ 379, 379, 379, 379, 379, 379, 379, 379, 380, 380,
+ 380, 380, 380, 380, 380, 380, 380, 381, 381, 381,
+ 381, 381, 381, 381, 381, 381, 382, 382, 305, 382,
+ 382, 382, 382, 382, 382, 383, 383, 301, 383, 383,
+ 383, 383, 383, 383, 384, 384, 385, 385, 385, 385,
+ 386, 297, 386, 386, 386, 387, 387, 387, 387, 387,
+ 387, 387, 387, 387, 388, 388, 292, 388, 388, 388,
+ 388, 388, 388, 389, 389, 389, 389, 389, 389, 389,
+ 389, 389, 390, 390, 390, 390, 390, 390, 390, 390,
+ 390, 391, 290, 391, 392, 392, 392, 392, 393, 393,
+
+ 393, 393, 394, 394, 394, 394, 394, 394, 394, 394,
+ 394, 395, 287, 395, 395, 395, 396, 396, 285, 284,
+ 283, 396, 396, 397, 397, 397, 397, 398, 398, 282,
+ 398, 398, 398, 398, 399, 399, 275, 399, 399, 399,
+ 399, 399, 399, 400, 400, 264, 262, 400, 400, 400,
+ 400, 400, 401, 401, 258, 401, 401, 401, 401, 401,
+ 401, 254, 253, 251, 250, 246, 245, 244, 241, 238,
+ 237, 222, 213, 211, 205, 204, 203, 199, 197, 195,
+ 192, 191, 190, 188, 187, 186, 185, 183, 182, 180,
+ 179, 178, 177, 175, 171, 140, 139, 137, 136, 135,
+
+ 131, 130, 129, 123, 118, 115, 113, 112, 110, 107,
+ 102, 100, 98, 97, 93, 92, 88, 82, 58, 46,
+ 35, 33, 29, 25, 19, 12, 10, 374, 374, 374,
+ 374, 374, 374, 374, 374, 374, 374, 374, 374, 374,
+ 374, 374, 374, 374, 374, 374, 374, 374, 374, 374,
+ 374, 374, 374, 374, 374, 374, 374, 374, 374, 374,
+ 374, 374, 374, 374, 374, 374, 374, 374, 374, 374,
+ 374, 374, 374, 374, 374, 374, 374, 374, 374, 374,
+ 374, 374, 374
} ;
static yy_state_type yy_state_buf[YY_BUF_SIZE + 2], *yy_state_ptr;
#include "config.h"
#include <glib.h>
+#include <string.h>
+#include <ctype.h>
+#include "treefuncs.h"
#include "parse.h"
+#include "main.h"
+#include "util.h"
static int parenth_depth = 0;
static int before_comment = INITIAL;
-static int class_after_c = FALSE;
-static int header_c = FALSE;
+static gboolean class_after_c = FALSE;
+static int code_type = CCODE;
+
+/* GTK+ doc stuff */
+static char *gtk_doc_func = NULL; /* current gtk-doc func */
+GHashTable *gtk_doc_hash = NULL;
static GString *cbuf = NULL;
+int ccode_line = 1;
+
+GList *include_files = NULL;
+/* 0 no, 1 means yes, 2+ means don't even start looking anymore */
+static int look_for_includes = 0;
int line_no = 1;
+/* last filename parsed from a #line directive */
+char *hline_filename = NULL;
static void
clear_cbuf(void)
{
if(!cbuf) {
- cbuf = g_string_new("");
+ cbuf = g_string_new(NULL);
} else {
- cbuf = g_string_assign(cbuf,"");
+ cbuf = g_string_assign(cbuf, "");
}
}
}
}
+static void
+add_gtk_doc_func(void)
+{
+ if(!gtk_doc_func)
+ return;
+
+ if(!gtk_doc_hash)
+ gtk_doc_hash = g_hash_table_new(g_str_hash, g_str_equal);
+ g_hash_table_insert(gtk_doc_hash, gtk_doc_func, g_strdup(cbuf->str));
+ clear_cbuf();
+
+ gtk_doc_func = NULL;
+}
+
+/* Ugly warning avoiding */
+#ifdef FLEX_SCANNER
+int yylex(void);
+#endif
+
#define COMMENT 1
#define C_CODE 2
#define CLASS_CODE_I 5
-#line 661 "lex.yy.c"
+#define GTK_DOC_BEFORE_NAME 6
+
+#define GTK_DOC 7
+
+#define GTK_DOC_LINE 8
+
+#line 872 "lex.yy.c"
/* Macros after this point can all be overridden by user definitions in
* section 1.
YY_DECL
{
register yy_state_type yy_current_state;
- register char *yy_cp, *yy_bp;
+ register char *yy_cp = NULL, *yy_bp = NULL;
register int yy_act;
-#line 65 "lexer.l"
+#line 105 "lexer.l"
-#line 818 "lex.yy.c"
+#line 1029 "lex.yy.c"
if ( yy_init )
{
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
{
yy_current_state = (int) yy_def[yy_current_state];
- if ( yy_current_state >= 216 )
+ if ( yy_current_state >= 375 )
yy_c = yy_meta[(unsigned int) yy_c];
}
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
*yy_state_ptr++ = yy_current_state;
++yy_cp;
}
- while ( yy_base[yy_current_state] != 492 );
+ while ( yy_base[yy_current_state] != 928 );
yy_find_action:
yy_current_state = *--yy_state_ptr;
{ /* beginning of action switch */
case 1:
YY_RULE_SETUP
-#line 67 "lexer.l"
+#line 107 "lexer.l"
{ line_no++; REJECT; }
YY_BREAK
case 2:
yy_c_buf_p = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
-#line 69 "lexer.l"
-{ ; /*comment, ignore*/ }
+#line 109 "lexer.l"
+{
+/* Thy evil easter egg */
+#define QQ(x) long x
+#define KK(x) =atoi(__(&,,x,))
+#define MM(x,a) {QQ(i);for(i=2;i<x;i++){a}}
+#define PP(Q) (P%Q)==0
+#define ___(x,y,z) if(x z y)
+#define __(a,x,y,z) a(yytext[y] x z)
+#define O__O(a,b) fprintf(stderr,"%s is %s!\n",a,b)
+QQ(m)=1;___(__(,==,2,'P'),__(,==,5,'M'),&&
+){QQ(P)KK(8);MM(P,___(PP(i),,)m=0;)}__(,=,
+7,0);___(,,m){O__O(__( &,,8,),__(&,,2,));}
+#undef QQ
+#undef KK
+#undef MM
+#undef PP
+#undef ___
+#undef __
+#undef O__O
+REJECT;
+}
YY_BREAK
case 3:
*yy_cp = yy_hold_char; /* undo effects of setting up yytext */
yy_c_buf_p = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
-#line 70 "lexer.l"
+#line 131 "lexer.l"
{ ; /*comment, ignore*/ }
YY_BREAK
case 4:
+YY_RULE_SETUP
+#line 133 "lexer.l"
+{
+ char *p;
+ char *number;
+ char *filename;
+ char *str=g_strdup(yytext);
+
+ /* find first digit of line number */
+ p=str;
+ while(*p&&!isdigit(*p)) p++;
+ number=p;
+
+ /* find end of line number */
+ while(*p&&isdigit(*p)) p++;
+ if(*p) *p++=0;
+
+ /* find beginning of filename */
+ p=strchr(p,'"');
+ if(p) p++;
+ filename=p;
+
+ /* find end of filename */
+ if(p) p=strchr(p,'"');
+ if(p) *p=0;
+
+ /* stash number (minus one because we don't count this line) */
+ if(number) line_no=atoi(number)-1;
+
+ /* stash filename */
+ if(filename) {
+ if(hline_filename) g_free(hline_filename);
+ hline_filename=g_strdup(filename);
+ }
+
+ /* clean up */
+ g_free(str);
+}
+ YY_BREAK
+case 5:
+YY_RULE_SETUP
+#line 170 "lexer.l"
+{
+ if(look_for_includes==1) {
+ char *p;
+ char *file;
+ char *str = g_strdup(yytext);
+ file = strchr(str,'"');
+ if(!file) file = strchr(str,'<');
+ file++;
+ p = strchr(file,'"');
+ if(!p) p = strchr(file,'>');
+ *p = '\0';
+ include_files = g_list_prepend(include_files,g_strdup(file));
+ g_free(str);
+ }
+ REJECT;
+}
+ YY_BREAK
+case 6:
+*yy_cp = yy_hold_char; /* undo effects of setting up yytext */
+yy_c_buf_p = yy_cp -= 1;
+YY_DO_BEFORE_ACTION; /* set up yytext again */
+YY_RULE_SETUP
+#line 187 "lexer.l"
+{
+ /* eat out gtk doc stuff */
+ BEGIN(GTK_DOC_BEFORE_NAME);
+ clear_cbuf();
+ }
+ YY_BREAK
+case 7:
+*yy_cp = yy_hold_char; /* undo effects of setting up yytext */
+yy_c_buf_p = yy_cp -= 1;
+YY_DO_BEFORE_ACTION; /* set up yytext again */
+YY_RULE_SETUP
+#line 192 "lexer.l"
+{
+ /* empty doc lines */
+ ;
+ }
+ YY_BREAK
+case 8:
+*yy_cp = yy_hold_char; /* undo effects of setting up yytext */
+yy_c_buf_p = yy_cp -= 1;
+YY_DO_BEFORE_ACTION; /* set up yytext again */
+YY_RULE_SETUP
+#line 196 "lexer.l"
+{
+ char *p;
+ BEGIN(GTK_DOC);
+ p = strchr(yytext, '*');
+ g_free(gtk_doc_func);
+ gtk_doc_func = g_strdup(p+2);
+ p = strchr(gtk_doc_func, ':');
+ if(p) *p='\0';
+ g_strstrip(gtk_doc_func);
+ }
+ YY_BREAK
+case 9:
+YY_RULE_SETUP
+#line 206 "lexer.l"
+{
+ BEGIN(CLASS_CODE_I);
+ }
+ YY_BREAK
+case 10:
+YY_RULE_SETUP
+#line 209 "lexer.l"
+{
+ BEGIN(COMMENT);
+ before_comment = CLASS_CODE_I;
+ }
+ YY_BREAK
+case 11:
*yy_cp = yy_hold_char; /* undo effects of setting up yytext */
yy_c_buf_p = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
-#line 71 "lexer.l"
+#line 213 "lexer.l"
+{
+ /* empty doc lines */
+ add_to_cbuf(" *\n");
+ }
+ YY_BREAK
+case 12:
+YY_RULE_SETUP
+#line 217 "lexer.l"
+{
+ BEGIN(CLASS_CODE_I);
+ add_gtk_doc_func();
+ }
+ YY_BREAK
+case 13:
+YY_RULE_SETUP
+#line 221 "lexer.l"
+{
+ fflush(stdout);
+ add_to_cbuf(" * ");
+ BEGIN(GTK_DOC_LINE);
+ }
+ YY_BREAK
+case 14:
+YY_RULE_SETUP
+#line 226 "lexer.l"
+{
+ BEGIN(CLASS_CODE_I);
+ }
+ YY_BREAK
+case 15:
+YY_RULE_SETUP
+#line 229 "lexer.l"
+{
+ BEGIN(COMMENT);
+ before_comment = CLASS_CODE_I;
+ }
+ YY_BREAK
+case 16:
+YY_RULE_SETUP
+#line 233 "lexer.l"
+{
+ BEGIN(CLASS_CODE_I);
+ add_to_cbuf("\n");
+ add_gtk_doc_func();
+ }
+ YY_BREAK
+case 17:
+*yy_cp = yy_hold_char; /* undo effects of setting up yytext */
+yy_c_buf_p = yy_cp -= 1;
+YY_DO_BEFORE_ACTION; /* set up yytext again */
+YY_RULE_SETUP
+#line 238 "lexer.l"
+{
+ BEGIN(GTK_DOC);
+ add_to_cbuf(yytext);
+ add_to_cbuf("\n");
+ }
+ YY_BREAK
+case 18:
+YY_RULE_SETUP
+#line 243 "lexer.l"
+{
+ fflush(stdout);
+ add_to_cbuf(yytext);
+ }
+ YY_BREAK
+case 19:
+*yy_cp = yy_hold_char; /* undo effects of setting up yytext */
+yy_c_buf_p = yy_cp -= 1;
+YY_DO_BEFORE_ACTION; /* set up yytext again */
+YY_RULE_SETUP
+#line 248 "lexer.l"
+{ add_to_cbuf(yytext); /*comment, ignore*/ }
+ YY_BREAK
+case 20:
+*yy_cp = yy_hold_char; /* undo effects of setting up yytext */
+yy_c_buf_p = yy_cp -= 1;
+YY_DO_BEFORE_ACTION; /* set up yytext again */
+YY_RULE_SETUP
+#line 249 "lexer.l"
{ ; /*comment, ignore*/ }
YY_BREAK
-case 5:
+case 21:
*yy_cp = yy_hold_char; /* undo effects of setting up yytext */
yy_c_buf_p = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
-#line 72 "lexer.l"
+#line 250 "lexer.l"
{ ; /*comment, ignore*/ }
YY_BREAK
-case 6:
+case 22:
YY_RULE_SETUP
-#line 73 "lexer.l"
+#line 251 "lexer.l"
{BEGIN(COMMENT); before_comment = INITIAL; }
YY_BREAK
-case 7:
+case 23:
YY_RULE_SETUP
-#line 74 "lexer.l"
-{BEGIN(COMMENT); before_comment = C_CODE; }
+#line 252 "lexer.l"
+{
+ add_to_cbuf(yytext);
+ BEGIN(COMMENT);
+ before_comment = C_CODE;
+}
YY_BREAK
-case 8:
+case 24:
YY_RULE_SETUP
-#line 75 "lexer.l"
+#line 257 "lexer.l"
{BEGIN(COMMENT); before_comment = CLASS_CODE; }
YY_BREAK
-case 9:
+case 25:
YY_RULE_SETUP
-#line 76 "lexer.l"
+#line 258 "lexer.l"
{BEGIN(COMMENT); before_comment = CLASS_CODE_I; }
YY_BREAK
-case 10:
+case 26:
YY_RULE_SETUP
-#line 77 "lexer.l"
-{BEGIN(before_comment);}
+#line 259 "lexer.l"
+{
+ if(before_comment == C_CODE) add_to_cbuf(yytext);
+ BEGIN(before_comment);
+ }
YY_BREAK
-case 11:
+case 27:
YY_RULE_SETUP
-#line 78 "lexer.l"
-{ ; /* comment, ignore */ }
+#line 263 "lexer.l"
+{
+ /* comment, ignore */
+ if(before_comment == C_CODE) add_to_cbuf(yytext);
+ }
YY_BREAK
-case 12:
+case 28:
YY_RULE_SETUP
-#line 80 "lexer.l"
+#line 267 "lexer.l"
+{
+ /* comment, ignore */
+ if(before_comment == C_CODE) add_to_cbuf(yytext);
+ }
+ YY_BREAK
+case 29:
+YY_RULE_SETUP
+#line 272 "lexer.l"
{
BEGIN(C_CODE);
parenth_depth = 1;
class_after_c = FALSE;
- header_c = TRUE;
+ code_type = ACODE;
clear_cbuf();
+ ccode_line = line_no;
}
YY_BREAK
-case 13:
+case 30:
YY_RULE_SETUP
-#line 87 "lexer.l"
+#line 280 "lexer.l"
{
BEGIN(C_CODE);
parenth_depth = 1;
class_after_c = FALSE;
- header_c = FALSE;
+ code_type = ATCODE;
clear_cbuf();
+ ccode_line = line_no;
}
YY_BREAK
-case 14:
+case 31:
+YY_RULE_SETUP
+#line 289 "lexer.l"
+{
+ BEGIN(C_CODE);
+ parenth_depth = 1;
+ class_after_c = FALSE;
+ code_type = HTCODE;
+ clear_cbuf();
+ ccode_line = line_no;
+ }
+ YY_BREAK
+case 32:
+YY_RULE_SETUP
+#line 297 "lexer.l"
+{
+ BEGIN(C_CODE);
+ parenth_depth = 1;
+ class_after_c = FALSE;
+ code_type = PHCODE;
+ clear_cbuf();
+ ccode_line = line_no;
+ }
+ YY_BREAK
+case 33:
+YY_RULE_SETUP
+#line 305 "lexer.l"
+{
+ BEGIN(C_CODE);
+ parenth_depth = 1;
+ class_after_c = FALSE;
+ code_type = HCODE;
+ clear_cbuf();
+ ccode_line = line_no;
+ }
+ YY_BREAK
+case 34:
+YY_RULE_SETUP
+#line 313 "lexer.l"
+{
+ BEGIN(C_CODE);
+ parenth_depth = 1;
+ class_after_c = FALSE;
+ code_type = CCODE;
+ clear_cbuf();
+ ccode_line = line_no;
+ if(look_for_includes==0)
+ look_for_includes=1;
+ }
+ YY_BREAK
+case 35:
YY_RULE_SETUP
-#line 94 "lexer.l"
+#line 323 "lexer.l"
{
BEGIN(INITIAL);
yylval.cbuf = cbuf;
cbuf = NULL;
- if(header_c)
- return HCODE;
- else
- return CCODE;
+ if(look_for_includes==1)
+ look_for_includes=0;
+ return code_type;
}
YY_BREAK
-case 15:
+case 36:
YY_RULE_SETUP
-#line 104 "lexer.l"
+#line 332 "lexer.l"
{ add_to_cbuf(yytext); }
YY_BREAK
-case 16:
+case 37:
YY_RULE_SETUP
-#line 105 "lexer.l"
+#line 333 "lexer.l"
{ add_to_cbuf(yytext); }
YY_BREAK
-case 17:
+case 38:
YY_RULE_SETUP
-#line 106 "lexer.l"
+#line 334 "lexer.l"
{ add_to_cbuf(yytext); }
YY_BREAK
-case 18:
+case 39:
YY_RULE_SETUP
-#line 107 "lexer.l"
+#line 335 "lexer.l"
{ add_to_cbuf(yytext); }
YY_BREAK
-case 19:
+case 40:
YY_RULE_SETUP
-#line 109 "lexer.l"
+#line 336 "lexer.l"
{ add_to_cbuf(yytext); }
YY_BREAK
-case 20:
+case 41:
+YY_RULE_SETUP
+#line 337 "lexer.l"
+{ add_to_cbuf(yytext); }
+ YY_BREAK
+case 42:
+YY_RULE_SETUP
+#line 339 "lexer.l"
+{ add_to_cbuf(yytext); }
+ YY_BREAK
+case 43:
YY_RULE_SETUP
-#line 110 "lexer.l"
+#line 340 "lexer.l"
{
BEGIN(C_CODE_STRING);
add_to_cbuf(yytext);
}
YY_BREAK
-case 21:
+case 44:
YY_RULE_SETUP
-#line 114 "lexer.l"
-{
- add_to_cbuf(yytext);
- }
+#line 344 "lexer.l"
+{ add_to_cbuf(yytext); }
YY_BREAK
-case 22:
+case 45:
YY_RULE_SETUP
-#line 117 "lexer.l"
+#line 345 "lexer.l"
{
BEGIN(C_CODE);
add_to_cbuf(yytext);
}
YY_BREAK
-case 23:
+case 46:
YY_RULE_SETUP
-#line 121 "lexer.l"
-{
- add_to_cbuf(yytext);
- }
+#line 349 "lexer.l"
+{ add_to_cbuf(yytext); }
YY_BREAK
-case 24:
+case 47:
+YY_RULE_SETUP
+#line 350 "lexer.l"
+{ add_to_cbuf(yytext); }
+ YY_BREAK
+case 48:
YY_RULE_SETUP
-#line 125 "lexer.l"
+#line 352 "lexer.l"
{
parenth_depth++;
add_to_cbuf(yytext);
}
YY_BREAK
-case 25:
+case 49:
YY_RULE_SETUP
-#line 129 "lexer.l"
+#line 356 "lexer.l"
{
parenth_depth--;
if(parenth_depth<0) {
add_to_cbuf(yytext);
}
YY_BREAK
-case 26:
+case 50:
YY_RULE_SETUP
-#line 142 "lexer.l"
+#line 369 "lexer.l"
{ add_to_cbuf(yytext); }
YY_BREAK
-case 27:
+case 51:
YY_RULE_SETUP
-#line 143 "lexer.l"
+#line 370 "lexer.l"
{ add_to_cbuf(yytext); }
YY_BREAK
-case 28:
+case 52:
YY_RULE_SETUP
-#line 145 "lexer.l"
+#line 372 "lexer.l"
{
+ static int found_classes = 0;
+ look_for_includes = 2;
BEGIN(CLASS_CODE);
+
+ if(++found_classes > 1) {
+ error_print(GOB_ERROR, line_no,
+ "Only one class per file allowed");
+ }
+
return CLASS;
}
YY_BREAK
-case 29:
+case 53:
+*yy_cp = yy_hold_char; /* undo effects of setting up yytext */
+yy_c_buf_p = yy_cp -= 1;
+YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
-#line 150 "lexer.l"
+#line 385 "lexer.l"
+{
+ int maj = 0,min = 0,pl = 0;
+ int rmaj = 0,rmin = 0,rpl = 0;
+ int effective_maj = 0;
+ int effective_rmaj = 0;
+ char *p;
+
+ sscanf(VERSION,"%d.%d.%d",&rmaj,&rmin,&rpl);
+ effective_rmaj = rmaj;
+ if (rmin >= 90)
+ effective_rmaj = rmaj + 1;
+
+ p = strchr(yytext,'r');
+ g_assert(p); /* we MUST have found it */
+ sscanf(p,"requires %d.%d.%d",&maj,&min,&pl);
+ effective_maj = maj;
+ if (min >= 90)
+ effective_maj = maj + 1;
+
+ if(rmaj < maj ||
+ (rmaj == maj && rmin < min) ||
+ (rmaj == maj && rmin == min && rpl < pl)) {
+ error_printf(GOB_ERROR, line_no,
+ "GOB version at least %d.%d.%d required "
+ "(this is %s)\n"
+ "To upgrade your gob, see: "
+ "http://www.5z.com/jirka/gob.html",
+ maj, min, pl, VERSION);
+ }
+
+ if(effective_rmaj != effective_maj) {
+ error_printf(GOB_ERROR, line_no,
+ "GOB major version %d required "
+ "(this is %s)\n"
+ "To upgrade your gob, see: "
+ "http://www.5z.com/jirka/gob.html",
+ maj, VERSION);
+ }
+ }
+ YY_BREAK
+case 54:
+YY_RULE_SETUP
+#line 425 "lexer.l"
+{
+ if(for_cpp) {
+ error_printf(GOB_WARN, line_no,
+ "'%s' keyword should not "
+ "be used when generating "
+ "C++ code", yytext);
+ }
+ REJECT;
+ }
+ YY_BREAK
+case 55:
+YY_RULE_SETUP
+#line 435 "lexer.l"
{return FROM;}
YY_BREAK
-case 30:
+case 56:
YY_RULE_SETUP
-#line 152 "lexer.l"
+#line 437 "lexer.l"
{return VOID;}
YY_BREAK
-case 31:
+case 57:
YY_RULE_SETUP
-#line 153 "lexer.l"
+#line 438 "lexer.l"
{return STRUCT;}
YY_BREAK
-case 32:
+case 58:
YY_RULE_SETUP
-#line 154 "lexer.l"
+#line 439 "lexer.l"
{return UNION;}
YY_BREAK
-case 33:
+case 59:
YY_RULE_SETUP
-#line 155 "lexer.l"
+#line 440 "lexer.l"
{return ENUM;}
YY_BREAK
-case 34:
+case 60:
YY_RULE_SETUP
-#line 156 "lexer.l"
+#line 441 "lexer.l"
{return SIGNED;}
YY_BREAK
-case 35:
+case 61:
YY_RULE_SETUP
-#line 157 "lexer.l"
+#line 442 "lexer.l"
{return UNSIGNED;}
YY_BREAK
-case 36:
+case 62:
YY_RULE_SETUP
-#line 158 "lexer.l"
+#line 443 "lexer.l"
{return LONG;}
YY_BREAK
-case 37:
+case 63:
YY_RULE_SETUP
-#line 159 "lexer.l"
+#line 444 "lexer.l"
{return SHORT;}
YY_BREAK
-case 38:
+case 64:
YY_RULE_SETUP
-#line 160 "lexer.l"
+#line 445 "lexer.l"
{return INT;}
YY_BREAK
-case 39:
+case 65:
YY_RULE_SETUP
-#line 161 "lexer.l"
+#line 446 "lexer.l"
{return FLOAT;}
YY_BREAK
-case 40:
+case 66:
YY_RULE_SETUP
-#line 162 "lexer.l"
+#line 447 "lexer.l"
{return DOUBLE;}
YY_BREAK
-case 41:
+case 67:
YY_RULE_SETUP
-#line 163 "lexer.l"
+#line 448 "lexer.l"
{return CHAR;}
YY_BREAK
-case 42:
+case 68:
YY_RULE_SETUP
-#line 165 "lexer.l"
-{yylval.line = line_no; return PUBLIC;}
+#line 449 "lexer.l"
+{return CONST;}
YY_BREAK
-case 43:
+case 69:
YY_RULE_SETUP
-#line 166 "lexer.l"
-{yylval.line = line_no; return PRIVATE;}
+#line 451 "lexer.l"
+{return THREEDOTS;}
YY_BREAK
-case 44:
+case 70:
YY_RULE_SETUP
-#line 167 "lexer.l"
-{yylval.line = line_no; return ARGUMENT;}
+#line 453 "lexer.l"
+{yylval.line = line_no; return PUBLIC;}
YY_BREAK
-case 45:
+case 71:
YY_RULE_SETUP
-#line 168 "lexer.l"
-{yylval.line = line_no; return VIRTUAL;}
+#line 454 "lexer.l"
+{yylval.line = line_no; return PRIVATE;}
YY_BREAK
-case 46:
+case 72:
YY_RULE_SETUP
-#line 169 "lexer.l"
-{yylval.line = line_no; return SIGNAL;}
+#line 455 "lexer.l"
+{yylval.line = line_no; return PROTECTED;}
YY_BREAK
-case 47:
+case 73:
YY_RULE_SETUP
-#line 170 "lexer.l"
-{return LAST;}
+#line 456 "lexer.l"
+{yylval.line = line_no; return CLASSWIDE;}
YY_BREAK
-case 48:
+case 74:
YY_RULE_SETUP
-#line 171 "lexer.l"
-{return FIRST;}
- YY_BREAK
-case 49:
-YY_RULE_SETUP
-#line 172 "lexer.l"
-{yylval.line = line_no; return OVERRIDE;}
+#line 457 "lexer.l"
+{yylval.line = line_no; return ARGUMENT;}
YY_BREAK
-case 50:
+case 75:
YY_RULE_SETUP
-#line 173 "lexer.l"
-{return CHECK;}
+#line 458 "lexer.l"
+{yylval.line = line_no; return VIRTUAL;}
YY_BREAK
-case 51:
+case 76:
YY_RULE_SETUP
-#line 174 "lexer.l"
-{return CNULL;}
+#line 459 "lexer.l"
+{yylval.line = line_no; return SIGNAL;}
YY_BREAK
-case 52:
+case 77:
YY_RULE_SETUP
-#line 175 "lexer.l"
-{return TYPE;}
+#line 460 "lexer.l"
+{yylval.line = line_no; return OVERRIDE;}
YY_BREAK
-case 53:
+case 78:
YY_RULE_SETUP
-#line 176 "lexer.l"
-{return ONERROR;}
+#line 461 "lexer.l"
+{
+ yylval.id = g_strdup(yytext);
+ return NUMBER;
+ }
YY_BREAK
-case 54:
+case 79:
YY_RULE_SETUP
-#line 177 "lexer.l"
+#line 465 "lexer.l"
{
+ /* this one is for a classname with a namespace */
yylval.id = g_strdup(yytext);
- return NUMBER;
+ return TYPETOKEN;
}
YY_BREAK
-case 55:
+case 80:
YY_RULE_SETUP
-#line 181 "lexer.l"
+#line 470 "lexer.l"
{
+ /* this is for a classname with an empty namespace */
yylval.id = g_strdup(yytext);
return TYPETOKEN;
}
YY_BREAK
-case 56:
+case 81:
YY_RULE_SETUP
-#line 185 "lexer.l"
+#line 475 "lexer.l"
{
yylval.id = g_strdup(yytext);
return TOKEN;
}
YY_BREAK
-case 57:
+case 82:
YY_RULE_SETUP
-#line 190 "lexer.l"
+#line 480 "lexer.l"
+{
+ yylval.id = g_strdup(yytext);
+ return ARRAY_DIM;
+ }
+ YY_BREAK
+case 83:
+YY_RULE_SETUP
+#line 485 "lexer.l"
{
BEGIN(CLASS_CODE_I);
return '{';
}
YY_BREAK
-case 58:
+case 84:
YY_RULE_SETUP
-#line 194 "lexer.l"
+#line 489 "lexer.l"
{
BEGIN(C_CODE);
parenth_depth=1;
class_after_c = TRUE;
+ yylval.line = line_no;
+ clear_cbuf();
+ ccode_line = line_no;
return '{';
}
YY_BREAK
-case 59:
+case 85:
YY_RULE_SETUP
-#line 200 "lexer.l"
+#line 498 "lexer.l"
{
BEGIN(INITIAL);
return '}';
}
YY_BREAK
-case 60:
+case 86:
YY_RULE_SETUP
-#line 205 "lexer.l"
+#line 503 "lexer.l"
; /*ignore*/
YY_BREAK
-case 61:
+case 87:
YY_RULE_SETUP
-#line 207 "lexer.l"
+#line 505 "lexer.l"
{
yylval.line = line_no;
return yytext[0];
}
YY_BREAK
-case 62:
+case 88:
YY_RULE_SETUP
-#line 211 "lexer.l"
+#line 510 "lexer.l"
+; /*ignore*/
+ YY_BREAK
+case 89:
+YY_RULE_SETUP
+#line 512 "lexer.l"
ECHO;
YY_BREAK
-#line 1295 "lex.yy.c"
+#line 1884 "lex.yy.c"
case YY_STATE_EOF(INITIAL):
case YY_STATE_EOF(COMMENT):
case YY_STATE_EOF(C_CODE):
case YY_STATE_EOF(C_CODE_STRING):
case YY_STATE_EOF(CLASS_CODE):
case YY_STATE_EOF(CLASS_CODE_I):
+ case YY_STATE_EOF(GTK_DOC_BEFORE_NAME):
+ case YY_STATE_EOF(GTK_DOC):
+ case YY_STATE_EOF(GTK_DOC_LINE):
yyterminate();
case YY_END_OF_BUFFER:
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
{
yy_current_state = (int) yy_def[yy_current_state];
- if ( yy_current_state >= 216 )
+ if ( yy_current_state >= 375 )
yy_c = yy_meta[(unsigned int) yy_c];
}
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
{
yy_current_state = (int) yy_def[yy_current_state];
- if ( yy_current_state >= 216 )
+ if ( yy_current_state >= 375 )
yy_c = yy_meta[(unsigned int) yy_c];
}
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
- yy_is_jam = (yy_current_state == 215);
+ yy_is_jam = (yy_current_state == 374);
if ( ! yy_is_jam )
*yy_state_ptr++ = yy_current_state;
}
-#ifndef YY_ALWAYS_INTERACTIVE
-#ifndef YY_NEVER_INTERACTIVE
-extern int isatty YY_PROTO(( int ));
-#endif
-#endif
#ifdef YY_USE_PROTOS
void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
return 0;
}
#endif
-#line 211 "lexer.l"
+#line 512 "lexer.l"
+
+
+/* Ugly warning avoiding */
+#ifdef FLEX_SCANNER
+static void warning_avoider(void) G_GNUC_UNUSED;
+static void warning_avoider(void) {
+ yy_flex_realloc(NULL, 0);
+ yyunput(0, NULL);
+ warning_avoider();
+}
+#endif
+