summaryrefslogtreecommitdiff
path: root/ext/syck/gram.c
diff options
context:
space:
mode:
authorwhy <why@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-05-22 05:41:06 +0000
committerwhy <why@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-05-22 05:41:06 +0000
commit5e1c96af5323f757c9875ea1fb5b754e4dd257cd (patch)
tree22bbba2734e272dfcc0c3a452358aeb23fc17929 /ext/syck/gram.c
parenta2cd1bbf3e70dfa1be172851ffd4b6bad3190560 (diff)
* ext/syck/rubyext.c (syck_parser_load): root-level false was returning
nil. * ext/syck/token.c: root-level transfer method bug. * ext/syck/gram.c: root-level empty gave a parse error. * lib/yaml/rubytypes.rb: Symbol#to_yaml generating method call error. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3850 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/syck/gram.c')
-rw-r--r--ext/syck/gram.c136
1 files changed, 68 insertions, 68 deletions
diff --git a/ext/syck/gram.c b/ext/syck/gram.c
index 310e6e129b..8b52d62a6e 100644
--- a/ext/syck/gram.c
+++ b/ext/syck/gram.c
@@ -228,8 +228,8 @@ union yyalloc
#endif
/* YYFINAL -- State number of the termination state. */
-#define YYFINAL 32
-#define YYLAST 198
+#define YYFINAL 33
+#define YYLAST 196
/* YYNTOKENS -- Number of terminals. */
#define YYNTOKENS 23
@@ -295,7 +295,7 @@ static const unsigned char yyprhs[] =
/* YYRHS -- A `-1'-separated list of the rules' RHS. */
static const yysigned_char yyrhs[] =
{
- 24, 0, -1, 32, -1, 10, 25, -1, -1, 31,
+ 24, 0, -1, 32, -1, 10, 26, -1, -1, 31,
-1, 32, -1, 3, 25, -1, 4, -1, 27, 25,
30, -1, 25, -1, -1, 11, -1, 27, 12, -1,
13, -1, 12, -1, 13, -1, 29, 30, -1, 5,
@@ -378,12 +378,12 @@ static const unsigned char yyr2[] =
means the default is an error. */
static const unsigned char yydefact[] =
{
- 4, 0, 23, 0, 12, 0, 0, 0, 0, 2,
+ 4, 0, 23, 11, 12, 0, 0, 0, 0, 2,
24, 25, 26, 27, 22, 0, 8, 0, 0, 20,
- 21, 3, 0, 5, 6, 35, 36, 0, 49, 0,
- 50, 0, 1, 0, 13, 11, 0, 0, 31, 0,
- 41, 43, 0, 7, 18, 0, 19, 0, 0, 5,
- 34, 0, 11, 48, 0, 15, 0, 10, 30, 0,
+ 21, 10, 3, 0, 5, 6, 35, 36, 0, 49,
+ 0, 50, 0, 1, 0, 13, 11, 0, 0, 31,
+ 0, 41, 43, 0, 7, 18, 0, 19, 0, 0,
+ 5, 34, 0, 11, 48, 0, 15, 0, 30, 0,
11, 14, 28, 33, 38, 46, 16, 0, 9, 37,
47, 51, 0, 0, 0, 40, 32, 44, 45, 17,
29, 39, 11, 42
@@ -392,33 +392,33 @@ static const unsigned char yydefact[] =
/* YYDEFGOTO[NTERM-NUM]. */
static const yysigned_char yydefgoto[] =
{
- -1, 7, 57, 58, 22, 62, 56, 68, 23, 24,
- 10, 38, 39, 11, 27, 12, 40, 41, 42, 30,
- 13, 31
+ -1, 7, 21, 22, 23, 62, 57, 68, 24, 25,
+ 10, 39, 40, 11, 28, 12, 41, 42, 43, 31,
+ 13, 32
};
/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
STATE-NUM. */
-#define YYPACT_NINF -47
+#define YYPACT_NINF -50
static const short yypact[] =
{
- 168, 179, -47, 133, -47, 116, 78, 5, 94, -47,
- -47, -47, -47, -47, -47, 133, -47, 163, 85, -47,
- -47, -47, 58, -47, -47, -47, -47, -3, -47, 9,
- -47, 1, -47, 35, -47, 133, 133, 12, -47, 18,
- -47, -47, 18, -47, -47, 85, -47, 148, 32, 12,
- -47, 133, 133, -47, 133, -47, 104, -47, -47, 24,
- 133, -47, -47, 36, -47, 104, -47, 32, -47, -47,
- -47, -47, 18, 18, 40, -47, -47, -47, -47, -47,
- -47, -47, 133, -47
+ 169, 13, -50, 134, -50, 117, 79, 3, 95, -50,
+ -50, -50, -50, -50, -50, 134, -50, 164, 86, -50,
+ -50, -50, -50, 59, -50, -50, -50, -50, -1, -50,
+ -7, -50, 14, -50, 184, -50, 134, 134, 10, -50,
+ 32, -50, -50, 32, -50, -50, 86, -50, 149, 62,
+ 10, -50, 134, 134, -50, 134, -50, 105, -50, 15,
+ 134, -50, -50, 25, -50, 105, -50, 62, -50, -50,
+ -50, -50, 32, 32, 26, -50, -50, -50, -50, -50,
+ -50, -50, 134, -50
};
/* YYPGOTO[NTERM-NUM]. */
static const yysigned_char yypgoto[] =
{
- -47, -47, -2, -44, 6, -40, -13, -16, -8, 11,
- -47, -46, 0, -47, -47, -47, -47, 3, 15, 19,
- -47, -47
+ -50, -50, -4, -24, 4, -30, -12, -21, -8, 6,
+ -50, -49, 2, -50, -50, -50, -50, -15, 12, -2,
+ -50, -50
};
/* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If
@@ -428,50 +428,50 @@ static const yysigned_char yypgoto[] =
#define YYTABLE_NINF -1
static const unsigned char yytable[] =
{
- 37, 21, 64, 26, 29, 32, 8, 8, 70, 44,
- 46, 9, 14, 43, 49, 50, 75, 76, 51, 77,
- 48, 53, 54, 8, 52, 44, 63, 60, 14, 65,
- 55, 61, 80, 81, 59, 67, 55, 44, 83, 44,
- 45, 18, 19, 20, 55, 66, 74, 55, 37, 69,
- 35, 79, 29, 8, 67, 82, 72, 37, 14, 63,
- 65, 15, 16, 47, 18, 19, 20, 2, 78, 4,
- 34, 73, 35, 71, 0, 5, 0, 6, 0, 0,
- 36, 15, 16, 17, 18, 19, 20, 2, 0, 4,
- 45, 18, 19, 20, 0, 5, 0, 6, 28, 33,
- 18, 19, 20, 0, 0, 0, 34, 0, 35, 45,
- 18, 19, 20, 0, 0, 0, 36, 0, 35, 15,
- 16, 17, 18, 19, 20, 2, 36, 4, 0, 0,
- 0, 0, 0, 5, 25, 6, 15, 16, 17, 18,
- 19, 20, 2, 0, 4, 0, 0, 0, 0, 0,
- 5, 0, 6, 17, 18, 19, 20, 2, 0, 4,
- 55, 0, 0, 0, 0, 5, 0, 6, 17, 18,
- 19, 20, 2, 1, 4, 0, 0, 2, 3, 4,
- 5, 0, 6, 0, 1, 5, 0, 6, 2, 0,
- 4, 0, 0, 0, 0, 0, 5, 0, 6
+ 38, 27, 30, 33, 8, 8, 9, 14, 53, 45,
+ 47, 44, 58, 64, 76, 50, 77, 51, 1, 49,
+ 52, 8, 2, 14, 4, 60, 45, 56, 63, 70,
+ 5, 65, 6, 59, 54, 55, 75, 67, 45, 36,
+ 45, 82, 80, 81, 56, 61, 79, 74, 69, 38,
+ 78, 30, 8, 71, 14, 67, 0, 38, 83, 72,
+ 63, 65, 15, 16, 48, 18, 19, 20, 2, 73,
+ 4, 35, 0, 36, 56, 66, 5, 0, 6, 0,
+ 0, 37, 15, 16, 17, 18, 19, 20, 2, 0,
+ 4, 46, 18, 19, 20, 0, 5, 0, 6, 29,
+ 34, 18, 19, 20, 0, 0, 0, 35, 0, 36,
+ 46, 18, 19, 20, 0, 0, 0, 37, 0, 36,
+ 15, 16, 17, 18, 19, 20, 2, 37, 4, 0,
+ 0, 0, 0, 0, 5, 26, 6, 15, 16, 17,
+ 18, 19, 20, 2, 0, 4, 0, 0, 0, 0,
+ 0, 5, 0, 6, 17, 18, 19, 20, 2, 0,
+ 4, 56, 0, 0, 0, 0, 5, 0, 6, 17,
+ 18, 19, 20, 2, 1, 4, 0, 0, 2, 3,
+ 4, 5, 0, 6, 0, 0, 5, 0, 6, 46,
+ 18, 19, 20, 0, 0, 0, 56
};
static const yysigned_char yycheck[] =
{
- 8, 3, 42, 5, 6, 0, 0, 1, 52, 17,
- 18, 0, 1, 15, 22, 18, 60, 63, 21, 65,
- 22, 20, 21, 17, 15, 33, 39, 15, 17, 42,
- 12, 13, 72, 73, 36, 48, 12, 45, 82, 47,
- 5, 6, 7, 8, 12, 13, 59, 12, 56, 51,
- 14, 67, 54, 47, 67, 15, 56, 65, 47, 72,
- 73, 3, 4, 5, 6, 7, 8, 9, 65, 11,
- 12, 56, 14, 54, -1, 17, -1, 19, -1, -1,
- 22, 3, 4, 5, 6, 7, 8, 9, -1, 11,
- 5, 6, 7, 8, -1, 17, -1, 19, 20, 5,
- 6, 7, 8, -1, -1, -1, 12, -1, 14, 5,
- 6, 7, 8, -1, -1, -1, 22, -1, 14, 3,
- 4, 5, 6, 7, 8, 9, 22, 11, -1, -1,
- -1, -1, -1, 17, 18, 19, 3, 4, 5, 6,
- 7, 8, 9, -1, 11, -1, -1, -1, -1, -1,
- 17, -1, 19, 5, 6, 7, 8, 9, -1, 11,
- 12, -1, -1, -1, -1, 17, -1, 19, 5, 6,
- 7, 8, 9, 5, 11, -1, -1, 9, 10, 11,
- 17, -1, 19, -1, 5, 17, -1, 19, 9, -1,
- 11, -1, -1, -1, -1, -1, 17, -1, 19
+ 8, 5, 6, 0, 0, 1, 0, 1, 15, 17,
+ 18, 15, 36, 43, 63, 23, 65, 18, 5, 23,
+ 21, 17, 9, 17, 11, 15, 34, 12, 40, 53,
+ 17, 43, 19, 37, 20, 21, 60, 49, 46, 14,
+ 48, 15, 72, 73, 12, 13, 67, 59, 52, 57,
+ 65, 55, 48, 55, 48, 67, -1, 65, 82, 57,
+ 72, 73, 3, 4, 5, 6, 7, 8, 9, 57,
+ 11, 12, -1, 14, 12, 13, 17, -1, 19, -1,
+ -1, 22, 3, 4, 5, 6, 7, 8, 9, -1,
+ 11, 5, 6, 7, 8, -1, 17, -1, 19, 20,
+ 5, 6, 7, 8, -1, -1, -1, 12, -1, 14,
+ 5, 6, 7, 8, -1, -1, -1, 22, -1, 14,
+ 3, 4, 5, 6, 7, 8, 9, 22, 11, -1,
+ -1, -1, -1, -1, 17, 18, 19, 3, 4, 5,
+ 6, 7, 8, 9, -1, 11, -1, -1, -1, -1,
+ -1, 17, -1, 19, 5, 6, 7, 8, 9, -1,
+ 11, 12, -1, -1, -1, -1, 17, -1, 19, 5,
+ 6, 7, 8, 9, 5, 11, -1, -1, 9, 10,
+ 11, 17, -1, 19, -1, -1, 17, -1, 19, 5,
+ 6, 7, 8, -1, -1, -1, 12
};
/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
@@ -480,10 +480,10 @@ static const unsigned char yystos[] =
{
0, 5, 9, 10, 11, 17, 19, 24, 27, 32,
33, 36, 38, 43, 32, 3, 4, 5, 6, 7,
- 8, 25, 27, 31, 32, 18, 25, 37, 20, 25,
- 42, 44, 0, 5, 12, 14, 22, 31, 34, 35,
- 39, 40, 41, 25, 31, 5, 31, 5, 25, 31,
- 18, 21, 15, 20, 21, 12, 29, 25, 26, 25,
+ 8, 25, 26, 27, 31, 32, 18, 25, 37, 20,
+ 25, 42, 44, 0, 5, 12, 14, 22, 31, 34,
+ 35, 39, 40, 41, 25, 31, 5, 31, 5, 25,
+ 31, 18, 21, 15, 20, 21, 12, 29, 26, 25,
15, 13, 28, 29, 28, 29, 13, 29, 30, 25,
26, 42, 35, 41, 29, 26, 34, 34, 40, 30,
28, 28, 15, 26