|
Ruby
1.9.3p448(2013-06-27revision41675)
|
Go to the source code of this file.
SyckNode *node = syck_new_str( "", scalar_plain ); \ if ( ((SyckParser *)parser)->taguri_expansion == 1 ) \ { \ node->type_id = syck_taguri( YAML_DOMAIN, "null", 4 ); \ } \ else \ { \ node->type_id = syck_strndup( "null", 4 ); \ }
Definition at line 106 of file gram.c.
Referenced by divide_look_behind_alternatives(), expand_case_fold_string(), expand_case_fold_string_alt(), get_head_value_node(), i_apply_case_fold(), node_new_call(), node_new_quantifier(), noname_disable_map(), onig_node_list_add(), onig_reduce_nested_quantifier(), parse_char_class(), parse_exp(), scan_env_add_mem_entry(), scan_env_clear(), setup_tree(), str_node_split_last_char(), and yyparse().
| #define YAML_ALIAS 259 |
Definition at line 80 of file gram.c.
Referenced by sycklex_bytecode_utf8(), and sycklex_yaml_utf8().
| #define YAML_ANCHOR 258 |
Definition at line 79 of file gram.c.
Referenced by sycklex_bytecode_utf8(), and sycklex_yaml_utf8().
| #define YAML_BLOCK 265 |
| #define YAML_DOCSEP 266 |
Definition at line 87 of file gram.c.
Referenced by sycklex(), sycklex_bytecode_utf8(), and sycklex_yaml_utf8().
| #define YAML_IEND 269 |
Definition at line 90 of file gram.c.
Referenced by sycklex_bytecode_utf8().
| #define YAML_INDENT 268 |
Definition at line 89 of file gram.c.
Referenced by sycklex_bytecode_utf8(), and sycklex_yaml_utf8().
| #define YAML_IOPEN 267 |
Definition at line 88 of file gram.c.
Referenced by sycklex_bytecode_utf8(), and sycklex_yaml_utf8().
| #define YAML_ITRANSFER 262 |
Definition at line 83 of file gram.c.
Referenced by sycklex_bytecode_utf8(), and sycklex_yaml_utf8().
| #define YAML_PLAIN 264 |
Definition at line 85 of file gram.c.
Referenced by sycklex_bytecode_utf8(), and sycklex_yaml_utf8().
| #define YAML_TAGURI 261 |
Definition at line 82 of file gram.c.
Referenced by sycklex_bytecode_utf8().
| #define YAML_TRANSFER 260 |
Definition at line 81 of file gram.c.
Referenced by sycklex_bytecode_utf8(), and sycklex_yaml_utf8().
| #define YY_REDUCE_PRINT | ( | Rule | ) |
| #define YY_STACK_PRINT | ( | Bottom, | |
| Top | |||
| ) |
| #define YYBACKUP | ( | Token, | |
| Value | |||
| ) |
| #define YYCOPY | ( | To, | |
| From, | |||
| Count | |||
| ) |
| #define YYDPRINTF | ( | Args | ) |
| #define YYDSYMPRINT | ( | Args | ) |
| #define YYDSYMPRINTF | ( | Title, | |
| Token, | |||
| Value, | |||
| Location | |||
| ) |
| #define YYERROR_VERBOSE 0 |
| #define YYFPRINTF fprintf |
Definition at line 666 of file gram.c.
Referenced by yy_reduce_print(), yy_stack_print(), and yysymprint().
| #define YYINITDEPTH 200 |
| #define YYLEX yylex (&yylval, YYLEX_PARAM) |
| #define YYLEX_PARAM parser |
| #define YYLLOC_DEFAULT | ( | Current, | |
| Rhs, | |||
| N | |||
| ) |
| #define YYLSP_NEEDED 0 |
| #define YYMAXDEPTH 10000 |
| #define YYNTOKENS 23 |
Definition at line 260 of file gram.c.
Referenced by yyparse(), and yysymprint().
| #define YYPACT_NINF -97 |
| #define YYPARSE_PARAM parser |
| #define YYPOPSTACK (yyvsp--, yyssp--) |
| #define YYRECOVERING | ( | ) | (!!yyerrstatus) |
| #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 | ) |
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 235 of file gram.c.
Referenced by yyparse().
| #define YYSTYPE_IS_DECLARED 1 |
| #define YYSTYPE_IS_TRIVIAL 1 |
| #define YYTABLE_NINF -1 |
| #define YYTOKENTYPE |
| #define YYTRANSLATE | ( | YYX | ) | ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
| #define YYUNDEFTOK 2 |
| typedef short int yysigned_char |
| enum yytokentype |
| void apply_seq_in_map | ( | SyckParser * | parser, |
| SyckNode * | n | ||
| ) |
Definition at line 1879 of file gram.c.
References map_value, NULL, _syck_node::shortcut, syck_hdlr_add_node(), syck_map_assign(), and syck_map_count().
Referenced by yyparse().
| static void yy_reduce_print | ( | int | yyrule | ) | [static] |
| static void yy_stack_print | ( | short int * | bottom, |
| short int * | top | ||
| ) | [static] |
| static void yydestruct | ( | int | yytype, |
| YYSTYPE * | yyvaluep | ||
| ) | [static] |
| int yyparse | ( | ) |
| int yyparse | ( | void * | YYPARSE_PARAM | ) |
Definition at line 931 of file gram.c.
References apply_seq_in_map(), name, YYSTYPE::nodeData, YYSTYPE::nodeId, NULL, NULL_NODE, _syck_node::shortcut, syck_add_transfer(), syck_alloc_map(), syck_alloc_seq(), syck_free_node(), syck_hdlr_add_anchor(), syck_hdlr_add_node(), syck_hdlr_get_anchor(), syck_map_update(), syck_new_map(), syck_new_seq(), syck_seq_add(), syck_strndup(), syck_taguri(), try_tag_implicit(), _syck_node::type_id, YAML_DOMAIN, YY_REDUCE_PRINT, YY_STACK_PRINT, YYABORT, YYACCEPT, yychar, yycheck, yydefact, yydefgoto, yydestruct(), YYDPRINTF, YYDSYMPRINTF, YYEMPTY, YYEOF, yyerror, YYFINAL, YYINITDEPTH, YYLAST, YYLEX, yylval, YYMAXDEPTH, yynerrs, YYNTOKENS, yypact, YYPACT_NINF, yypgoto, YYPOPSTACK, yyr1, yyr2, YYSIZE_T, YYSTACK_ALLOC, YYSTACK_BYTES, YYSTACK_FREE, YYSTACK_RELOCATE, yystos, yystpcpy(), yystrlen(), yytable, YYTABLE_NINF, YYTERROR, yytname, and YYTRANSLATE.
| static void yysymprint | ( | FILE * | yyoutput, |
| int | yytype, | ||
| YYSTYPE * | yyvaluep | ||
| ) | [static] |
const yysigned_char yycheck[] [static] |
| int yydebug |
Definition at line 751 of file gram.c.
Referenced by dump_option(), proc_options(), and process_options().
{
4, 0, 30, 0, 0, 0, 31, 32, 34, 15,
20, 0, 0, 0, 2, 6, 0, 5, 7, 35,
36, 37, 38, 10, 29, 8, 26, 9, 27, 0,
0, 0, 0, 28, 15, 15, 15, 15, 12, 3,
13, 15, 52, 55, 0, 53, 56, 75, 78, 79,
0, 76, 1, 0, 0, 0, 21, 15, 0, 0,
65, 48, 0, 0, 0, 0, 69, 0, 0, 19,
17, 18, 15, 15, 15, 16, 15, 15, 15, 15,
0, 15, 51, 0, 74, 0, 23, 0, 47, 64,
0, 43, 60, 0, 45, 62, 41, 0, 24, 0,
11, 33, 22, 39, 40, 50, 57, 15, 58, 72,
14, 73, 54, 77, 65, 46, 63, 42, 59, 44,
61, 66, 25, 49, 67, 68, 70, 71
}
Definition at line 423 of file gram.c.
Referenced by yyparse().
const yysigned_char yydefgoto[] [static] |
{
250, 318, -97, 318, 318, 374, -97, -97, -97, 335,
-97, 267, 232, 7, -97, -97, 192, -97, -97, -97,
-97, -97, -97, -97, -97, -97, -97, -97, -97, 374,
374, 374, 352, -97, 335, 335, 335, 384, -97, -97,
-97, 212, -97, 10, 0, -97, -97, -97, 10, -97,
-4, -97, -97, 284, 284, 284, -97, 335, 318, 30,
30, -97, -2, 36, -2, 16, -97, 36, 30, -97,
-97, -97, 384, 384, 384, -97, 363, 301, 301, 301,
-2, 335, -97, 318, -97, 318, -97, 158, -97, -97,
158, -97, -97, 158, -97, -97, -97, 24, -97, 30,
-97, -97, -97, -97, -97, 26, -97, 335, -97, 158,
-97, -97, -97, -97, -97, 24, 24, 24, 24, 24,
24, -97, -97, -97, -97, -97, -97, -97
}
Definition at line 451 of file gram.c.
Referenced by yyparse().
const yysigned_char yypgoto[] [static] |
{
0, 0, 3, 5, 8, 9, 11, 13, 15, 18,
21, 24, 28, 30, 32, 36, 37, 40, 43, 46,
49, 51, 54, 56, 58, 60, 63, 66, 69, 72,
75, 77, 79, 81, 85, 87, 89, 91, 93, 95,
99, 103, 106, 110, 113, 117, 120, 124, 127, 129,
133, 136, 140, 143, 145, 149, 151, 153, 157, 161,
165, 168, 172, 175, 179, 182, 184, 188, 190, 194,
196, 200, 204, 207, 211, 215, 218, 220, 224, 226
}
Definition at line 310 of file gram.c.
Referenced by yy_reduce_print().
{
0, 23, 24, 24, 24, 25, 25, 26, 26, 26,
26, 26, 27, 27, 28, 28, 28, 28, 28, 28,
29, 29, 30, 31, 32, 32, 33, 33, 33, 33,
33, 33, 33, 33, 34, 34, 34, 34, 34, 35,
35, 36, 37, 37, 37, 37, 37, 37, 38, 38,
38, 39, 39, 40, 40, 41, 41, 42, 42, 43,
43, 43, 43, 43, 43, 44, 44, 45, 46, 47,
47, 47, 47, 48, 49, 49, 50, 50, 51, 51
}
Definition at line 395 of file gram.c.
Referenced by yy_reduce_print(), and yyparse().
{
0, 2, 1, 2, 0, 1, 1, 1, 2, 2,
2, 3, 1, 1, 3, 0, 2, 2, 2, 2,
1, 2, 1, 1, 1, 2, 2, 2, 2, 2,
1, 1, 1, 3, 1, 1, 1, 1, 1, 3,
3, 2, 3, 2, 3, 2, 3, 2, 1, 3,
2, 3, 2, 1, 3, 1, 1, 3, 3, 3,
2, 3, 2, 3, 2, 1, 3, 1, 3, 1,
3, 3, 2, 3, 3, 2, 1, 3, 1, 1
}
Definition at line 408 of file gram.c.
Referenced by yyparse().
const yysigned_char yyrhs[] [static] |
{
24, 0, -1, 25, -1, 11, 27, -1, -1, 33,
-1, 26, -1, 34, -1, 5, 26, -1, 6, 26,
-1, 3, 26, -1, 29, 26, 32, -1, 25, -1,
28, -1, 29, 28, 30, -1, -1, 7, 28, -1,
5, 28, -1, 6, 28, -1, 3, 28, -1, 12,
-1, 29, 13, -1, 14, -1, 13, -1, 14, -1,
31, 32, -1, 5, 33, -1, 6, 33, -1, 7,
33, -1, 3, 33, -1, 4, -1, 8, -1, 9,
-1, 29, 33, 32, -1, 10, -1, 35, -1, 39,
-1, 42, -1, 49, -1, 29, 37, 30, -1, 29,
38, 30, -1, 15, 27, -1, 5, 31, 38, -1,
5, 37, -1, 6, 31, 38, -1, 6, 37, -1,
3, 31, 38, -1, 3, 37, -1, 36, -1, 38,
31, 36, -1, 38, 31, -1, 17, 40, 18, -1,
17, 18, -1, 41, -1, 40, 21, 41, -1, 25,
-1, 48, -1, 29, 43, 30, -1, 29, 47, 30,
-1, 5, 31, 47, -1, 5, 43, -1, 6, 31,
47, -1, 6, 43, -1, 3, 31, 47, -1, 3,
43, -1, 33, -1, 22, 25, 31, -1, 27, -1,
44, 16, 45, -1, 46, -1, 47, 31, 36, -1,
47, 31, 46, -1, 47, 31, -1, 25, 16, 27,
-1, 19, 50, 20, -1, 19, 20, -1, 51, -1,
50, 21, 51, -1, 25, -1, 48, -1
}
Definition at line 323 of file gram.c.
Referenced by yy_reduce_print().
{
0, 56, 56, 60, 65, 70, 71, 74, 75, 80,
85, 94, 100, 101, 104, 109, 113, 121, 126, 131,
145, 146, 149, 152, 155, 156, 164, 169, 174, 182,
186, 194, 207, 208, 218, 219, 220, 221, 222, 228,
232, 238, 244, 249, 254, 259, 264, 268, 274, 278,
283, 292, 296, 302, 306, 313, 314, 320, 325, 332,
337, 342, 347, 352, 356, 362, 363, 369, 379, 396,
397, 409, 417, 426, 434, 438, 444, 445, 454, 461
}
Definition at line 351 of file gram.c.
Referenced by yy_reduce_print().
{
0, 3, 4, 5, 6, 7, 8, 9, 10, 11,
12, 17, 19, 24, 25, 26, 29, 33, 34, 35,
39, 42, 49, 26, 33, 26, 33, 26, 33, 3,
5, 6, 29, 33, 3, 5, 6, 7, 25, 27,
28, 29, 18, 25, 40, 41, 48, 20, 25, 48,
50, 51, 0, 3, 5, 6, 13, 15, 22, 26,
33, 36, 37, 38, 43, 44, 46, 47, 33, 28,
28, 28, 3, 5, 6, 28, 29, 3, 5, 6,
28, 16, 18, 21, 20, 21, 13, 31, 37, 43,
31, 37, 43, 31, 37, 43, 27, 25, 14, 31,
32, 32, 14, 30, 30, 31, 30, 16, 30, 31,
30, 27, 41, 51, 33, 38, 47, 38, 47, 38,
47, 31, 32, 36, 27, 45, 36, 46
}
Definition at line 571 of file gram.c.
Referenced by yyparse().
{
"$end", "error", "$undefined", "YAML_ANCHOR", "YAML_ALIAS",
"YAML_TRANSFER", "YAML_TAGURI", "YAML_ITRANSFER", "YAML_WORD",
"YAML_PLAIN", "YAML_BLOCK", "YAML_DOCSEP", "YAML_IOPEN", "YAML_INDENT",
"YAML_IEND", "'-'", "':'", "'['", "']'", "'{'", "'}'", "','", "'?'",
"$accept", "doc", "atom", "ind_rep", "atom_or_empty", "empty",
"indent_open", "indent_end", "indent_sep", "indent_flex_end", "word_rep",
"struct_rep", "implicit_seq", "basic_seq", "top_imp_seq",
"in_implicit_seq", "inline_seq", "in_inline_seq", "inline_seq_atom",
"implicit_map", "top_imp_map", "complex_key", "complex_value",
"complex_mapping", "in_implicit_map", "basic_mapping", "inline_map",
"in_inline_map", "inline_map_atom", 0
}
Definition at line 367 of file gram.c.
Referenced by yy_reduce_print(), yyparse(), and yysymprint().
const unsigned char yytranslate[] [static] |
{
0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 21, 15, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 16, 2,
2, 2, 2, 22, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 17, 2, 18, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 19, 2, 20, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
5, 6, 7, 8, 9, 10, 11, 12, 13, 14
}
1.7.6.1