summaryrefslogtreecommitdiff
path: root/phpdbg_lexer.c
diff options
context:
space:
mode:
authorkrakjoe <joe.watkins@live.co.uk>2014-02-17 22:43:53 +0000
committerkrakjoe <joe.watkins@live.co.uk>2014-02-17 22:43:53 +0000
commitd9801018035ac61fd0d923fc4c24eb98cc41d0e8 (patch)
tree01bd95a6282faa1f2576d935e3b211ae68202189 /phpdbg_lexer.c
parent1641d2afbe559bb3d95a6afe62b006ee90b17f1a (diff)
downloadphp-git-d9801018035ac61fd0d923fc4c24eb98cc41d0e8.tar.gz
start work on resolving commands, add numeric function and method to lexer
Diffstat (limited to 'phpdbg_lexer.c')
-rw-r--r--phpdbg_lexer.c434
1 files changed, 228 insertions, 206 deletions
diff --git a/phpdbg_lexer.c b/phpdbg_lexer.c
index cc8535fe5c..e9e243c5e5 100644
--- a/phpdbg_lexer.c
+++ b/phpdbg_lexer.c
@@ -349,8 +349,8 @@ static void yy_fatal_error (yyconst char msg[] ,yyscan_t yyscanner );
*yy_cp = '\0'; \
yyg->yy_c_buf_p = yy_cp;
-#define YY_NUM_RULES 15
-#define YY_END_OF_BUFFER 16
+#define YY_NUM_RULES 17
+#define YY_END_OF_BUFFER 18
/* This struct is not used in this scanner,
but its presence is necessary. */
struct yy_trans_info
@@ -358,18 +358,18 @@ struct yy_trans_info
flex_int32_t yy_verify;
flex_int32_t yy_nxt;
};
-static yyconst flex_int16_t yy_accept[92] =
+static yyconst flex_int16_t yy_accept[96] =
{ 0,
- 0, 0, 0, 0, 16, 14, 13, 13, 13, 14,
- 11, 6, 6, 14, 11, 11, 11, 11, 11, 11,
- 11, 11, 11, 14, 12, 12, 13, 0, 0, 13,
- 13, 0, 0, 10, 0, 0, 11, 11, 0, 0,
- 6, 0, 11, 11, 11, 11, 3, 5, 11, 4,
- 11, 11, 11, 11, 12, 12, 8, 10, 0, 8,
- 0, 0, 9, 11, 11, 11, 11, 5, 11, 11,
- 4, 7, 0, 0, 11, 11, 1, 11, 11, 4,
- 7, 11, 11, 5, 2, 11, 11, 11, 4, 5,
- 0
+ 0, 0, 0, 0, 18, 16, 15, 15, 15, 16,
+ 13, 6, 6, 16, 13, 13, 13, 13, 13, 13,
+ 13, 13, 13, 16, 14, 14, 15, 0, 0, 15,
+ 15, 0, 0, 12, 0, 0, 0, 13, 13, 0,
+ 0, 6, 0, 13, 13, 13, 13, 3, 5, 13,
+ 4, 13, 13, 13, 13, 14, 14, 10, 12, 0,
+ 10, 8, 0, 0, 11, 13, 13, 13, 13, 5,
+ 13, 13, 4, 9, 0, 0, 13, 13, 1, 13,
+ 13, 4, 0, 9, 13, 13, 5, 2, 7, 13,
+ 13, 13, 4, 5, 0
} ;
@@ -378,184 +378,184 @@ static yyconst flex_int32_t yy_ec[256] =
1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
1, 1, 2, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 4, 1, 5, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 6, 1, 1, 7, 8, 8,
- 8, 8, 8, 8, 8, 8, 8, 9, 1, 1,
- 1, 1, 1, 1, 10, 11, 12, 13, 14, 15,
- 6, 16, 17, 6, 6, 18, 6, 19, 20, 6,
- 6, 21, 22, 23, 24, 25, 6, 6, 26, 6,
- 1, 27, 1, 1, 6, 1, 28, 29, 12, 30,
-
- 31, 32, 6, 33, 34, 6, 6, 35, 6, 36,
- 37, 6, 6, 38, 39, 40, 41, 42, 6, 43,
- 44, 6, 1, 1, 1, 1, 6, 6, 6, 6,
- 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
- 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
- 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
- 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
- 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
- 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
- 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
-
- 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
- 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
- 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
- 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
- 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
- 6, 6, 6, 6, 6
+ 1, 4, 1, 5, 6, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 7, 1, 1, 8, 9, 9,
+ 9, 9, 9, 9, 9, 9, 9, 10, 1, 1,
+ 1, 1, 1, 1, 11, 12, 13, 14, 15, 16,
+ 7, 17, 18, 7, 7, 19, 7, 20, 21, 7,
+ 7, 22, 23, 24, 25, 26, 7, 7, 27, 7,
+ 1, 28, 1, 1, 7, 1, 29, 30, 13, 31,
+
+ 32, 33, 7, 34, 35, 7, 7, 36, 7, 37,
+ 38, 7, 7, 39, 40, 41, 42, 43, 7, 44,
+ 45, 7, 1, 1, 1, 1, 7, 7, 7, 7,
+ 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
+ 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
+ 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
+ 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
+ 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
+ 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
+ 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
+
+ 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
+ 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
+ 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
+ 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
+ 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
+ 7, 7, 7, 7, 7
} ;
-static yyconst flex_int32_t yy_meta[45] =
+static yyconst flex_int32_t yy_meta[46] =
{ 0,
- 1, 1, 2, 3, 1, 4, 5, 5, 1, 4,
- 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
- 4, 4, 4, 4, 4, 4, 1, 4, 4, 4,
- 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
- 4, 4, 4, 4
+ 1, 1, 2, 3, 1, 4, 5, 4, 4, 1,
+ 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
+ 5, 5, 5, 5, 5, 5, 5, 1, 5, 5,
+ 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
+ 5, 5, 5, 5, 5
} ;
-static yyconst flex_int16_t yy_base[103] =
+static yyconst flex_int16_t yy_base[107] =
{ 0,
- 0, 0, 43, 46, 161, 150, 49, 52, 60, 61,
- 88, 60, 64, 433, 115, 58, 70, 42, 65, 93,
- 97, 116, 121, 155, 0, 103, 137, 125, 71, 142,
- 163, 164, 116, 77, 167, 144, 67, 92, 169, 194,
- 172, 215, 166, 176, 203, 172, 94, 102, 200, 153,
- 202, 218, 231, 175, 0, 236, 177, 433, 78, 249,
- 0, 276, 0, 241, 238, 256, 265, 246, 271, 278,
- 276, 0, 312, 339, 316, 290, 277, 318, 319, 284,
- 0, 338, 343, 309, 317, 344, 346, 351, 345, 348,
- 433, 385, 390, 395, 400, 405, 410, 415, 420, 56,
-
- 425, 427
+ 0, 0, 44, 47, 160, 136, 50, 53, 62, 57,
+ 85, 60, 63, 433, 113, 63, 91, 64, 89, 112,
+ 41, 90, 118, 153, 0, 75, 135, 101, 126, 162,
+ 140, 147, 112, 95, 162, 170, 168, 66, 150, 174,
+ 190, 178, 211, 171, 199, 218, 195, 197, 198, 219,
+ 220, 230, 221, 241, 231, 0, 199, 196, 433, 100,
+ 252, 199, 0, 281, 0, 240, 267, 259, 270, 232,
+ 280, 285, 278, 90, 320, 0, 289, 314, 296, 319,
+ 317, 309, 262, 86, 320, 325, 323, 324, 264, 346,
+ 348, 349, 347, 350, 433, 385, 390, 395, 400, 405,
+
+ 410, 415, 420, 69, 425, 427
} ;
-static yyconst flex_int16_t yy_def[103] =
+static yyconst flex_int16_t yy_def[107] =
{ 0,
- 91, 1, 92, 92, 91, 93, 93, 93, 91, 94,
- 95, 93, 93, 91, 95, 15, 15, 15, 15, 15,
- 15, 15, 15, 96, 97, 97, 91, 93, 91, 93,
- 91, 94, 98, 93, 98, 94, 15, 15, 91, 99,
- 93, 93, 15, 15, 15, 15, 15, 15, 15, 15,
- 15, 15, 15, 15, 97, 97, 91, 91, 98, 98,
- 100, 101, 42, 15, 15, 15, 15, 15, 15, 15,
- 15, 102, 101, 101, 15, 15, 15, 15, 15, 15,
- 102, 15, 15, 15, 15, 15, 15, 15, 15, 15,
- 0, 91, 91, 91, 91, 91, 91, 91, 91, 91,
-
- 91, 91
+ 95, 1, 96, 96, 95, 97, 97, 97, 95, 98,
+ 99, 97, 97, 95, 99, 15, 15, 15, 15, 15,
+ 15, 15, 15, 100, 101, 101, 95, 97, 95, 97,
+ 95, 98, 102, 97, 102, 98, 97, 15, 15, 95,
+ 103, 97, 97, 15, 15, 15, 15, 15, 15, 15,
+ 15, 15, 15, 15, 15, 101, 101, 95, 95, 102,
+ 102, 97, 104, 105, 43, 15, 15, 15, 15, 15,
+ 15, 15, 15, 106, 105, 75, 15, 15, 15, 15,
+ 15, 15, 95, 106, 15, 15, 15, 15, 95, 15,
+ 15, 15, 15, 15, 0, 95, 95, 95, 95, 95,
+
+ 95, 95, 95, 95, 95, 95
} ;
-static yyconst flex_int16_t yy_nxt[478] =
+static yyconst flex_int16_t yy_nxt[479] =
{ 0,
- 6, 7, 8, 9, 10, 11, 12, 13, 14, 11,
- 11, 11, 15, 16, 17, 11, 18, 11, 19, 20,
- 11, 21, 22, 11, 11, 23, 24, 11, 11, 15,
- 16, 17, 11, 18, 11, 19, 20, 11, 21, 22,
- 11, 11, 11, 23, 26, 27, 26, 26, 27, 26,
- 30, 30, 31, 30, 30, 31, 47, 29, 37, 72,
- 29, 31, 31, 31, 33, 34, 41, 41, 29, 35,
- 41, 41, 29, 47, 37, 37, 44, 57, 57, 46,
- 91, 37, 45, 37, 48, 29, 37, 36, 28, 28,
- 28, 37, 28, 44, 38, 38, 39, 46, 37, 45,
-
- 37, 48, 42, 37, 56, 31, 56, 49, 37, 37,
- 37, 50, 51, 37, 40, 28, 28, 28, 37, 28,
- 58, 38, 38, 39, 49, 37, 37, 37, 50, 51,
- 37, 43, 37, 29, 53, 37, 52, 37, 31, 31,
- 31, 40, 59, 30, 30, 31, 28, 33, 43, 37,
- 29, 53, 35, 52, 37, 28, 28, 28, 29, 28,
- 91, 28, 28, 29, 31, 31, 31, 33, 34, 37,
- 91, 58, 35, 60, 60, 57, 57, 61, 41, 41,
- 29, 28, 37, 57, 57, 65, 37, 64, 37, 67,
- 36, 37, 37, 59, 28, 28, 28, 91, 28, 37,
-
- 28, 28, 29, 65, 64, 37, 67, 91, 37, 37,
- 91, 91, 66, 91, 68, 69, 37, 91, 37, 37,
- 28, 63, 63, 29, 63, 63, 63, 63, 63, 63,
- 66, 68, 69, 37, 37, 37, 37, 56, 31, 56,
- 91, 70, 63, 63, 63, 63, 63, 37, 76, 91,
- 75, 37, 71, 58, 37, 60, 60, 37, 70, 91,
- 91, 91, 37, 91, 37, 91, 76, 91, 75, 71,
- 91, 37, 37, 77, 37, 59, 28, 28, 28, 37,
- 28, 37, 74, 74, 39, 91, 78, 37, 79, 37,
- 77, 80, 37, 37, 37, 91, 91, 91, 37, 91,
-
- 37, 91, 40, 78, 37, 79, 37, 83, 80, 37,
- 37, 37, 28, 28, 28, 91, 28, 37, 74, 74,
- 39, 91, 91, 37, 83, 37, 82, 91, 91, 91,
- 91, 84, 37, 37, 37, 37, 85, 91, 40, 28,
- 28, 28, 37, 28, 82, 74, 74, 39, 84, 37,
- 37, 37, 37, 85, 37, 86, 87, 88, 89, 37,
- 37, 37, 37, 90, 37, 40, 91, 37, 91, 91,
- 91, 37, 86, 87, 88, 89, 37, 37, 37, 37,
- 90, 37, 91, 91, 37, 25, 25, 25, 25, 25,
- 28, 28, 91, 28, 28, 32, 32, 32, 32, 32,
-
- 37, 37, 91, 37, 37, 54, 54, 91, 54, 54,
- 55, 91, 55, 55, 55, 33, 33, 33, 33, 33,
- 62, 62, 91, 62, 62, 73, 73, 91, 73, 73,
- 81, 81, 5, 91, 91, 91, 91, 91, 91, 91,
- 91, 91, 91, 91, 91, 91, 91, 91, 91, 91,
- 91, 91, 91, 91, 91, 91, 91, 91, 91, 91,
- 91, 91, 91, 91, 91, 91, 91, 91, 91, 91,
- 91, 91, 91, 91, 91, 91, 91
+ 6, 7, 8, 9, 10, 6, 11, 12, 13, 14,
+ 11, 11, 11, 15, 16, 17, 11, 18, 11, 19,
+ 20, 11, 21, 22, 11, 11, 23, 24, 11, 11,
+ 15, 16, 17, 11, 18, 11, 19, 20, 11, 21,
+ 22, 11, 11, 11, 23, 26, 27, 26, 26, 27,
+ 26, 30, 30, 31, 30, 30, 31, 52, 38, 29,
+ 33, 34, 29, 31, 31, 31, 35, 42, 42, 29,
+ 42, 42, 29, 74, 52, 38, 57, 31, 57, 48,
+ 38, 38, 45, 38, 36, 28, 28, 28, 46, 28,
+ 37, 83, 39, 39, 40, 83, 48, 38, 38, 45,
+
+ 38, 47, 95, 43, 29, 46, 38, 38, 38, 49,
+ 29, 53, 41, 28, 28, 28, 59, 28, 37, 47,
+ 39, 39, 40, 38, 38, 38, 49, 50, 53, 38,
+ 44, 51, 54, 58, 58, 38, 31, 31, 31, 60,
+ 41, 31, 31, 31, 50, 29, 38, 44, 51, 54,
+ 33, 34, 38, 28, 28, 28, 35, 28, 28, 95,
+ 28, 28, 29, 30, 30, 31, 59, 38, 95, 61,
+ 61, 29, 28, 33, 36, 62, 62, 29, 95, 35,
+ 28, 58, 58, 63, 38, 42, 42, 29, 38, 60,
+ 28, 28, 28, 66, 28, 28, 95, 28, 28, 29,
+
+ 57, 31, 57, 58, 58, 38, 62, 62, 29, 67,
+ 66, 95, 38, 69, 38, 38, 38, 28, 65, 65,
+ 29, 65, 65, 65, 65, 65, 65, 67, 68, 38,
+ 69, 38, 38, 38, 70, 38, 38, 38, 38, 65,
+ 65, 65, 65, 65, 71, 72, 68, 38, 38, 38,
+ 77, 70, 38, 38, 38, 38, 59, 38, 38, 61,
+ 61, 71, 72, 73, 38, 38, 38, 95, 77, 89,
+ 89, 89, 89, 95, 38, 38, 38, 79, 78, 60,
+ 73, 28, 28, 28, 38, 28, 28, 38, 76, 76,
+ 40, 95, 80, 38, 79, 38, 78, 38, 81, 82,
+
+ 85, 38, 38, 95, 38, 95, 38, 95, 41, 80,
+ 95, 95, 38, 38, 38, 81, 82, 95, 85, 38,
+ 28, 28, 28, 38, 28, 28, 38, 76, 76, 40,
+ 38, 38, 86, 87, 38, 88, 38, 38, 90, 91,
+ 38, 38, 38, 38, 95, 95, 95, 41, 38, 86,
+ 87, 38, 88, 38, 38, 90, 91, 38, 38, 38,
+ 92, 93, 94, 38, 38, 38, 38, 38, 95, 95,
+ 95, 95, 95, 95, 95, 95, 95, 92, 93, 94,
+ 38, 38, 38, 38, 38, 25, 25, 25, 25, 25,
+ 28, 28, 95, 28, 28, 32, 32, 32, 32, 32,
+
+ 38, 38, 95, 38, 38, 55, 55, 95, 55, 55,
+ 56, 95, 56, 56, 56, 33, 33, 33, 33, 33,
+ 64, 64, 95, 64, 64, 75, 75, 95, 75, 75,
+ 84, 84, 5, 95, 95, 95, 95, 95, 95, 95,
+ 95, 95, 95, 95, 95, 95, 95, 95, 95, 95,
+ 95, 95, 95, 95, 95, 95, 95, 95, 95, 95,
+ 95, 95, 95, 95, 95, 95, 95, 95, 95, 95,
+ 95, 95, 95, 95, 95, 95, 95, 95
} ;
-static yyconst flex_int16_t yy_chk[478] =
+static yyconst flex_int16_t yy_chk[479] =
{ 0,
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,
- 1, 1, 1, 1, 3, 3, 3, 4, 4, 4,
- 7, 7, 7, 8, 8, 8, 18, 7, 18, 100,
- 8, 9, 9, 9, 10, 10, 12, 12, 12, 10,
- 13, 13, 13, 18, 16, 18, 16, 29, 29, 17,
- 59, 19, 16, 37, 19, 34, 17, 10, 11, 11,
- 11, 16, 11, 16, 11, 11, 11, 17, 19, 16,
-
- 37, 19, 12, 17, 26, 26, 26, 20, 38, 20,
- 47, 20, 21, 21, 11, 15, 15, 15, 48, 15,
- 33, 15, 15, 15, 20, 38, 20, 47, 20, 21,
- 21, 15, 22, 28, 23, 48, 22, 23, 27, 27,
- 27, 15, 33, 30, 30, 30, 36, 36, 15, 22,
- 30, 23, 36, 22, 23, 24, 24, 24, 6, 24,
- 5, 24, 24, 24, 31, 31, 31, 32, 32, 50,
- 0, 35, 32, 35, 35, 39, 39, 39, 41, 41,
- 41, 24, 43, 57, 57, 44, 50, 43, 46, 46,
- 32, 54, 44, 35, 40, 40, 40, 0, 40, 43,
-
- 40, 40, 40, 44, 43, 46, 46, 0, 54, 44,
- 0, 0, 45, 0, 49, 51, 49, 0, 51, 45,
- 40, 42, 42, 42, 42, 42, 42, 42, 42, 42,
- 45, 49, 51, 49, 52, 51, 45, 56, 56, 56,
- 0, 52, 42, 42, 42, 42, 42, 53, 65, 0,
- 64, 52, 53, 60, 65, 60, 60, 64, 52, 0,
- 0, 0, 68, 0, 53, 0, 65, 0, 64, 53,
- 0, 65, 66, 66, 64, 60, 62, 62, 62, 68,
- 62, 67, 62, 62, 62, 0, 67, 69, 69, 66,
- 66, 70, 71, 77, 70, 0, 0, 0, 67, 0,
-
- 80, 0, 62, 67, 69, 69, 76, 76, 70, 71,
- 77, 70, 73, 73, 73, 0, 73, 80, 73, 73,
- 73, 0, 0, 76, 76, 84, 75, 0, 0, 0,
- 0, 78, 75, 85, 78, 79, 79, 0, 73, 74,
- 74, 74, 84, 74, 75, 74, 74, 74, 78, 75,
- 85, 78, 79, 79, 82, 82, 83, 86, 87, 83,
- 86, 89, 87, 88, 90, 74, 0, 88, 0, 0,
- 0, 82, 82, 83, 86, 87, 83, 86, 89, 87,
- 88, 90, 0, 0, 88, 92, 92, 92, 92, 92,
- 93, 93, 0, 93, 93, 94, 94, 94, 94, 94,
-
- 95, 95, 0, 95, 95, 96, 96, 0, 96, 96,
- 97, 0, 97, 97, 97, 98, 98, 98, 98, 98,
- 99, 99, 0, 99, 99, 101, 101, 0, 101, 101,
- 102, 102, 91, 91, 91, 91, 91, 91, 91, 91,
- 91, 91, 91, 91, 91, 91, 91, 91, 91, 91,
- 91, 91, 91, 91, 91, 91, 91, 91, 91, 91,
- 91, 91, 91, 91, 91, 91, 91, 91, 91, 91,
- 91, 91, 91, 91, 91, 91, 91
+ 1, 1, 1, 1, 1, 3, 3, 3, 4, 4,
+ 4, 7, 7, 7, 8, 8, 8, 21, 21, 7,
+ 10, 10, 8, 9, 9, 9, 10, 12, 12, 12,
+ 13, 13, 13, 104, 21, 21, 26, 26, 26, 18,
+ 16, 18, 16, 38, 10, 11, 11, 11, 16, 11,
+ 11, 84, 11, 11, 11, 74, 18, 16, 18, 16,
+
+ 38, 17, 60, 12, 34, 16, 19, 22, 17, 19,
+ 28, 22, 11, 15, 15, 15, 33, 15, 15, 17,
+ 15, 15, 15, 19, 22, 17, 19, 20, 22, 20,
+ 15, 20, 23, 29, 29, 23, 27, 27, 27, 33,
+ 15, 31, 31, 31, 20, 6, 20, 15, 20, 23,
+ 32, 32, 23, 24, 24, 24, 32, 24, 24, 5,
+ 24, 24, 24, 30, 30, 30, 35, 39, 0, 35,
+ 35, 30, 36, 36, 32, 37, 37, 37, 0, 36,
+ 24, 40, 40, 40, 39, 42, 42, 42, 44, 35,
+ 41, 41, 41, 44, 41, 41, 0, 41, 41, 41,
+
+ 57, 57, 57, 58, 58, 44, 62, 62, 62, 45,
+ 44, 0, 47, 47, 48, 49, 45, 41, 43, 43,
+ 43, 43, 43, 43, 43, 43, 43, 45, 46, 47,
+ 47, 48, 49, 45, 50, 46, 50, 51, 53, 43,
+ 43, 43, 43, 43, 52, 53, 46, 52, 55, 70,
+ 66, 50, 46, 50, 51, 53, 61, 66, 54, 61,
+ 61, 52, 53, 54, 52, 55, 70, 0, 66, 83,
+ 83, 89, 89, 0, 66, 54, 68, 68, 67, 61,
+ 54, 64, 64, 64, 67, 64, 64, 69, 64, 64,
+ 64, 0, 69, 68, 68, 73, 67, 71, 71, 72,
+
+ 77, 67, 72, 0, 69, 0, 77, 0, 64, 69,
+ 0, 0, 73, 79, 71, 71, 72, 0, 77, 72,
+ 75, 75, 75, 77, 75, 75, 82, 75, 75, 75,
+ 79, 78, 78, 80, 81, 81, 80, 85, 85, 86,
+ 87, 88, 86, 82, 0, 0, 0, 75, 78, 78,
+ 80, 81, 81, 80, 85, 85, 86, 87, 88, 86,
+ 90, 91, 92, 90, 93, 91, 92, 94, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 90, 91, 92,
+ 90, 93, 91, 92, 94, 96, 96, 96, 96, 96,
+ 97, 97, 0, 97, 97, 98, 98, 98, 98, 98,
+
+ 99, 99, 0, 99, 99, 100, 100, 0, 100, 100,
+ 101, 0, 101, 101, 101, 102, 102, 102, 102, 102,
+ 103, 103, 0, 103, 103, 105, 105, 0, 105, 105,
+ 106, 106, 95, 95, 95, 95, 95, 95, 95, 95,
+ 95, 95, 95, 95, 95, 95, 95, 95, 95, 95,
+ 95, 95, 95, 95, 95, 95, 95, 95, 95, 95,
+ 95, 95, 95, 95, 95, 95, 95, 95, 95, 95,
+ 95, 95, 95, 95, 95, 95, 95, 95
} ;
/* The intent behind this definition is that it'll catch
@@ -819,7 +819,7 @@ YY_DECL
register int yy_act;
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
-#line 45 "sapi/phpdbg/dev/phpdbg_lexer.l"
+#line 47 "sapi/phpdbg/dev/phpdbg_lexer.l"
#line 825 "sapi/phpdbg/phpdbg_lexer.c"
@@ -876,13 +876,13 @@ yy_match:
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 >= 92 )
+ if ( yy_current_state >= 96 )
yy_c = yy_meta[(unsigned int) yy_c];
}
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
++yy_cp;
}
- while ( yy_current_state != 91 );
+ while ( yy_current_state != 95 );
yy_cp = yyg->yy_last_accepting_cpos;
yy_current_state = yyg->yy_last_accepting_state;
@@ -904,7 +904,7 @@ do_action: /* This label is used only to access EOF actions. */
case 1:
YY_RULE_SETUP
-#line 48 "sapi/phpdbg/dev/phpdbg_lexer.l"
+#line 50 "sapi/phpdbg/dev/phpdbg_lexer.l"
{
BEGIN(RAW);
phpdbg_init_param(yylval, EMPTY_PARAM);
@@ -913,7 +913,7 @@ YY_RULE_SETUP
YY_BREAK
case 2:
YY_RULE_SETUP
-#line 53 "sapi/phpdbg/dev/phpdbg_lexer.l"
+#line 55 "sapi/phpdbg/dev/phpdbg_lexer.l"
{
BEGIN(RAW);
phpdbg_init_param(yylval, EMPTY_PARAM);
@@ -922,7 +922,7 @@ YY_RULE_SETUP
YY_BREAK
case 3:
YY_RULE_SETUP
-#line 58 "sapi/phpdbg/dev/phpdbg_lexer.l"
+#line 60 "sapi/phpdbg/dev/phpdbg_lexer.l"
{
BEGIN(RAW);
phpdbg_init_param(yylval, EMPTY_PARAM);
@@ -931,7 +931,7 @@ YY_RULE_SETUP
YY_BREAK
case 4:
YY_RULE_SETUP
-#line 63 "sapi/phpdbg/dev/phpdbg_lexer.l"
+#line 65 "sapi/phpdbg/dev/phpdbg_lexer.l"
{
phpdbg_init_param(yylval, NUMERIC_PARAM);
yylval->num = 1;
@@ -940,7 +940,7 @@ YY_RULE_SETUP
YY_BREAK
case 5:
YY_RULE_SETUP
-#line 68 "sapi/phpdbg/dev/phpdbg_lexer.l"
+#line 70 "sapi/phpdbg/dev/phpdbg_lexer.l"
{
phpdbg_init_param(yylval, NUMERIC_PARAM);
yylval->num = 0;
@@ -949,7 +949,7 @@ YY_RULE_SETUP
YY_BREAK
case 6:
YY_RULE_SETUP
-#line 73 "sapi/phpdbg/dev/phpdbg_lexer.l"
+#line 75 "sapi/phpdbg/dev/phpdbg_lexer.l"
{
phpdbg_init_param(yylval, NUMERIC_PARAM);
yylval->num = atoi(yytext);
@@ -958,18 +958,40 @@ YY_RULE_SETUP
YY_BREAK
case 7:
YY_RULE_SETUP
-#line 78 "sapi/phpdbg/dev/phpdbg_lexer.l"
+#line 80 "sapi/phpdbg/dev/phpdbg_lexer.l"
{
- phpdbg_init_param(yylval, METHOD_PARAM);
+ phpdbg_init_param(yylval, NUMERIC_METHOD_PARAM);
yylval->method.class = "class";
yylval->method.name = "func";
+ yylval->num = 0;
return T_METHOD;
}
YY_BREAK
case 8:
-/* rule 8 can match eol */
YY_RULE_SETUP
-#line 84 "sapi/phpdbg/dev/phpdbg_lexer.l"
+#line 87 "sapi/phpdbg/dev/phpdbg_lexer.l"
+{
+ phpdbg_init_param(yylval, NUMERIC_FUNCTION_PARAM);
+ yylval->str = strndup(yytext, yyleng);
+ yylval->len = yyleng;
+ yylval->num = 0;
+ return T_ID;
+ }
+ YY_BREAK
+case 9:
+YY_RULE_SETUP
+#line 94 "sapi/phpdbg/dev/phpdbg_lexer.l"
+{
+ phpdbg_init_param(yylval, METHOD_PARAM);
+ yylval->method.class = "class";
+ yylval->method.name = "func";
+ return T_METHOD;
+ }
+ YY_BREAK
+case 10:
+/* rule 10 can match eol */
+YY_RULE_SETUP
+#line 100 "sapi/phpdbg/dev/phpdbg_lexer.l"
{
phpdbg_init_param(yylval, FILE_PARAM);
yylval->file.name = strndup(yytext, yyleng);
@@ -977,19 +999,19 @@ YY_RULE_SETUP
return T_FILE;
}
YY_BREAK
-case 9:
+case 11:
YY_RULE_SETUP
-#line 90 "sapi/phpdbg/dev/phpdbg_lexer.l"
+#line 106 "sapi/phpdbg/dev/phpdbg_lexer.l"
{
phpdbg_init_param(yylval, ADDR_PARAM);
yylval->addr = strtoul(yytext, NULL, 10);
return T_OPLINE;
}
YY_BREAK
-case 10:
-/* rule 10 can match eol */
+case 12:
+/* rule 12 can match eol */
YY_RULE_SETUP
-#line 95 "sapi/phpdbg/dev/phpdbg_lexer.l"
+#line 111 "sapi/phpdbg/dev/phpdbg_lexer.l"
{
phpdbg_init_param(yylval, STR_PARAM);
yylval->str = strndup(yytext, yyleng);
@@ -997,9 +1019,9 @@ YY_RULE_SETUP
return T_LITERAL;
}
YY_BREAK
-case 11:
+case 13:
YY_RULE_SETUP
-#line 101 "sapi/phpdbg/dev/phpdbg_lexer.l"
+#line 117 "sapi/phpdbg/dev/phpdbg_lexer.l"
{
phpdbg_init_param(yylval, STR_PARAM);
yylval->str = strndup(yytext, yyleng);
@@ -1008,9 +1030,9 @@ YY_RULE_SETUP
}
YY_BREAK
-case 12:
+case 14:
YY_RULE_SETUP
-#line 108 "sapi/phpdbg/dev/phpdbg_lexer.l"
+#line 124 "sapi/phpdbg/dev/phpdbg_lexer.l"
{
phpdbg_init_param(yylval, STR_PARAM);
yylval->str = strndup(yytext, yyleng);
@@ -1019,26 +1041,26 @@ YY_RULE_SETUP
return T_INPUT;
}
YY_BREAK
-case 13:
-/* rule 13 can match eol */
+case 15:
+/* rule 15 can match eol */
YY_RULE_SETUP
-#line 115 "sapi/phpdbg/dev/phpdbg_lexer.l"
+#line 131 "sapi/phpdbg/dev/phpdbg_lexer.l"
{ /* ignore whitespace */ }
YY_BREAK
-case 14:
+case 16:
YY_RULE_SETUP
-#line 116 "sapi/phpdbg/dev/phpdbg_lexer.l"
+#line 132 "sapi/phpdbg/dev/phpdbg_lexer.l"
{
phpdbg_init_param(yylval, EMPTY_PARAM);
return T_UNEXPECTED;
}
YY_BREAK
-case 15:
+case 17:
YY_RULE_SETUP
-#line 120 "sapi/phpdbg/dev/phpdbg_lexer.l"
+#line 136 "sapi/phpdbg/dev/phpdbg_lexer.l"
YY_FATAL_ERROR( "flex scanner jammed" );
YY_BREAK
-#line 1042 "sapi/phpdbg/phpdbg_lexer.c"
+#line 1064 "sapi/phpdbg/phpdbg_lexer.c"
case YY_STATE_EOF(INITIAL):
case YY_STATE_EOF(RAW):
yyterminate();
@@ -1334,7 +1356,7 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
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 >= 92 )
+ if ( yy_current_state >= 96 )
yy_c = yy_meta[(unsigned int) yy_c];
}
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
@@ -1363,11 +1385,11 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
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 >= 92 )
+ if ( yy_current_state >= 96 )
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 == 91);
+ yy_is_jam = (yy_current_state == 95);
return yy_is_jam ? 0 : yy_current_state;
}
@@ -2203,7 +2225,7 @@ void yyfree (void * ptr , yyscan_t yyscanner)
#define YYTABLES_NAME "yytables"
-#line 120 "sapi/phpdbg/dev/phpdbg_lexer.l"
+#line 136 "sapi/phpdbg/dev/phpdbg_lexer.l"