Ruby 1.9.3p327(2012-11-10revision37606)
|
#include "syck.h"
Go to the source code of this file.
#define NULL_NODE | ( | parser, | |
node | |||
) |
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_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_STACK_PRINT | ( | Bottom, | |
Top | |||
) |
#define YYBACKUP | ( | Token, | |
Value | |||
) |
#define YYCOPY | ( | To, | |
From, | |||
Count | |||
) |
#define YYDSYMPRINTF | ( | Title, | |
Token, | |||
Value, | |||
Location | |||
) |
#define YYLLOC_DEFAULT | ( | Current, | |
Rhs, | |||
N | |||
) |
#define YYPOPSTACK (yyvsp--, yyssp--) |
#define YYSTACK_BYTES | ( | N | ) |
#define YYSTACK_RELOCATE | ( | Stack | ) |
#define YYTRANSLATE | ( | YYX | ) | ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
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 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.
const yysigned_char yycheck[] [static] |
const unsigned char yydefact[] [static] |
{ 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] |
const short int yypact[] [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] |
const unsigned char yyr1[] [static] |
{ 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 yyparse().
const unsigned char yyr2[] [static] |
{ 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 unsigned char yystos[] [static] |
{ 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().
const unsigned char yytable[] [static] |
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 }