Data Structures | Defines | Typedefs | Enumerations | Functions | Variables

ext/syck/gram.c File Reference

#include "syck.h"
Include dependency graph for gram.c:

Go to the source code of this file.

Data Structures

union  YYSTYPE
union  yyalloc

Defines

#define YYBISON   1
#define YYSKELETON_NAME   "yacc.c"
#define YYPURE   1
#define YYLSP_NEEDED   0
#define yyparse   syckparse
#define yylex   sycklex
#define yyerror   syckerror
#define yylval   sycklval
#define yychar   syckchar
#define yydebug   syckdebug
#define yynerrs   sycknerrs
#define YAML_ANCHOR   258
#define YAML_ALIAS   259
#define YAML_TRANSFER   260
#define YAML_TAGURI   261
#define YAML_ITRANSFER   262
#define YAML_WORD   263
#define YAML_PLAIN   264
#define YAML_BLOCK   265
#define YAML_DOCSEP   266
#define YAML_IOPEN   267
#define YAML_INDENT   268
#define YAML_IEND   269
#define YYPARSE_PARAM   parser
#define YYLEX_PARAM   parser
#define NULL_NODE(parser, node)
#define YYDEBUG   1
#define YYERROR_VERBOSE   0
#define yystype   YYSTYPE
#define YYSTYPE_IS_DECLARED   1
#define YYSTYPE_IS_TRIVIAL   1
#define YYFREE   free
#define YYMALLOC   malloc
#define YYSTACK_ALLOC   YYMALLOC
#define YYSTACK_FREE   YYFREE
#define YYSTACK_GAP_MAXIMUM   (sizeof (union yyalloc) - 1)
#define YYSTACK_BYTES(N)
#define YYCOPY(To, From, Count)
#define YYSTACK_RELOCATE(Stack)
#define YYFINAL   52
#define YYLAST   396
#define YYNTOKENS   23
#define YYNNTS   29
#define YYNRULES   79
#define YYNSTATES   128
#define YYUNDEFTOK   2
#define YYMAXUTOK   269
#define YYTRANSLATE(YYX)   ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
#define YYPACT_NINF   -97
#define YYTABLE_NINF   -1
#define YYSIZE_T   unsigned int
#define yyerrok   (yyerrstatus = 0)
#define yyclearin   (yychar = YYEMPTY)
#define YYEMPTY   (-2)
#define YYEOF   0
#define YYACCEPT   goto yyacceptlab
#define YYABORT   goto yyabortlab
#define YYERROR   goto yyerrorlab
#define YYFAIL   goto yyerrlab
#define YYRECOVERING()   (!!yyerrstatus)
#define YYBACKUP(Token, Value)
#define YYTERROR   1
#define YYERRCODE   256
#define YYLLOC_DEFAULT(Current, Rhs, N)
#define YYLEX   yylex (&yylval)
#define YYDPRINTF(Args)
#define YYDSYMPRINT(Args)
#define YYDSYMPRINTF(Title, Token, Value, Location)
#define YY_STACK_PRINT(Bottom, Top)
#define YY_REDUCE_PRINT(Rule)
#define YYINITDEPTH   200
#define YYMAXDEPTH   10000
#define YYPOPSTACK   (yyvsp--, yyssp--)

Typedefs

typedef union YYSTYPE YYSTYPE
typedef short int yysigned_char

Enumerations

enum  yytokentype {
  keyword_class = 258, keyword_module = 259, keyword_def = 260, keyword_undef = 261,
  keyword_begin = 262, keyword_rescue = 263, keyword_ensure = 264, keyword_end = 265,
  keyword_if = 266, keyword_unless = 267, keyword_then = 268, keyword_elsif = 269,
  keyword_else = 270, keyword_case = 271, keyword_when = 272, keyword_while = 273,
  keyword_until = 274, keyword_for = 275, keyword_break = 276, keyword_next = 277,
  keyword_redo = 278, keyword_retry = 279, keyword_in = 280, keyword_do = 281,
  keyword_do_cond = 282, keyword_do_block = 283, keyword_do_LAMBDA = 284, keyword_return = 285,
  keyword_yield = 286, keyword_super = 287, keyword_self = 288, keyword_nil = 289,
  keyword_true = 290, keyword_false = 291, keyword_and = 292, keyword_or = 293,
  keyword_not = 294, modifier_if = 295, modifier_unless = 296, modifier_while = 297,
  modifier_until = 298, modifier_rescue = 299, keyword_alias = 300, keyword_defined = 301,
  keyword_BEGIN = 302, keyword_END = 303, keyword__LINE__ = 304, keyword__FILE__ = 305,
  keyword__ENCODING__ = 306, tIDENTIFIER = 307, tFID = 308, tGVAR = 309,
  tIVAR = 310, tCONSTANT = 311, tCVAR = 312, tLABEL = 313,
  tINTEGER = 314, tFLOAT = 315, tSTRING_CONTENT = 316, tCHAR = 317,
  tNTH_REF = 318, tBACK_REF = 319, tREGEXP_END = 320, tUPLUS = 321,
  tUMINUS = 322, tPOW = 323, tCMP = 324, tEQ = 325,
  tEQQ = 326, tNEQ = 327, tGEQ = 328, tLEQ = 329,
  tANDOP = 330, tOROP = 331, tMATCH = 332, tNMATCH = 333,
  tDOT2 = 334, tDOT3 = 335, tAREF = 336, tASET = 337,
  tLSHFT = 338, tRSHFT = 339, tCOLON2 = 340, tCOLON3 = 341,
  tOP_ASGN = 342, tASSOC = 343, tLPAREN = 344, tLPAREN_ARG = 345,
  tRPAREN = 346, tLBRACK = 347, tLBRACE = 348, tLBRACE_ARG = 349,
  tSTAR = 350, tAMPER = 351, tLAMBDA = 352, tSYMBEG = 353,
  tSTRING_BEG = 354, tXSTRING_BEG = 355, tREGEXP_BEG = 356, tWORDS_BEG = 357,
  tQWORDS_BEG = 358, tSTRING_DBEG = 359, tSTRING_DVAR = 360, tSTRING_END = 361,
  tLAMBEG = 362, tLOWEST = 363, tUMINUS_NUM = 364, idNULL = 365,
  idRespond_to = 366, idIFUNC = 367, idCFUNC = 368, id_core_set_method_alias = 369,
  id_core_set_variable_alias = 370, id_core_undef_method = 371, id_core_define_method = 372, id_core_define_singleton_method = 373,
  id_core_set_postexe = 374, tLAST_TOKEN = 375, YAML_ANCHOR = 258, YAML_ALIAS = 259,
  YAML_TRANSFER = 260, YAML_TAGURI = 261, YAML_ITRANSFER = 262, YAML_WORD = 263,
  YAML_PLAIN = 264, YAML_BLOCK = 265, YAML_DOCSEP = 266, YAML_IOPEN = 267,
  YAML_INDENT = 268, YAML_IEND = 269, YAML_ANCHOR = 258, YAML_ALIAS = 259,
  YAML_TRANSFER = 260, YAML_TAGURI = 261, YAML_ITRANSFER = 262, YAML_WORD = 263,
  YAML_PLAIN = 264, YAML_BLOCK = 265, YAML_DOCSEP = 266, YAML_IOPEN = 267,
  YAML_INDENT = 268, YAML_IEND = 269, keyword_class = 258, keyword_module = 259,
  keyword_def = 260, keyword_undef = 261, keyword_begin = 262, keyword_rescue = 263,
  keyword_ensure = 264, keyword_end = 265, keyword_if = 266, keyword_unless = 267,
  keyword_then = 268, keyword_elsif = 269, keyword_else = 270, keyword_case = 271,
  keyword_when = 272, keyword_while = 273, keyword_until = 274, keyword_for = 275,
  keyword_break = 276, keyword_next = 277, keyword_redo = 278, keyword_retry = 279,
  keyword_in = 280, keyword_do = 281, keyword_do_cond = 282, keyword_do_block = 283,
  keyword_do_LAMBDA = 284, keyword_return = 285, keyword_yield = 286, keyword_super = 287,
  keyword_self = 288, keyword_nil = 289, keyword_true = 290, keyword_false = 291,
  keyword_and = 292, keyword_or = 293, keyword_not = 294, modifier_if = 295,
  modifier_unless = 296, modifier_while = 297, modifier_until = 298, modifier_rescue = 299,
  keyword_alias = 300, keyword_defined = 301, keyword_BEGIN = 302, keyword_END = 303,
  keyword__LINE__ = 304, keyword__FILE__ = 305, keyword__ENCODING__ = 306, tIDENTIFIER = 307,
  tFID = 308, tGVAR = 309, tIVAR = 310, tCONSTANT = 311,
  tCVAR = 312, tLABEL = 313, tINTEGER = 314, tFLOAT = 315,
  tSTRING_CONTENT = 316, tCHAR = 317, tNTH_REF = 318, tBACK_REF = 319,
  tREGEXP_END = 320, tUPLUS = 321, tUMINUS = 322, tPOW = 323,
  tCMP = 324, tEQ = 325, tEQQ = 326, tNEQ = 327,
  tGEQ = 328, tLEQ = 329, tANDOP = 330, tOROP = 331,
  tMATCH = 332, tNMATCH = 333, tDOT2 = 334, tDOT3 = 335,
  tAREF = 336, tASET = 337, tLSHFT = 338, tRSHFT = 339,
  tCOLON2 = 340, tCOLON3 = 341, tOP_ASGN = 342, tASSOC = 343,
  tLPAREN = 344, tLPAREN_ARG = 345, tRPAREN = 346, tLBRACK = 347,
  tLBRACE = 348, tLBRACE_ARG = 349, tSTAR = 350, tAMPER = 351,
  tLAMBDA = 352, tSYMBEG = 353, tSTRING_BEG = 354, tXSTRING_BEG = 355,
  tREGEXP_BEG = 356, tWORDS_BEG = 357, tQWORDS_BEG = 358, tSTRING_DBEG = 359,
  tSTRING_DVAR = 360, tSTRING_END = 361, tLAMBEG = 362, tLOWEST = 363,
  tUMINUS_NUM = 364, idNULL = 365, idRespond_to = 366, idIFUNC = 367,
  idCFUNC = 368, id_core_set_method_alias = 369, id_core_set_variable_alias = 370, id_core_undef_method = 371,
  id_core_define_method = 372, id_core_define_singleton_method = 373, id_core_set_postexe = 374, tLAST_TOKEN = 375,
  keyword_class = 258, keyword_module = 259, keyword_def = 260, keyword_undef = 261,
  keyword_begin = 262, keyword_rescue = 263, keyword_ensure = 264, keyword_end = 265,
  keyword_if = 266, keyword_unless = 267, keyword_then = 268, keyword_elsif = 269,
  keyword_else = 270, keyword_case = 271, keyword_when = 272, keyword_while = 273,
  keyword_until = 274, keyword_for = 275, keyword_break = 276, keyword_next = 277,
  keyword_redo = 278, keyword_retry = 279, keyword_in = 280, keyword_do = 281,
  keyword_do_cond = 282, keyword_do_block = 283, keyword_do_LAMBDA = 284, keyword_return = 285,
  keyword_yield = 286, keyword_super = 287, keyword_self = 288, keyword_nil = 289,
  keyword_true = 290, keyword_false = 291, keyword_and = 292, keyword_or = 293,
  keyword_not = 294, modifier_if = 295, modifier_unless = 296, modifier_while = 297,
  modifier_until = 298, modifier_rescue = 299, keyword_alias = 300, keyword_defined = 301,
  keyword_BEGIN = 302, keyword_END = 303, keyword__LINE__ = 304, keyword__FILE__ = 305,
  keyword__ENCODING__ = 306, tIDENTIFIER = 307, tFID = 308, tGVAR = 309,
  tIVAR = 310, tCONSTANT = 311, tCVAR = 312, tLABEL = 313,
  tINTEGER = 314, tFLOAT = 315, tSTRING_CONTENT = 316, tCHAR = 317,
  tNTH_REF = 318, tBACK_REF = 319, tREGEXP_END = 320, tUPLUS = 321,
  tUMINUS = 322, tPOW = 323, tCMP = 324, tEQ = 325,
  tEQQ = 326, tNEQ = 327, tGEQ = 328, tLEQ = 329,
  tANDOP = 330, tOROP = 331, tMATCH = 332, tNMATCH = 333,
  tDOT2 = 334, tDOT3 = 335, tAREF = 336, tASET = 337,
  tLSHFT = 338, tRSHFT = 339, tCOLON2 = 340, tCOLON3 = 341,
  tOP_ASGN = 342, tASSOC = 343, tLPAREN = 344, tLPAREN_ARG = 345,
  tRPAREN = 346, tLBRACK = 347, tLBRACE = 348, tLBRACE_ARG = 349,
  tSTAR = 350, tAMPER = 351, tLAMBDA = 352, tSYMBEG = 353,
  tSTRING_BEG = 354, tXSTRING_BEG = 355, tREGEXP_BEG = 356, tWORDS_BEG = 357,
  tQWORDS_BEG = 358, tSTRING_DBEG = 359, tSTRING_DVAR = 360, tSTRING_END = 361,
  tLAMBEG = 362, tLOWEST = 363, tUMINUS_NUM = 364, idNULL = 365,
  idRespond_to = 366, idIFUNC = 367, idCFUNC = 368, id_core_set_method_alias = 369,
  id_core_set_variable_alias = 370, id_core_undef_method = 371, id_core_define_method = 372, id_core_define_singleton_method = 373,
  id_core_set_postexe = 374, tLAST_TOKEN = 375
}

Functions

void apply_seq_in_map (SyckParser *parser, SyckNode *n)
static void yydestruct (int yytype, YYSTYPE *yyvaluep)
int yyparse ()
int yyparse (void *YYPARSE_PARAM)

Variables

static const unsigned char yytranslate []
static const unsigned char yyr1 []
static const unsigned char yyr2 []
static const unsigned char yydefact []
static const yysigned_char yydefgoto []
static const short int yypact []
static const yysigned_char yypgoto []
static const unsigned char yytable []
static const yysigned_char yycheck []
static const unsigned char yystos []

Define Documentation

#define NULL_NODE (   parser,
  node 
)
Value:
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(), i_apply_case_fold(), scan_env_clear(), and yyparse().

#define YAML_ALIAS   259

Definition at line 80 of file gram.c.

#define YAML_ANCHOR   258

Definition at line 79 of file gram.c.

#define YAML_BLOCK   265

Definition at line 86 of file gram.c.

#define YAML_DOCSEP   266

Definition at line 87 of file gram.c.

#define YAML_IEND   269

Definition at line 90 of file gram.c.

#define YAML_INDENT   268

Definition at line 89 of file gram.c.

Referenced by sycklex_bytecode_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.

#define YAML_PLAIN   264

Definition at line 85 of file gram.c.

#define YAML_TAGURI   261

Definition at line 82 of file gram.c.

#define YAML_TRANSFER   260

Definition at line 81 of file gram.c.

#define YAML_WORD   263

Definition at line 84 of file gram.c.

#define YY_REDUCE_PRINT (   Rule  ) 

Definition at line 757 of file gram.c.

Referenced by yyparse().

#define YY_STACK_PRINT (   Bottom,
  Top 
)

Definition at line 756 of file gram.c.

Referenced by yyparse().

#define YYABORT   goto yyabortlab

Definition at line 610 of file gram.c.

#define YYACCEPT   goto yyacceptlab

Definition at line 609 of file gram.c.

#define YYBACKUP (   Token,
  Value 
)
Value:
do                                                              \
  if (yychar == YYEMPTY && yylen == 1)                          \
    {                                                           \
      yychar = (Token);                                         \
      yylval = (Value);                                         \
      yytoken = YYTRANSLATE (yychar);                           \
      YYPOPSTACK;                                               \
      goto yybackup;                                            \
    }                                                           \
  else                                                          \
    {                                                           \
      yyerror ("syntax error: cannot back up");\
      YYERROR;                                                  \
    }                                                           \
while (0)

Definition at line 622 of file gram.c.

#define YYBISON   1

Definition at line 37 of file gram.c.

#define yychar   syckchar

Definition at line 54 of file gram.c.

#define yyclearin   (yychar = YYEMPTY)

Definition at line 605 of file gram.c.

#define YYCOPY (   To,
  From,
  Count 
)
Value:
do                                      \
        {                                       \
          register YYSIZE_T yyi;                \
          for (yyi = 0; yyi < (Count); yyi++)   \
            (To)[yyi] = (From)[yyi];            \
        }                                       \
      while (0)

Definition at line 219 of file gram.c.

#define yydebug   syckdebug

Definition at line 55 of file gram.c.

#define YYDEBUG   1

Definition at line 120 of file gram.c.

#define YYDPRINTF (   Args  ) 

Definition at line 753 of file gram.c.

Referenced by yyparse().

#define YYDSYMPRINT (   Args  ) 

Definition at line 754 of file gram.c.

#define YYDSYMPRINTF (   Title,
  Token,
  Value,
  Location 
)

Definition at line 755 of file gram.c.

Referenced by yyparse().

#define YYEMPTY   (-2)

Definition at line 606 of file gram.c.

Referenced by yyparse().

#define YYEOF   0

Definition at line 607 of file gram.c.

Referenced by yyparse().

#define YYERRCODE   256

Definition at line 640 of file gram.c.

#define yyerrok   (yyerrstatus = 0)

Definition at line 604 of file gram.c.

#define yyerror   syckerror

Definition at line 52 of file gram.c.

Referenced by yyparse().

#define YYERROR   goto yyerrorlab

Definition at line 611 of file gram.c.

#define YYERROR_VERBOSE   0

Definition at line 128 of file gram.c.

#define YYFAIL   goto yyerrlab

Definition at line 618 of file gram.c.

#define YYFINAL   52

Definition at line 255 of file gram.c.

Referenced by yyparse().

#define YYFREE   free

Definition at line 156 of file gram.c.

#define YYINITDEPTH   200

Definition at line 763 of file gram.c.

#define YYLAST   396

Definition at line 257 of file gram.c.

Referenced by yyparse().

#define yylex   sycklex

Definition at line 51 of file gram.c.

#define YYLEX   yylex (&yylval)

Definition at line 658 of file gram.c.

#define YYLEX_PARAM   parser

Definition at line 104 of file gram.c.

#define YYLLOC_DEFAULT (   Current,
  Rhs,
  N 
)
Value:
((Current).first_line   = (Rhs)[1].first_line,  \
    (Current).first_column = (Rhs)[1].first_column,     \
    (Current).last_line    = (Rhs)[N].last_line,        \
    (Current).last_column  = (Rhs)[N].last_column)

Definition at line 646 of file gram.c.

#define YYLSP_NEEDED   0

Definition at line 46 of file gram.c.

#define yylval   sycklval

Definition at line 53 of file gram.c.

#define YYMALLOC   malloc

Definition at line 159 of file gram.c.

#define YYMAXDEPTH   10000

Definition at line 778 of file gram.c.

Referenced by yyparse().

#define YYMAXUTOK   269

Definition at line 270 of file gram.c.

#define yynerrs   sycknerrs

Definition at line 56 of file gram.c.

#define YYNNTS   29

Definition at line 262 of file gram.c.

#define YYNRULES   79

Definition at line 264 of file gram.c.

#define YYNSTATES   128

Definition at line 266 of file gram.c.

#define YYNTOKENS   23

Definition at line 260 of file gram.c.

Referenced by yyparse().

#define YYPACT_NINF   -97

Definition at line 450 of file gram.c.

Referenced by yyparse().

#define yyparse   syckparse

Definition at line 50 of file gram.c.

#define YYPARSE_PARAM   parser

Definition at line 103 of file gram.c.

#define YYPOPSTACK   (yyvsp--, yyssp--)
#define YYPURE   1

Definition at line 43 of file gram.c.

#define YYRECOVERING (  )     (!!yyerrstatus)

Definition at line 620 of file gram.c.

#define YYSIZE_T   unsigned int

Definition at line 601 of file gram.c.

Referenced by yyparse().

#define YYSKELETON_NAME   "yacc.c"

Definition at line 40 of file gram.c.

#define YYSTACK_ALLOC   YYMALLOC

Definition at line 186 of file gram.c.

Referenced by yyparse().

#define YYSTACK_BYTES (   N  ) 
Value:
((N) * (sizeof (short int) + sizeof (YYSTYPE))                  \
      + YYSTACK_GAP_MAXIMUM)

Definition at line 208 of file gram.c.

Referenced by yyparse().

#define YYSTACK_FREE   YYFREE

Definition at line 187 of file gram.c.

Referenced by yyparse().

#define YYSTACK_GAP_MAXIMUM   (sizeof (union yyalloc) - 1)

Definition at line 204 of file gram.c.

#define YYSTACK_RELOCATE (   Stack  ) 
Value:
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   YYSTYPE

Definition at line 140 of file gram.c.

#define YYSTYPE_IS_DECLARED   1

Definition at line 141 of file gram.c.

#define YYSTYPE_IS_TRIVIAL   1

Definition at line 142 of file gram.c.

#define YYTABLE_NINF   -1

Definition at line 480 of file gram.c.

Referenced by yyparse().

#define YYTERROR   1

Definition at line 639 of file gram.c.

Referenced by yyparse().

#define YYTRANSLATE (   YYX  )     ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)

Definition at line 272 of file gram.c.

Referenced by yyparse().

#define YYUNDEFTOK   2

Definition at line 269 of file gram.c.


Typedef Documentation

typedef short int yysigned_char

Definition at line 251 of file gram.c.

typedef union YYSTYPE YYSTYPE

Enumeration Type Documentation

Enumerator:
keyword_class 
keyword_module 
keyword_def 
keyword_undef 
keyword_begin 
keyword_rescue 
keyword_ensure 
keyword_end 
keyword_if 
keyword_unless 
keyword_then 
keyword_elsif 
keyword_else 
keyword_case 
keyword_when 
keyword_while 
keyword_until 
keyword_for 
keyword_break 
keyword_next 
keyword_redo 
keyword_retry 
keyword_in 
keyword_do 
keyword_do_cond 
keyword_do_block 
keyword_do_LAMBDA 
keyword_return 
keyword_yield 
keyword_super 
keyword_self 
keyword_nil 
keyword_true 
keyword_false 
keyword_and 
keyword_or 
keyword_not 
modifier_if 
modifier_unless 
modifier_while 
modifier_until 
modifier_rescue 
keyword_alias 
keyword_defined 
keyword_BEGIN 
keyword_END 
keyword__LINE__ 
keyword__FILE__ 
keyword__ENCODING__ 
tIDENTIFIER 
tFID 
tGVAR 
tIVAR 
tCONSTANT 
tCVAR 
tLABEL 
tINTEGER 
tFLOAT 
tSTRING_CONTENT 
tCHAR 
tNTH_REF 
tBACK_REF 
tREGEXP_END 
tUPLUS 
tUMINUS 
tPOW 
tCMP 
tEQ 
tEQQ 
tNEQ 
tGEQ 
tLEQ 
tANDOP 
tOROP 
tMATCH 
tNMATCH 
tDOT2 
tDOT3 
tAREF 
tASET 
tLSHFT 
tRSHFT 
tCOLON2 
tCOLON3 
tOP_ASGN 
tASSOC 
tLPAREN 
tLPAREN_ARG 
tRPAREN 
tLBRACK 
tLBRACE 
tLBRACE_ARG 
tSTAR 
tAMPER 
tLAMBDA 
tSYMBEG 
tSTRING_BEG 
tXSTRING_BEG 
tREGEXP_BEG 
tWORDS_BEG 
tQWORDS_BEG 
tSTRING_DBEG 
tSTRING_DVAR 
tSTRING_END 
tLAMBEG 
tLOWEST 
tUMINUS_NUM 
idNULL 
idRespond_to 
idIFUNC 
idCFUNC 
id_core_set_method_alias 
id_core_set_variable_alias 
id_core_undef_method 
id_core_define_method 
id_core_define_singleton_method 
id_core_set_postexe 
tLAST_TOKEN 
YAML_ANCHOR 
YAML_ALIAS 
YAML_TRANSFER 
YAML_TAGURI 
YAML_ITRANSFER 
YAML_WORD 
YAML_PLAIN 
YAML_BLOCK 
YAML_DOCSEP 
YAML_IOPEN 
YAML_INDENT 
YAML_IEND 
YAML_ANCHOR 
YAML_ALIAS 
YAML_TRANSFER 
YAML_TAGURI 
YAML_ITRANSFER 
YAML_WORD 
YAML_PLAIN 
YAML_BLOCK 
YAML_DOCSEP 
YAML_IOPEN 
YAML_INDENT 
YAML_IEND 
keyword_class 
keyword_module 
keyword_def 
keyword_undef 
keyword_begin 
keyword_rescue 
keyword_ensure 
keyword_end 
keyword_if 
keyword_unless 
keyword_then 
keyword_elsif 
keyword_else 
keyword_case 
keyword_when 
keyword_while 
keyword_until 
keyword_for 
keyword_break 
keyword_next 
keyword_redo 
keyword_retry 
keyword_in 
keyword_do 
keyword_do_cond 
keyword_do_block 
keyword_do_LAMBDA 
keyword_return 
keyword_yield 
keyword_super 
keyword_self 
keyword_nil 
keyword_true 
keyword_false 
keyword_and 
keyword_or 
keyword_not 
modifier_if 
modifier_unless 
modifier_while 
modifier_until 
modifier_rescue 
keyword_alias 
keyword_defined 
keyword_BEGIN 
keyword_END 
keyword__LINE__ 
keyword__FILE__ 
keyword__ENCODING__ 
tIDENTIFIER 
tFID 
tGVAR 
tIVAR 
tCONSTANT 
tCVAR 
tLABEL 
tINTEGER 
tFLOAT 
tSTRING_CONTENT 
tCHAR 
tNTH_REF 
tBACK_REF 
tREGEXP_END 
tUPLUS 
tUMINUS 
tPOW 
tCMP 
tEQ 
tEQQ 
tNEQ 
tGEQ 
tLEQ 
tANDOP 
tOROP 
tMATCH 
tNMATCH 
tDOT2 
tDOT3 
tAREF 
tASET 
tLSHFT 
tRSHFT 
tCOLON2 
tCOLON3 
tOP_ASGN 
tASSOC 
tLPAREN 
tLPAREN_ARG 
tRPAREN 
tLBRACK 
tLBRACE 
tLBRACE_ARG 
tSTAR 
tAMPER 
tLAMBDA 
tSYMBEG 
tSTRING_BEG 
tXSTRING_BEG 
tREGEXP_BEG 
tWORDS_BEG 
tQWORDS_BEG 
tSTRING_DBEG 
tSTRING_DVAR 
tSTRING_END 
tLAMBEG 
tLOWEST 
tUMINUS_NUM 
idNULL 
idRespond_to 
idIFUNC 
idCFUNC 
id_core_set_method_alias 
id_core_set_variable_alias 
id_core_undef_method 
id_core_define_method 
id_core_define_singleton_method 
id_core_set_postexe 
tLAST_TOKEN 
keyword_class 
keyword_module 
keyword_def 
keyword_undef 
keyword_begin 
keyword_rescue 
keyword_ensure 
keyword_end 
keyword_if 
keyword_unless 
keyword_then 
keyword_elsif 
keyword_else 
keyword_case 
keyword_when 
keyword_while 
keyword_until 
keyword_for 
keyword_break 
keyword_next 
keyword_redo 
keyword_retry 
keyword_in 
keyword_do 
keyword_do_cond 
keyword_do_block 
keyword_do_LAMBDA 
keyword_return 
keyword_yield 
keyword_super 
keyword_self 
keyword_nil 
keyword_true 
keyword_false 
keyword_and 
keyword_or 
keyword_not 
modifier_if 
modifier_unless 
modifier_while 
modifier_until 
modifier_rescue 
keyword_alias 
keyword_defined 
keyword_BEGIN 
keyword_END 
keyword__LINE__ 
keyword__FILE__ 
keyword__ENCODING__ 
tIDENTIFIER 
tFID 
tGVAR 
tIVAR 
tCONSTANT 
tCVAR 
tLABEL 
tINTEGER 
tFLOAT 
tSTRING_CONTENT 
tCHAR 
tNTH_REF 
tBACK_REF 
tREGEXP_END 
tUPLUS 
tUMINUS 
tPOW 
tCMP 
tEQ 
tEQQ 
tNEQ 
tGEQ 
tLEQ 
tANDOP 
tOROP 
tMATCH 
tNMATCH 
tDOT2 
tDOT3 
tAREF 
tASET 
tLSHFT 
tRSHFT 
tCOLON2 
tCOLON3 
tOP_ASGN 
tASSOC 
tLPAREN 
tLPAREN_ARG 
tRPAREN 
tLBRACK 
tLBRACE 
tLBRACE_ARG 
tSTAR 
tAMPER 
tLAMBDA 
tSYMBEG 
tSTRING_BEG 
tXSTRING_BEG 
tREGEXP_BEG 
tWORDS_BEG 
tQWORDS_BEG 
tSTRING_DBEG 
tSTRING_DVAR 
tSTRING_END 
tLAMBEG 
tLOWEST 
tUMINUS_NUM 
idNULL 
idRespond_to 
idIFUNC 
idCFUNC 
id_core_set_method_alias 
id_core_set_variable_alias 
id_core_undef_method 
id_core_define_method 
id_core_define_singleton_method 
id_core_set_postexe 
tLAST_TOKEN 

Definition at line 64 of file gram.c.


Function Documentation

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]

Definition at line 885 of file gram.c.

Referenced by yyparse().

int yyparse (  ) 
int yyparse ( void *  YYPARSE_PARAM  ) 

Variable Documentation

const yysigned_char yycheck[] [static]

Definition at line 525 of file gram.c.

Referenced by yyparse().

const unsigned char yydefact[] [static]
Initial value:
{
       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]
Initial value:
{
      -1,    13,    38,    15,    39,    40,    16,   103,    99,   101,
      17,    18,    19,    61,    62,    63,    20,    44,    45,    21,
      64,    65,   125,    66,    67,    46,    22,    50,    51
}

Definition at line 441 of file gram.c.

Referenced by yyparse().

const short int yypact[] [static]
Initial value:
{
     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]
Initial value:
{
     -97,   -97,     8,    81,   -56,   109,    33,   -53,    74,   -54,
      -1,   -97,   -97,   -96,   -31,   -32,   -97,   -97,   -44,   -97,
      77,   -97,   -97,   -52,     9,    -6,   -97,   -97,   -29
}

Definition at line 469 of file gram.c.

Referenced by yyparse().

const unsigned char yyr1[] [static]
Initial value:
{
       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]
Initial value:
{
       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]
Initial value:
{
       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]

Definition at line 481 of file gram.c.

Referenced by yyparse().

const unsigned char yytranslate[] [static]
Initial value:
{
       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
}

Definition at line 276 of file gram.c.