ext/ripper/ripper.y File Reference

#include "ruby/ruby.h"
#include "ruby/st.h"
#include "ruby/encoding.h"
#include "internal.h"
#include "node.h"
#include "parse.h"
#include "id.h"
#include "regenc.h"
#include <stdio.h>
#include <errno.h>
#include <ctype.h>
#include "probes.h"
#include "id.c"
#include "ruby/regex.h"
#include "ruby/util.h"
#include "lex.c"

Go to the source code of this file.

Data Structures

struct  magic_comment
struct  reg_named_capture_assign_t
struct  symbols

Defines

#define YYDEBUG   1
#define YYERROR_VERBOSE   1
#define YYSTACK_USE_ALLOCA   0
#define YYMALLOC(size)   rb_parser_malloc(parser, (size))
#define YYREALLOC(ptr, size)   rb_parser_realloc(parser, (ptr), (size))
#define YYCALLOC(nelem, size)   rb_parser_calloc(parser, (nelem), (size))
#define YYFREE(ptr)   rb_parser_free(parser, (ptr))
#define malloc   YYMALLOC
#define realloc   YYREALLOC
#define calloc   YYCALLOC
#define free   YYFREE
#define REGISTER_SYMID(id, name)   register_symid((id), (name), strlen(name), enc)
#define is_notop_id(id)   ((id)>tLAST_OP_ID)
#define is_local_id(id)   (is_notop_id(id)&&((id)&ID_SCOPE_MASK)==ID_LOCAL)
#define is_global_id(id)   (is_notop_id(id)&&((id)&ID_SCOPE_MASK)==ID_GLOBAL)
#define is_instance_id(id)   (is_notop_id(id)&&((id)&ID_SCOPE_MASK)==ID_INSTANCE)
#define is_attrset_id(id)   (is_notop_id(id)&&((id)&ID_SCOPE_MASK)==ID_ATTRSET)
#define is_const_id(id)   (is_notop_id(id)&&((id)&ID_SCOPE_MASK)==ID_CONST)
#define is_class_id(id)   (is_notop_id(id)&&((id)&ID_SCOPE_MASK)==ID_CLASS)
#define is_junk_id(id)   (is_notop_id(id)&&((id)&ID_SCOPE_MASK)==ID_JUNK)
#define id_type(id)   (is_notop_id(id) ? (int)((id)&ID_SCOPE_MASK) : -1)
#define is_asgn_or_id(id)
#define DEF_EXPR(n)   EXPR_##n = (1 << EXPR_##n##_bit)
#define IS_lex_state_for(x, ls)   ((x) & (ls))
#define IS_lex_state(ls)   IS_lex_state_for(lex_state, (ls))
#define BITSTACK_PUSH(stack, n)   ((stack) = ((stack)<<1)|((n)&1))
#define BITSTACK_POP(stack)   ((stack) = (stack) >> 1)
#define BITSTACK_LEXPOP(stack)   ((stack) = ((stack) >> 1) | ((stack) & 1))
#define BITSTACK_SET_P(stack)   ((stack)&1)
#define COND_PUSH(n)   BITSTACK_PUSH(cond_stack, (n))
#define COND_POP()   BITSTACK_POP(cond_stack)
#define COND_LEXPOP()   BITSTACK_LEXPOP(cond_stack)
#define COND_P()   BITSTACK_SET_P(cond_stack)
#define CMDARG_PUSH(n)   BITSTACK_PUSH(cmdarg_stack, (n))
#define CMDARG_POP()   BITSTACK_POP(cmdarg_stack)
#define CMDARG_LEXPOP()   BITSTACK_LEXPOP(cmdarg_stack)
#define CMDARG_P()   BITSTACK_SET_P(cmdarg_stack)
#define DVARS_INHERIT   ((void*)1)
#define DVARS_TOPSCOPE   NULL
#define DVARS_SPECIAL_P(tbl)   (!POINTER_P(tbl))
#define POINTER_P(val)   ((VALUE)(val) & ~(VALUE)3)
#define VTBL_DEBUG   0
#define STR_NEW(p, n)   rb_enc_str_new((p),(n),current_enc)
#define STR_NEW0()   rb_enc_str_new(0,0,current_enc)
#define STR_NEW2(p)   rb_enc_str_new((p),strlen(p),current_enc)
#define STR_NEW3(p, n, e, func)   parser_str_new((p),(n),(e),(func),current_enc)
#define ENC_SINGLE(cr)   ((cr)==ENC_CODERANGE_7BIT)
#define TOK_INTERN(mb)   rb_intern3(tok(), toklen(), current_enc)
#define yyerror(msg)   parser_yyerror(parser, (msg))
#define lex_strterm   (parser->parser_lex_strterm)
#define lex_state   (parser->parser_lex_state)
#define cond_stack   (parser->parser_cond_stack)
#define cmdarg_stack   (parser->parser_cmdarg_stack)
#define class_nest   (parser->parser_class_nest)
#define paren_nest   (parser->parser_paren_nest)
#define lpar_beg   (parser->parser_lpar_beg)
#define brace_nest   (parser->parser_brace_nest)
#define in_single   (parser->parser_in_single)
#define in_def   (parser->parser_in_def)
#define compile_for_eval   (parser->parser_compile_for_eval)
#define cur_mid   (parser->parser_cur_mid)
#define in_defined   (parser->parser_in_defined)
#define tokenbuf   (parser->parser_tokenbuf)
#define tokidx   (parser->parser_tokidx)
#define toksiz   (parser->parser_toksiz)
#define tokline   (parser->parser_tokline)
#define lex_input   (parser->parser_lex_input)
#define lex_lastline   (parser->parser_lex_lastline)
#define lex_nextline   (parser->parser_lex_nextline)
#define lex_pbeg   (parser->parser_lex_pbeg)
#define lex_p   (parser->parser_lex_p)
#define lex_pend   (parser->parser_lex_pend)
#define heredoc_end   (parser->parser_heredoc_end)
#define command_start   (parser->parser_command_start)
#define deferred_nodes   (parser->parser_deferred_nodes)
#define lex_gets_ptr   (parser->parser_lex_gets_ptr)
#define lex_gets   (parser->parser_lex_gets)
#define lvtbl   (parser->parser_lvtbl)
#define ruby__end__seen   (parser->parser_ruby__end__seen)
#define ruby_sourceline   (parser->parser_ruby_sourceline)
#define ruby_sourcefile   (parser->parser_ruby_sourcefile)
#define ruby_sourcefile_string   (parser->parser_ruby_sourcefile_string)
#define current_enc   (parser->enc)
#define yydebug   (parser->parser_yydebug)
#define ruby_eval_tree   (parser->parser_eval_tree)
#define ruby_eval_tree_begin   (parser->parser_eval_tree_begin)
#define ruby_debug_lines   (parser->debug_lines)
#define ruby_coverage   (parser->coverage)
#define yyparse   ruby_yyparse
#define rb_node_newnode(type, a1, a2, a3)   node_newnode(parser, (type), (a1), (a2), (a3))
#define cond(node)   cond_gen(parser, (node))
#define logop(type, node1, node2)   logop_gen(parser, (type), (node1), (node2))
#define value_expr(node)   value_expr_gen(parser, (node) = remove_begin(node))
#define void_expr0(node)   void_expr_gen(parser, (node))
#define void_expr(node)   void_expr0((node) = remove_begin(node))
#define void_stmts(node)   void_stmts_gen(parser, (node))
#define reduce_nodes(n)   reduce_nodes_gen(parser,(n))
#define block_dup_check(n1, n2)   block_dup_check_gen(parser,(n1),(n2))
#define block_append(h, t)   block_append_gen(parser,(h),(t))
#define list_append(l, i)   list_append_gen(parser,(l),(i))
#define list_concat(h, t)   list_concat_gen(parser,(h),(t))
#define arg_append(h, t)   arg_append_gen(parser,(h),(t))
#define arg_concat(h, t)   arg_concat_gen(parser,(h),(t))
#define literal_concat(h, t)   literal_concat_gen(parser,(h),(t))
#define new_evstr(n)   new_evstr_gen(parser,(n))
#define evstr2dstr(n)   evstr2dstr_gen(parser,(n))
#define call_bin_op(recv, id, arg1)   call_bin_op_gen(parser, (recv),(id),(arg1))
#define call_uni_op(recv, id)   call_uni_op_gen(parser, (recv),(id))
#define new_args(f, o, r, p, t)   new_args_gen(parser, (f),(o),(r),(p),(t))
#define new_args_tail(k, kr, b)   new_args_tail_gen(parser, (k),(kr),(b))
#define ret_args(node)   ret_args_gen(parser, (node))
#define new_yield(node)   new_yield_gen(parser, (node))
#define dsym_node(node)   dsym_node_gen(parser, (node))
#define gettable(id)   gettable_gen(parser,(id))
#define assignable(id, node)   assignable_gen(parser, (id), (node))
#define aryset(node1, node2)   aryset_gen(parser, (node1), (node2))
#define attrset(node, id)   attrset_gen(parser, (node), (id))
#define rb_backref_error(n)   rb_backref_error_gen(parser,(n))
#define node_assign(node1, node2)   node_assign_gen(parser, (node1), (node2))
#define new_attr_op_assign(lhs, type, attr, op, rhs)   new_attr_op_assign_gen(parser, (lhs), (attr), (op), (rhs))
#define new_const_op_assign(lhs, op, rhs)   new_const_op_assign_gen(parser, (lhs), (op), (rhs))
#define new_defined(expr)   NEW_DEFINED(remove_begin_all(expr))
#define match_op(node1, node2)   match_op_gen(parser, (node1), (node2))
#define local_tbl()   local_tbl_gen(parser)
#define reg_compile(str, options)   reg_compile_gen(parser, (str), (options))
#define reg_fragment_setenc(str, options)   reg_fragment_setenc_gen(parser, (str), (options))
#define reg_fragment_check(str, options)   reg_fragment_check_gen(parser, (str), (options))
#define reg_named_capture_assign(regexp, match)   reg_named_capture_assign_gen(parser,(regexp),(match))
#define get_id(id)   (id)
#define get_value(val)   (val)
#define new_op_assign(lhs, op, rhs)   new_op_assign_gen(parser, (lhs), (op), (rhs))
#define formal_argument(id)   formal_argument_gen(parser, (id))
#define shadowing_lvar(name)   shadowing_lvar_gen(parser, (name))
#define new_bv(id)   new_bv_gen(parser, (id))
#define local_push(top)   local_push_gen(parser,(top))
#define local_pop()   local_pop_gen(parser)
#define local_var(id)   local_var_gen(parser, (id))
#define arg_var(id)   arg_var_gen(parser, (id))
#define local_id(id)   local_id_gen(parser, (id))
#define internal_id()   internal_id_gen(parser)
#define dyna_push()   dyna_push_gen(parser)
#define dyna_pop(node)   dyna_pop_gen(parser, (node))
#define dyna_in_block()   dyna_in_block_gen(parser)
#define dyna_var(id)   local_var(id)
#define dvar_defined(id)   dvar_defined_gen(parser, (id), 0)
#define dvar_defined_get(id)   dvar_defined_gen(parser, (id), 1)
#define dvar_curr(id)   dvar_curr_gen(parser, (id))
#define lvar_defined(id)   lvar_defined_gen(parser, (id))
#define RE_OPTION_ONCE   (1<<16)
#define RE_OPTION_ENCODING_SHIFT   8
#define RE_OPTION_ENCODING(e)   (((e)&0xff)<<RE_OPTION_ENCODING_SHIFT)
#define RE_OPTION_ENCODING_IDX(o)   (((o)>>RE_OPTION_ENCODING_SHIFT)&0xff)
#define RE_OPTION_ENCODING_NONE(o)   ((o)&RE_OPTION_ARG_ENCODING_NONE)
#define RE_OPTION_MASK   0xff
#define RE_OPTION_ARG_ENCODING_NONE   32
#define NODE_STRTERM   NODE_ZARRAY
#define NODE_HEREDOC   NODE_ARRAY
#define SIGN_EXTEND(x, n)   (((1<<(n)-1)^((x)&~(~0<<(n))))-(1<<(n)-1))
#define nd_func   u1.id
#define nd_term(node)   SIGN_EXTEND((node)->u2.id, CHAR_BIT*2)
#define nd_paren(node)   (char)((node)->u2.id >> CHAR_BIT*2)
#define nd_nest   u3.cnt
#define Qnone   0
#define ifndef_ripper(x)   (x)
#define rb_warn0(fmt)   rb_compile_warn(ruby_sourcefile, ruby_sourceline, (fmt))
#define rb_warnI(fmt, a)   rb_compile_warn(ruby_sourcefile, ruby_sourceline, (fmt), (a))
#define rb_warnS(fmt, a)   rb_compile_warn(ruby_sourcefile, ruby_sourceline, (fmt), (a))
#define rb_warn4S(file, line, fmt, a)   rb_compile_warn((file), (line), (fmt), (a))
#define rb_warning0(fmt)   rb_compile_warning(ruby_sourcefile, ruby_sourceline, (fmt))
#define rb_warningS(fmt, a)   rb_compile_warning(ruby_sourcefile, ruby_sourceline, (fmt), (a))
#define rb_compile_error   rb_compile_error_with_enc
#define compile_error   parser->nerr++,rb_compile_error_with_enc
#define PARSER_ARG   ruby_sourcefile, ruby_sourceline, current_enc,
#define token_info_push(token)   (RTEST(ruby_verbose) ? token_info_push(parser, (token)) : (void)0)
#define token_info_pop(token)   (RTEST(ruby_verbose) ? token_info_pop(parser, (token)) : (void)0)
#define yylval   (*((YYSTYPE*)(parser->parser_yylval)))
#define nextc()   parser_nextc(parser)
#define pushback(c)   parser_pushback(parser, (c))
#define newtok()   parser_newtok(parser)
#define tokspace(n)   parser_tokspace(parser, (n))
#define tokadd(c)   parser_tokadd(parser, (c))
#define tok_hex(numlen)   parser_tok_hex(parser, (numlen))
#define read_escape(flags, e)   parser_read_escape(parser, (flags), (e))
#define tokadd_escape(e)   parser_tokadd_escape(parser, (e))
#define regx_options()   parser_regx_options(parser)
#define tokadd_string(f, t, p, n, e)   parser_tokadd_string(parser,(f),(t),(p),(n),(e))
#define parse_string(n)   parser_parse_string(parser,(n))
#define tokaddmbc(c, enc)   parser_tokaddmbc(parser, (c), (enc))
#define here_document(n)   parser_here_document(parser,(n))
#define heredoc_identifier()   parser_heredoc_identifier(parser)
#define heredoc_restore(n)   parser_heredoc_restore(parser,(n))
#define whole_match_p(e, l, i)   parser_whole_match_p(parser,(e),(l),(i))
#define number_literal_suffix(f)   parser_number_literal_suffix(parser, (f))
#define set_number_literal(v, t, f)   parser_set_number_literal(parser, (v), (t), (f))
#define set_integer_literal(v, f)   parser_set_integer_literal(parser, (v), (f))
#define set_yylval_str(x)   (yylval.node = NEW_STR(x))
#define set_yylval_num(x)   (yylval.num = (x))
#define set_yylval_id(x)   (yylval.id = (x))
#define set_yylval_name(x)   (yylval.id = (x))
#define set_yylval_literal(x)   (yylval.node = NEW_LIT(x))
#define set_yylval_node(x)   (yylval.node = (x))
#define yylval_id()   (yylval.id)
#define ripper_flush(p)   (void)(p)
#define SIGN_EXTEND_CHAR(c)   ((((unsigned char)(c)) ^ 128) - 128)
#define parser_encoding_name()   (current_enc->name)
#define parser_mbclen()   mbclen((lex_p-1),lex_pend,current_enc)
#define parser_precise_mbclen()   rb_enc_precise_mbclen((lex_p-1),lex_pend,current_enc)
#define is_identchar(p, e, enc)   (rb_enc_isalnum((unsigned char)(*(p)),(enc)) || (*(p)) == '_' || !ISASCII(*(p)))
#define parser_is_identchar()   (!parser->eofp && is_identchar((lex_p-1),lex_pend,current_enc))
#define parser_isascii()   ISASCII(*(lex_p-1))
#define STR_FUNC_ESCAPE   0x01
#define STR_FUNC_EXPAND   0x02
#define STR_FUNC_REGEXP   0x04
#define STR_FUNC_QWORDS   0x08
#define STR_FUNC_SYMBOL   0x10
#define STR_FUNC_INDENT   0x20
#define lex_goto_eol(parser)   ((parser)->parser_lex_p = (parser)->parser_lex_pend)
#define lex_eol_p()   (lex_p >= lex_pend)
#define peek(c)   peek_n((c), 0)
#define peek_n(c, n)   (lex_p+(n) < lex_pend && (c) == (unsigned char)lex_p[n])
#define was_bol()   (lex_p == lex_pbeg + 1)
#define tokfix()   (tokenbuf[tokidx]='\0')
#define tok()   tokenbuf
#define toklen()   tokidx
#define toklast()   (tokidx>0?tokenbuf[tokidx-1]:0)
#define tokcopy(n)   memcpy(tokspace(n), lex_p - (n), (n))
#define ESCAPE_CONTROL   1
#define ESCAPE_META   2
#define tokadd_mbchar(c)   parser_tokadd_mbchar(parser, (c))
#define mixed_error(enc1, enc2)
#define mixed_escape(beg, enc1, enc2)
#define NEW_STRTERM(func, term, paren)   rb_node_newnode(NODE_STRTERM, (func), (term) | ((paren) << (CHAR_BIT * 2)), 0)
#define flush_string_content(enc)   ((void)(enc))
#define BIT(c, idx)   (((c) / 32 - 1 == idx) ? (1U << ((c) % 32)) : 0)
#define SPECIAL_PUNCT(idx)
#define NUM_SUFFIX_R   (1<<0)
#define NUM_SUFFIX_I   (1<<1)
#define NUM_SUFFIX_ALL   3
#define dispatch_heredoc_end()   ((void)0)
#define arg_ambiguous()   (arg_ambiguous_gen(parser), 1)
#define str_copy(_s, _p, _n)
#define IS_ARG()   IS_lex_state(EXPR_ARG_ANY)
#define IS_END()   IS_lex_state(EXPR_END_ANY)
#define IS_BEG()   IS_lex_state(EXPR_BEG_ANY)
#define IS_SPCARG(c)   (IS_ARG() && space_seen && !ISSPACE(c))
#define IS_LABEL_POSSIBLE()   ((IS_lex_state(EXPR_BEG | EXPR_ENDFN) && !cmd_state) || IS_ARG())
#define IS_LABEL_SUFFIX(n)   (peek_n(':',(n)) && !peek_n(':', (n)+1))
#define IS_AFTER_OPERATOR()   IS_lex_state(EXPR_FNAME | EXPR_DOT)
#define ambiguous_operator(op, syn)
#define warn_balanced(op, syn)
#define no_digits()   do {yyerror("numeric literal without digits"); return 0;} while (0)
#define parser_warning(node, mesg)   parser_warning(parser, (node), (mesg))
#define parser_warn(node, mesg)   parser_warn(parser, (node), (mesg))
#define assignable_result(x)   (x)
#define LVAR_USED   ((ID)1 << (sizeof(ID) * CHAR_BIT - 1))
#define subnodes(n1, n2)
#define op_tbl_count   numberof(op_tbl)
#define IDSET_ATTRSET_FOR_SYNTAX   ((1U<<ID_LOCAL)|(1U<<ID_CONST))
#define IDSET_ATTRSET_FOR_INTERN   (~(~0U<<ID_SCOPE_MASK) & ~(1U<<ID_ATTRSET))
#define HEAPCNT(n, size)   ((n) * (size) / sizeof(YYSTYPE))
#define NEWHEAP()   rb_node_newnode(NODE_ALLOCA, 0, (VALUE)parser->heap, 0)
#define ADD2HEAP(n, c, p)

Typedefs

typedef long(* rb_magic_comment_length_t )(struct parser_params *parser, const char *name, long len)
typedef void(* rb_magic_comment_setter_t )(struct parser_params *parser, const char *name, const char *val)

Enumerations

enum  string_type {
  str_squote = (0), str_dquote = (STR_FUNC_EXPAND), str_xquote = (STR_FUNC_EXPAND), str_regexp = (STR_FUNC_REGEXP|STR_FUNC_ESCAPE|STR_FUNC_EXPAND),
  str_sword = (STR_FUNC_QWORDS), str_dword = (STR_FUNC_QWORDS|STR_FUNC_EXPAND), str_ssym = (STR_FUNC_SYMBOL), str_dsym = (STR_FUNC_SYMBOL|STR_FUNC_EXPAND),
  str_squote = (0), str_dquote = (STR_FUNC_EXPAND), str_xquote = (STR_FUNC_EXPAND), str_regexp = (STR_FUNC_REGEXP|STR_FUNC_ESCAPE|STR_FUNC_EXPAND),
  str_sword = (STR_FUNC_QWORDS), str_dword = (STR_FUNC_QWORDS|STR_FUNC_EXPAND), str_ssym = (STR_FUNC_SYMBOL), str_dsym = (STR_FUNC_SYMBOL|STR_FUNC_EXPAND),
  str_squote = (0), str_dquote = (STR_FUNC_EXPAND), str_xquote = (STR_FUNC_EXPAND), str_regexp = (STR_FUNC_REGEXP|STR_FUNC_ESCAPE|STR_FUNC_EXPAND),
  str_sword = (STR_FUNC_QWORDS), str_dword = (STR_FUNC_QWORDS|STR_FUNC_EXPAND), str_ssym = (STR_FUNC_SYMBOL), str_dsym = (STR_FUNC_SYMBOL|STR_FUNC_EXPAND),
  str_squote = (0), str_dquote = (STR_FUNC_EXPAND), str_xquote = (STR_FUNC_EXPAND), str_regexp = (STR_FUNC_REGEXP|STR_FUNC_ESCAPE|STR_FUNC_EXPAND),
  str_sword = (STR_FUNC_QWORDS), str_dword = (STR_FUNC_QWORDS|STR_FUNC_EXPAND), str_ssym = (STR_FUNC_SYMBOL), str_dsym = (STR_FUNC_SYMBOL|STR_FUNC_EXPAND)
}

Functions

top_stmts dispatch0 (stmts_new)
top_stmts dispatch0 (void_stmt))
top_stmt escape_Qundef ($1)
expr ripper_intern ("and")
 CMDARG_PUSH (1)
primary arg_new ())
numeric ripper_intern ("-@")
static int parser_regx_options (struct parser_params *)
static int parser_tokadd_string (struct parser_params *, int, int, int, long *, rb_encoding **)
static void parser_tokaddmbc (struct parser_params *parser, int c, rb_encoding *enc)
static int parser_parse_string (struct parser_params *, NODE *)
static int parser_here_document (struct parser_params *, NODE *)
static int token_info_get_column (struct parser_params *parser, const char *token)
static int token_info_has_nonspaces (struct parser_params *parser, const char *token)
static void token_info_push (struct parser_params *parser, const char *token)
static void token_info_pop (struct parser_params *parser, const char *token)
static int parser_yyerror (struct parser_params *parser, const char *msg)
static void parser_prepare (struct parser_params *parser)
static VALUE debug_lines (VALUE fname)
static VALUE coverage (VALUE fname, int n)
static int e_option_supplied (struct parser_params *parser)
static VALUE yycompile0 (VALUE arg)
static NODE * yycompile (struct parser_params *parser, VALUE fname, int line)
static rb_encoding * must_be_ascii_compatible (VALUE s)
static VALUE lex_get_str (struct parser_params *parser, VALUE s)
static VALUE lex_getline (struct parser_params *parser)
static NODE * parser_compile_string (volatile VALUE vparser, VALUE fname, VALUE s, int line)
NODE * rb_compile_string (const char *f, VALUE s, int line)
NODE * rb_parser_compile_string (volatile VALUE vparser, const char *f, VALUE s, int line)
NODE * rb_parser_compile_string_path (volatile VALUE vparser, VALUE f, VALUE s, int line)
NODE * rb_compile_cstr (const char *f, const char *s, int len, int line)
NODE * rb_parser_compile_cstr (volatile VALUE vparser, const char *f, const char *s, int len, int line)
static VALUE lex_io_gets (struct parser_params *parser, VALUE io)
NODE * rb_compile_file (const char *f, VALUE file, int start)
NODE * rb_parser_compile_file (volatile VALUE vparser, const char *f, VALUE file, int start)
NODE * rb_parser_compile_file_path (volatile VALUE vparser, VALUE fname, VALUE file, int start)
static VALUE parser_str_new (const char *p, long n, rb_encoding *enc, int func, rb_encoding *enc0)
static int parser_nextc (struct parser_params *parser)
static void parser_pushback (struct parser_params *parser, int c)
static char * parser_newtok (struct parser_params *parser)
static char * parser_tokspace (struct parser_params *parser, int n)
static void parser_tokadd (struct parser_params *parser, int c)
static int parser_tok_hex (struct parser_params *parser, size_t *numlen)
static int parser_tokadd_utf8 (struct parser_params *parser, rb_encoding **encp, int string_literal, int symbol_literal, int regexp_literal)
static int parser_read_escape (struct parser_params *parser, int flags, rb_encoding **encp)
static int parser_tokadd_escape (struct parser_params *parser, rb_encoding **encp)
static void dispose_string (VALUE str)
static int parser_tokadd_mbchar (struct parser_params *parser, int c)
static int simple_re_meta (int c)
static int is_global_name_punct (const int c)
static int parser_peek_variable_name (struct parser_params *parser)
static int parser_heredoc_identifier (struct parser_params *parser)
static void parser_heredoc_restore (struct parser_params *parser, NODE *here)
static int parser_whole_match_p (struct parser_params *parser, const char *eos, long len, int indent)
static int parser_number_literal_suffix (struct parser_params *parser, int mask)
static int parser_set_number_literal (struct parser_params *parser, VALUE v, int type, int suffix)
static int parser_set_integer_literal (struct parser_params *parser, VALUE v, int suffix)
static void arg_ambiguous_gen (struct parser_params *parser)
static ID formal_argument_gen (struct parser_params *parser, ID lhs)
static int lvar_defined_gen (struct parser_params *parser, ID id)
static long parser_encode_length (struct parser_params *parser, const char *name, long len)
static void parser_set_encode (struct parser_params *parser, const char *name)
static int comment_at_top (struct parser_params *parser)
static void magic_comment_encoding (struct parser_params *parser, const char *name, const char *val)
static void parser_set_token_info (struct parser_params *parser, const char *name, const char *val)
static const char * magic_comment_marker (const char *str, long len)
static int parser_magic_comment (struct parser_params *parser, const char *str, long len)
static void set_file_encoding (struct parser_params *parser, const char *str, const char *send)
static int parse_numvar (struct parser_params *parser)
static int parser_yylex (struct parser_params *parser)
static int yylex (void *lval, void *p)
static NODE * node_newnode (struct parser_params *parser, enum node_type type, VALUE a0, VALUE a1, VALUE a2)
static enum node_type nodetype (NODE *node)
static int nodeline (NODE *node)
static NODE * newline_node (NODE *node)
static void fixpos (NODE *node, NODE *orig)
static void parser_warning (struct parser_params *parser, NODE *node, const char *mesg)
static void parser_warn (struct parser_params *parser, NODE *node, const char *mesg)
static NODE * block_append_gen (struct parser_params *parser, NODE *head, NODE *tail)
static NODE * list_append_gen (struct parser_params *parser, NODE *list, NODE *item)
static NODE * list_concat_gen (struct parser_params *parser, NODE *head, NODE *tail)
static int literal_concat0 (struct parser_params *parser, VALUE head, VALUE tail)
static NODE * literal_concat_gen (struct parser_params *parser, NODE *head, NODE *tail)
static NODE * evstr2dstr_gen (struct parser_params *parser, NODE *node)
static NODE * new_evstr_gen (struct parser_params *parser, NODE *node)
static NODE * call_bin_op_gen (struct parser_params *parser, NODE *recv, ID id, NODE *arg1)
static NODE * call_uni_op_gen (struct parser_params *parser, NODE *recv, ID id)
static NODE * match_op_gen (struct parser_params *parser, NODE *node1, NODE *node2)
static NODE * gettable_gen (struct parser_params *parser, ID id)
static NODE * assignable_gen (struct parser_params *parser, ID id, NODE *val)
static int is_private_local_id (ID name)
static int shadowing_lvar_0 (struct parser_params *parser, ID name)
static ID shadowing_lvar_gen (struct parser_params *parser, ID name)
static void new_bv_gen (struct parser_params *parser, ID name)
static NODE * aryset_gen (struct parser_params *parser, NODE *recv, NODE *idx)
static void block_dup_check_gen (struct parser_params *parser, NODE *node1, NODE *node2)
ID rb_id_attrset (ID id)
static NODE * attrset_gen (struct parser_params *parser, NODE *recv, ID id)
static void rb_backref_error_gen (struct parser_params *parser, NODE *node)
static NODE * arg_concat_gen (struct parser_params *parser, NODE *node1, NODE *node2)
static NODE * arg_append_gen (struct parser_params *parser, NODE *node1, NODE *node2)
static NODE * splat_array (NODE *node)
static NODE * node_assign_gen (struct parser_params *parser, NODE *lhs, NODE *rhs)
static int value_expr_gen (struct parser_params *parser, NODE *node)
static void void_expr_gen (struct parser_params *parser, NODE *node)
static void void_stmts_gen (struct parser_params *parser, NODE *node)
static NODE * remove_begin (NODE *node)
static NODE * remove_begin_all (NODE *node)
static void reduce_nodes_gen (struct parser_params *parser, NODE **body)
static int is_static_content (NODE *node)
static int assign_in_cond (struct parser_params *parser, NODE *node)
static void warn_unless_e_option (struct parser_params *parser, NODE *node, const char *str)
static void warning_unless_e_option (struct parser_params *parser, NODE *node, const char *str)
static void fixup_nodes (NODE **rootnode)
static NODE * cond0 (struct parser_params *, NODE *)
static NODE * range_op (struct parser_params *parser, NODE *node)
static int literal_node (NODE *node)
static NODE * cond_gen (struct parser_params *parser, NODE *node)
static NODE * logop_gen (struct parser_params *parser, enum node_type type, NODE *left, NODE *right)
static void no_blockarg (struct parser_params *parser, NODE *node)
static NODE * ret_args_gen (struct parser_params *parser, NODE *node)
static NODE * new_yield_gen (struct parser_params *parser, NODE *node)
static NODE * negate_lit (NODE *node)
static NODE * arg_blk_pass (NODE *node1, NODE *node2)
static NODE * new_args_gen (struct parser_params *parser, NODE *m, NODE *o, ID r, NODE *p, NODE *tail)
static NODE * new_args_tail_gen (struct parser_params *parser, NODE *k, ID kr, ID b)
static NODE * dsym_node_gen (struct parser_params *parser, NODE *node)
static NODE * new_op_assign_gen (struct parser_params *parser, NODE *lhs, ID op, NODE *rhs)
static NODE * new_attr_op_assign_gen (struct parser_params *parser, NODE *lhs, ID attr, ID op, NODE *rhs)
static NODE * new_const_op_assign_gen (struct parser_params *parser, NODE *lhs, ID op, NODE *rhs)
static void warn_unused_var (struct parser_params *parser, struct local_vars *local)
static void local_push_gen (struct parser_params *parser, int inherit_dvars)
static void local_pop_gen (struct parser_params *parser)
static ID * local_tbl_gen (struct parser_params *parser)
static int arg_var_gen (struct parser_params *parser, ID id)
static int local_var_gen (struct parser_params *parser, ID id)
static int local_id_gen (struct parser_params *parser, ID id)
static struct vtabledyna_push_gen (struct parser_params *parser)
static void dyna_pop_1 (struct parser_params *parser)
static void dyna_pop_gen (struct parser_params *parser, const struct vtable *lvargs)
static int dyna_in_block_gen (struct parser_params *parser)
static int dvar_defined_gen (struct parser_params *parser, ID id, int get)
static int dvar_curr_gen (struct parser_params *parser, ID id)
static void reg_fragment_setenc_gen (struct parser_params *parser, VALUE str, int options)
static int reg_fragment_check_gen (struct parser_params *parser, VALUE str, int options)
static int reg_named_capture_assign_iter (const OnigUChar *name, const OnigUChar *name_end, int back_num, int *back_refs, OnigRegex regex, void *arg0)
static NODE * reg_named_capture_assign_gen (struct parser_params *parser, VALUE regexp, NODE *match)
static VALUE reg_compile_gen (struct parser_params *parser, VALUE str, int options)
void rb_gc_mark_parser (void)
NODE * rb_parser_append_print (VALUE vparser, NODE *node)
NODE * rb_parser_while_loop (VALUE vparser, NODE *node, int chop, int split)
void Init_sym (void)
void rb_gc_mark_symbols (int full_mark)
static ID internal_id_gen (struct parser_params *parser)
static int is_special_global_name (const char *m, const char *e, rb_encoding *enc)
int rb_symname_p (const char *name)
int rb_enc_symname_p (const char *name, rb_encoding *enc)
static int rb_enc_symname_type (const char *name, long len, rb_encoding *enc, unsigned int allowed_attrset)
int rb_enc_symname2_p (const char *name, long len, rb_encoding *enc)
static int rb_str_symname_type (VALUE name, unsigned int allowed_attrset)
static ID register_symid (ID id, const char *name, long len, rb_encoding *enc)
static ID register_symid_str (ID id, VALUE str)
static int sym_check_asciionly (VALUE str)
static ID intern_str (VALUE str)
static VALUE setup_fake_str (struct RString *fake_str, const char *name, long len)
ID rb_intern3 (const char *name, long len, rb_encoding *enc)
ID rb_intern2 (const char *name, long len)
ID rb_intern (const char *name)
ID rb_intern_str (VALUE str)
VALUE rb_id2str (ID id)
const char * rb_id2name (ID id)
static int symbols_i (VALUE sym, ID value, VALUE ary)
VALUE rb_sym_all_symbols (void)
int rb_is_const_id (ID id)
int rb_is_class_id (ID id)
int rb_is_global_id (ID id)
int rb_is_instance_id (ID id)
int rb_is_attrset_id (ID id)
int rb_is_local_id (ID id)
int rb_is_junk_id (ID id)
ID rb_check_id (volatile VALUE *namep)
 Returns ID for the given name if it is interned already, or 0.
ID rb_check_id_cstr (const char *ptr, long len, rb_encoding *enc)
int rb_is_const_name (VALUE name)
int rb_is_class_name (VALUE name)
int rb_is_global_name (VALUE name)
int rb_is_instance_name (VALUE name)
int rb_is_attrset_name (VALUE name)
int rb_is_local_name (VALUE name)
int rb_is_method_name (VALUE name)
int rb_is_junk_name (VALUE name)
static void parser_initialize (struct parser_params *parser)
static void parser_mark (void *ptr)
static void parser_free (void *ptr)
static size_t parser_memsize (const void *ptr)
struct kwtablerb_reserved_word (const char *str, unsigned int len)
static struct parser_paramsparser_new (void)
VALUE rb_parser_new (void)
VALUE rb_parser_end_seen_p (VALUE vparser)
VALUE rb_parser_encoding (VALUE vparser)
VALUE rb_parser_get_yydebug (VALUE self)
VALUE rb_parser_set_yydebug (VALUE self, VALUE flag)
void * rb_parser_malloc (struct parser_params *parser, size_t size)
void * rb_parser_calloc (struct parser_params *parser, size_t nelem, size_t size)
void * rb_parser_realloc (struct parser_params *parser, void *ptr, size_t size)
void rb_parser_free (struct parser_params *parser, void *ptr)

Variables

top_compstmt __pad0__
top_stmts __pad1__
top_stmt __pad2__
top_stmt bodystmt
compstmt __pad3__
stmts __pad4__
stmt_or_begin __pad5__
command_asgn __pad6__
command_asgn lhs
expr __pad7__
expr_value __pad8__
command_call __pad9__
block_command __pad10__
block_command cmd_brace_block = method_arg($$, $4)
fcall __pad11__
command __pad12__
mlhs __pad13__
mlhs mlhs_inner
mlhs mlhs_basic
mlhs_item __pad14__
mlhs_item mlhs_head
mlhs_post __pad15__
mlhs_post mlhs_post
mlhs_node __pad16__
lhs __pad17__
cname __pad18__ = dispatch1(var_field, $$)
cname tCONSTANT
cpath __pad19__
fname __pad20__
fsym __pad21__ = $1
fitem __pad22__
fitem dsym
undef_list __pad23__
undef_list undef_list
op __pad24__
reswords __pad25__
arg __pad26__
arg_value __pad27__
aref_args __pad28__
 args
paren_args __pad29__
opt_paren_args __pad30__
opt_call_args __pad31__
call_args __pad32__
command_args __pad33__
block_arg __pad34__
opt_block_arg __pad35__
args __pad36__
mrhs_arg __pad37__
mrhs __pad38__
primary __pad39__
primary_value __pad40__
k_begin __pad41__
k_if __pad42__
k_unless __pad43__
k_while __pad44__
k_until __pad45__
k_case __pad46__
k_for __pad47__
k_class __pad48__
k_module __pad49__
k_def __pad50__
k_end __pad51__
then __pad52__
do __pad53__
 keyword_do_cond
if_tail __pad54__
opt_else __pad55__
opt_else for_var
f_marg __pad56__
f_marg_list __pad57__ = dispatch1(mlhs_paren, $$)
f_marg_list f_marg_list
f_margs __pad58__
block_args_tail __pad59__
opt_block_args_tail __pad60__
block_param __pad61__
block_param f_block_optarg
opt_block_param __pad62__
block_param_def __pad63__
block_param_def Qnil
opt_bv_decl __pad64__
 opt_nl
bv_decls __pad65__
bv_decls bv_decls
bvar __pad66__
lambda __pad67__ = get_value($1)
f_larglist __pad68__
lambda_body __pad69__
do_block __pad70__
block_call __pad71__
method_call __pad72__
brace_block __pad73__
case_body __pad74__
cases __pad75__
opt_rescue __pad76__
 none
exc_list __pad77__
exc_var __pad78__
opt_ensure __pad79__
literal __pad80__
strings __pad81__
string __pad82__
string string1
string xstring
string regexp
string words
word_list __pad83__ = dispatch1(array, $$)
word __pad84__
symbols __pad85__ = dispatch2(word_add, $$, $1)
symbol_list __pad86__ = dispatch1(array, $$)
qwords __pad87__
qsymbols __pad88__ = dispatch1(array, $$)
qword_list __pad89__ = dispatch1(array, $$)
qsym_list __pad90__
string_contents __pad91__
xstring_contents __pad92__
regexp_contents __pad93__
string_content __pad94__
 lex_strterm = 0
 lex_state = EXPR_BEG
string_dvar __pad95__
symbol __pad96__
sym __pad97__ = dispatch1(symbol, $2)
dsym __pad98__
numeric __pad99__ = dispatch1(dyna_symbol, $2)
numeric simple_numeric
user_variable __pad100__
keyword_variable __pad101__
var_ref __pad102__
var_lhs __pad103__
backref __pad104__ = dispatch1(var_field, $$)
superclass __pad105__
<'{lex_state=EXPR_BEG;command_start=TRUE;}expr_valueterm{$$=$3;}|errorterm{yyerrok;$$=Qnil;};f_arglist:'('f_argsrparen{$$=dispatch1(paren,
$2);lex_state=EXPR_BEG;command_start=TRUE;}|{$
< num > parser 
parser_in_kwarg = parser->parser_in_kwarg 1
args_tail __pad106__
opt_args_tail __pad107__
f_args __pad108__
f_args f_optarg
f_bad_arg __pad109__
f_norm_arg __pad110__
f_arg_item __pad111__ = $1
f_arg __pad112__ = get_value($1)
f_arg f_arg
f_label __pad113__
f_kw __pad114__ = $1
f_block_kw __pad115__ = rb_assoc_new($$, $2)
f_block_kwarg __pad116__ = rb_assoc_new($$, $2)
f_block_kwarg f_block_kwarg
f_kwarg __pad117__
f_kwarg f_kwarg
kwrest_mark __pad118__
f_kwrest __pad119__
f_opt __pad120__ = $2
f_block_opt __pad121__ = assignable($1, $3) rb_assoc_new($$, $3)
f_block_optarg __pad122__ = assignable($1, $3) rb_assoc_new($$, $3)
f_optarg __pad123__
restarg_mark __pad124__
f_rest_arg __pad125__
blkarg_mark __pad126__ = dispatch1(rest_param, $2)
f_block_arg __pad127__
opt_f_block_arg __pad128__ = dispatch1(blockarg, $2)
singleton __pad129__
assoc_list __pad130__
assoc_list assocs
assoc __pad131__
operation __pad132__
operation2 __pad133__
operation3 __pad134__
dot_or_colon __pad135__
opt_terms __pad136__
opt_nl __pad137__
rparen __pad138__
rbracket __pad139__
trailer __pad140__
trailer term
terms __pad141__
none __pad142__
static const rb_data_type_t parser_data_type
RUBY_FUNC_EXPORTED const
unsigned int 
ruby_global_name_punct_bits [(0x7e-0x20+31)/32]
static struct magic_comment magic_comments []
static const char id_type_names [][9]
struct {
   ID   token
   const char *   name
op_tbl []
static struct symbols global_symbols
static struct st_hash_type symhash

Define Documentation

#define ADD2HEAP ( n,
c,
 ) 
Value:
((parser->heap = (n))->u1.node = (p), \
                           (n)->u3.cnt = (c), (p))

Definition at line 19761 of file ripper.y.

#define ambiguous_operator ( op,
syn   ) 
Value:
( \
    rb_warning0("`"op"' after local variable or literal is interpreted as binary operator"), \
    rb_warning0("even though it seems like "syn""))

Definition at line 15608 of file ripper.y.

 
#define arg_ambiguous (  )     (arg_ambiguous_gen(parser), 1)

Definition at line 15272 of file ripper.y.

#define arg_append ( h,
 )     arg_append_gen(parser,(h),(t))
#define arg_concat ( h,
 )     arg_concat_gen(parser,(h),(t))
#define arg_var ( id   )     arg_var_gen(parser, (id))
#define aryset ( node1,
node2   )     aryset_gen(parser, (node1), (node2))
#define assignable ( id,
node   )     assignable_gen(parser, (id), (node))
#define assignable_result (  )     (x)
#define attrset ( node,
id   )     attrset_gen(parser, (node), (id))
#define BIT ( c,
idx   )     (((c) / 32 - 1 == idx) ? (1U << ((c) % 32)) : 0)

Definition at line 14870 of file ripper.y.

#define BITSTACK_LEXPOP ( stack   )     ((stack) = ((stack) >> 1) | ((stack) & 1))
#define BITSTACK_POP ( stack   )     ((stack) = (stack) >> 1)
#define BITSTACK_PUSH ( stack,
 )     ((stack) = ((stack)<<1)|((n)&1))
#define BITSTACK_SET_P ( stack   )     ((stack)&1)
#define block_append ( h,
 )     block_append_gen(parser,(h),(t))
#define block_dup_check ( n1,
n2   )     block_dup_check_gen(parser,(n1),(n2))
#define brace_nest   (parser->parser_brace_nest)
#define call_bin_op ( recv,
id,
arg1   )     call_bin_op_gen(parser, (recv),(id),(arg1))
#define call_uni_op ( recv,
id   )     call_uni_op_gen(parser, (recv),(id))
#define calloc   YYCALLOC
#define class_nest   (parser->parser_class_nest)
 
#define CMDARG_LEXPOP (  )     BITSTACK_LEXPOP(cmdarg_stack)
 
#define CMDARG_P (  )     BITSTACK_SET_P(cmdarg_stack)
 
#define CMDARG_POP (  )     BITSTACK_POP(cmdarg_stack)
#define CMDARG_PUSH (  )     BITSTACK_PUSH(cmdarg_stack, (n))
#define cmdarg_stack   (parser->parser_cmdarg_stack)
#define command_start   (parser->parser_command_start)
#define compile_error   parser->nerr++,rb_compile_error_with_enc
#define compile_for_eval   (parser->parser_compile_for_eval)
#define cond ( node   )     cond_gen(parser, (node))
 
#define COND_LEXPOP (  )     BITSTACK_LEXPOP(cond_stack)
 
#define COND_P (  )     BITSTACK_SET_P(cond_stack)
 
#define COND_POP (  )     BITSTACK_POP(cond_stack)
#define COND_PUSH (  )     BITSTACK_PUSH(cond_stack, (n))
#define cond_stack   (parser->parser_cond_stack)
#define cur_mid   (parser->parser_cur_mid)
#define current_enc   (parser->enc)
#define DEF_EXPR (  )     EXPR_##n = (1 << EXPR_##n##_bit)
#define deferred_nodes   (parser->parser_deferred_nodes)
 
#define dispatch_heredoc_end (  )     ((void)0)

Definition at line 15155 of file ripper.y.

#define dsym_node ( node   )     dsym_node_gen(parser, (node))
#define dvar_curr ( id   )     dvar_curr_gen(parser, (id))
#define dvar_defined ( id   )     dvar_defined_gen(parser, (id), 0)
#define dvar_defined_get ( id   )     dvar_defined_gen(parser, (id), 1)
#define DVARS_INHERIT   ((void*)1)
#define DVARS_SPECIAL_P ( tbl   )     (!POINTER_P(tbl))
#define DVARS_TOPSCOPE   NULL
 
#define dyna_in_block (  )     dyna_in_block_gen(parser)
#define dyna_pop ( node   )     dyna_pop_gen(parser, (node))
 
#define dyna_push (  )     dyna_push_gen(parser)
#define dyna_var ( id   )     local_var(id)
#define ENC_SINGLE ( cr   )     ((cr)==ENC_CODERANGE_7BIT)
#define ESCAPE_CONTROL   1

Definition at line 14464 of file ripper.y.

#define ESCAPE_META   2

Definition at line 14465 of file ripper.y.

#define evstr2dstr (  )     evstr2dstr_gen(parser,(n))
#define flush_string_content ( enc   )     ((void)(enc))

Definition at line 14863 of file ripper.y.

#define formal_argument ( id   )     formal_argument_gen(parser, (id))
#define free   YYFREE
#define get_id ( id   )     (id)
#define get_value ( val   )     (val)
#define gettable ( id   )     gettable_gen(parser,(id))
#define HEAPCNT ( n,
size   )     ((n) * (size) / sizeof(YYSTYPE))

Definition at line 19759 of file ripper.y.

#define here_document (  )     parser_here_document(parser,(n))

Definition at line 13718 of file ripper.y.

#define heredoc_end   (parser->parser_heredoc_end)
 
#define heredoc_identifier (  )     parser_heredoc_identifier(parser)

Definition at line 13719 of file ripper.y.

#define heredoc_restore (  )     parser_heredoc_restore(parser,(n))

Definition at line 13720 of file ripper.y.

#define id_type ( id   )     (is_notop_id(id) ? (int)((id)&ID_SCOPE_MASK) : -1)
#define IDSET_ATTRSET_FOR_INTERN   (~(~0U<<ID_SCOPE_MASK) & ~(1U<<ID_ATTRSET))

Definition at line 18939 of file ripper.y.

#define IDSET_ATTRSET_FOR_SYNTAX   ((1U<<ID_LOCAL)|(1U<<ID_CONST))

Definition at line 18938 of file ripper.y.

#define ifndef_ripper (  )     (x)
#define in_def   (parser->parser_in_def)
#define in_defined   (parser->parser_in_defined)
#define in_single   (parser->parser_in_single)
 
#define internal_id (  )     internal_id_gen(parser)
 
#define IS_AFTER_OPERATOR (  )     IS_lex_state(EXPR_FNAME | EXPR_DOT)

Definition at line 15605 of file ripper.y.

 
#define IS_ARG (  )     IS_lex_state(EXPR_ARG_ANY)

Definition at line 15599 of file ripper.y.

#define is_asgn_or_id ( id   ) 
Value:
((is_notop_id(id)) && \
        (((id)&ID_SCOPE_MASK) == ID_GLOBAL || \
         ((id)&ID_SCOPE_MASK) == ID_INSTANCE || \
         ((id)&ID_SCOPE_MASK) == ID_CLASS))
#define is_attrset_id ( id   )     (is_notop_id(id)&&((id)&ID_SCOPE_MASK)==ID_ATTRSET)
 
#define IS_BEG (  )     IS_lex_state(EXPR_BEG_ANY)

Definition at line 15601 of file ripper.y.

#define is_class_id ( id   )     (is_notop_id(id)&&((id)&ID_SCOPE_MASK)==ID_CLASS)
#define is_const_id ( id   )     (is_notop_id(id)&&((id)&ID_SCOPE_MASK)==ID_CONST)
 
#define IS_END (  )     IS_lex_state(EXPR_END_ANY)

Definition at line 15600 of file ripper.y.

#define is_global_id ( id   )     (is_notop_id(id)&&((id)&ID_SCOPE_MASK)==ID_GLOBAL)
#define is_identchar ( p,
e,
enc   )     (rb_enc_isalnum((unsigned char)(*(p)),(enc)) || (*(p)) == '_' || !ISASCII(*(p)))

Definition at line 13820 of file ripper.y.

#define is_instance_id ( id   )     (is_notop_id(id)&&((id)&ID_SCOPE_MASK)==ID_INSTANCE)
#define is_junk_id ( id   )     (is_notop_id(id)&&((id)&ID_SCOPE_MASK)==ID_JUNK)
 
#define IS_LABEL_POSSIBLE (  )     ((IS_lex_state(EXPR_BEG | EXPR_ENDFN) && !cmd_state) || IS_ARG())

Definition at line 15603 of file ripper.y.

#define IS_LABEL_SUFFIX (  )     (peek_n(':',(n)) && !peek_n(':', (n)+1))

Definition at line 15604 of file ripper.y.

#define IS_lex_state ( ls   )     IS_lex_state_for(lex_state, (ls))
#define IS_lex_state_for ( x,
ls   )     ((x) & (ls))
#define is_local_id ( id   )     (is_notop_id(id)&&((id)&ID_SCOPE_MASK)==ID_LOCAL)
#define is_notop_id ( id   )     ((id)>tLAST_OP_ID)
#define IS_SPCARG (  )     (IS_ARG() && space_seen && !ISSPACE(c))

Definition at line 15602 of file ripper.y.

 
#define lex_eol_p (  )     (lex_p >= lex_pend)

Definition at line 14254 of file ripper.y.

#define lex_gets   (parser->parser_lex_gets)
#define lex_gets_ptr   (parser->parser_lex_gets_ptr)
#define lex_goto_eol ( parser   )     ((parser)->parser_lex_p = (parser)->parser_lex_pend)

Definition at line 14253 of file ripper.y.

#define lex_input   (parser->parser_lex_input)
#define lex_lastline   (parser->parser_lex_lastline)
#define lex_nextline   (parser->parser_lex_nextline)
#define lex_p   (parser->parser_lex_p)
#define lex_pbeg   (parser->parser_lex_pbeg)
#define lex_pend   (parser->parser_lex_pend)
#define lex_state   (parser->parser_lex_state)
#define lex_strterm   (parser->parser_lex_strterm)
#define list_append ( l,
 )     list_append_gen(parser,(l),(i))
#define list_concat ( h,
 )     list_concat_gen(parser,(h),(t))
#define literal_concat ( h,
 )     literal_concat_gen(parser,(h),(t))
#define local_id ( id   )     local_id_gen(parser, (id))
 
#define local_pop (  )     local_pop_gen(parser)
#define local_push ( top   )     local_push_gen(parser,(top))
 
#define local_tbl (  )     local_tbl_gen(parser)
#define local_var ( id   )     local_var_gen(parser, (id))
#define logop ( type,
node1,
node2   )     logop_gen(parser, (type), (node1), (node2))
#define lpar_beg   (parser->parser_lpar_beg)
#define lvar_defined ( id   )     lvar_defined_gen(parser, (id))
#define LVAR_USED   ((ID)1 << (sizeof(ID) * CHAR_BIT - 1))

Definition at line 17446 of file ripper.y.

#define lvtbl   (parser->parser_lvtbl)
#define malloc   YYMALLOC
#define match_op ( node1,
node2   )     match_op_gen(parser, (node1), (node2))
#define mixed_error ( enc1,
enc2   ) 
Value:
if (!errbuf) {  \
        size_t len = sizeof(mixed_msg) - 4;     \
        len += strlen(rb_enc_name(enc1));       \
        len += strlen(rb_enc_name(enc2));       \
        errbuf = ALLOCA_N(char, len);           \
        snprintf(errbuf, len, mixed_msg,        \
                 rb_enc_name(enc1),             \
                 rb_enc_name(enc2));            \
        yyerror(errbuf);                        \
    }
#define mixed_escape ( beg,
enc1,
enc2   ) 
Value:
do {    \
        const char *pos = lex_p;                \
        lex_p = (beg);                          \
        mixed_error((enc1), (enc2));            \
        lex_p = pos;                            \
    } while (0)
#define nd_func   u1.id
#define nd_nest   u3.cnt
#define nd_paren ( node   )     (char)((node)->u2.id >> CHAR_BIT*2)
#define nd_term ( node   )     SIGN_EXTEND((node)->u2.id, CHAR_BIT*2)
#define new_args ( f,
o,
r,
p,
 )     new_args_gen(parser, (f),(o),(r),(p),(t))
#define new_args_tail ( k,
kr,
 )     new_args_tail_gen(parser, (k),(kr),(b))
#define new_attr_op_assign ( lhs,
type,
attr,
op,
rhs   )     new_attr_op_assign_gen(parser, (lhs), (attr), (op), (rhs))
#define new_bv ( id   )     new_bv_gen(parser, (id))
#define new_const_op_assign ( lhs,
op,
rhs   )     new_const_op_assign_gen(parser, (lhs), (op), (rhs))
#define new_defined ( expr   )     NEW_DEFINED(remove_begin_all(expr))
#define new_evstr (  )     new_evstr_gen(parser,(n))
#define new_op_assign ( lhs,
op,
rhs   )     new_op_assign_gen(parser, (lhs), (op), (rhs))
#define NEW_STRTERM ( func,
term,
paren   )     rb_node_newnode(NODE_STRTERM, (func), (term) | ((paren) << (CHAR_BIT * 2)), 0)

Definition at line 14844 of file ripper.y.

#define new_yield ( node   )     new_yield_gen(parser, (node))
 
#define NEWHEAP (  )     rb_node_newnode(NODE_ALLOCA, 0, (VALUE)parser->heap, 0)

Definition at line 19760 of file ripper.y.

 
#define newtok (  )     parser_newtok(parser)

Definition at line 13708 of file ripper.y.

 
#define nextc (  )     parser_nextc(parser)

Definition at line 13706 of file ripper.y.

 
#define no_digits (  )     do {yyerror("numeric literal without digits"); return 0;} while (0)
#define node_assign ( node1,
node2   )     node_assign_gen(parser, (node1), (node2))
#define NODE_HEREDOC   NODE_ARRAY
#define NODE_STRTERM   NODE_ZARRAY
#define NUM_SUFFIX_ALL   3

Definition at line 15090 of file ripper.y.

#define NUM_SUFFIX_I   (1<<1)

Definition at line 15089 of file ripper.y.

#define NUM_SUFFIX_R   (1<<0)

Definition at line 15088 of file ripper.y.

#define number_literal_suffix (  )     parser_number_literal_suffix(parser, (f))

Definition at line 13722 of file ripper.y.

#define op_tbl_count   numberof(op_tbl)

Definition at line 18809 of file ripper.y.

#define paren_nest   (parser->parser_paren_nest)
#define parse_string (  )     parser_parse_string(parser,(n))

Definition at line 13716 of file ripper.y.

#define PARSER_ARG   ruby_sourcefile, ruby_sourceline, current_enc,
 
#define parser_encoding_name (  )     (current_enc->name)

Definition at line 13817 of file ripper.y.

 
#define parser_is_identchar (  )     (!parser->eofp && is_identchar((lex_p-1),lex_pend,current_enc))

Definition at line 13821 of file ripper.y.

 
#define parser_isascii (  )     ISASCII(*(lex_p-1))

Definition at line 13823 of file ripper.y.

 
#define parser_mbclen (  )     mbclen((lex_p-1),lex_pend,current_enc)

Definition at line 13818 of file ripper.y.

 
#define parser_precise_mbclen (  )     rb_enc_precise_mbclen((lex_p-1),lex_pend,current_enc)

Definition at line 13819 of file ripper.y.

#define parser_warn ( node,
mesg   )     parser_warn(parser, (node), (mesg))

Definition at line 17009 of file ripper.y.

#define parser_warning ( node,
mesg   )     parser_warning(parser, (node), (mesg))

Definition at line 17002 of file ripper.y.

#define peek (  )     peek_n((c), 0)

Definition at line 14255 of file ripper.y.

#define peek_n ( c,
 )     (lex_p+(n) < lex_pend && (c) == (unsigned char)lex_p[n])

Definition at line 14256 of file ripper.y.

#define POINTER_P ( val   )     ((VALUE)(val) & ~(VALUE)3)
#define pushback (  )     parser_pushback(parser, (c))

Definition at line 13707 of file ripper.y.

#define Qnone   0
#define rb_backref_error (  )     rb_backref_error_gen(parser,(n))
#define rb_compile_error   rb_compile_error_with_enc
#define rb_node_newnode ( type,
a1,
a2,
a3   )     node_newnode(parser, (type), (a1), (a2), (a3))
#define rb_warn0 ( fmt   )     rb_compile_warn(ruby_sourcefile, ruby_sourceline, (fmt))
#define rb_warn4S ( file,
line,
fmt,
 )     rb_compile_warn((file), (line), (fmt), (a))
#define rb_warnI ( fmt,
 )     rb_compile_warn(ruby_sourcefile, ruby_sourceline, (fmt), (a))
#define rb_warning0 ( fmt   )     rb_compile_warning(ruby_sourcefile, ruby_sourceline, (fmt))
#define rb_warningS ( fmt,
 )     rb_compile_warning(ruby_sourcefile, ruby_sourceline, (fmt), (a))
#define rb_warnS ( fmt,
 )     rb_compile_warn(ruby_sourcefile, ruby_sourceline, (fmt), (a))
#define RE_OPTION_ARG_ENCODING_NONE   32
#define RE_OPTION_ENCODING (  )     (((e)&0xff)<<RE_OPTION_ENCODING_SHIFT)
#define RE_OPTION_ENCODING_IDX (  )     (((o)>>RE_OPTION_ENCODING_SHIFT)&0xff)
#define RE_OPTION_ENCODING_NONE (  )     ((o)&RE_OPTION_ARG_ENCODING_NONE)
#define RE_OPTION_ENCODING_SHIFT   8
#define RE_OPTION_MASK   0xff
#define RE_OPTION_ONCE   (1<<16)
#define read_escape ( flags,
 )     parser_read_escape(parser, (flags), (e))

Definition at line 13712 of file ripper.y.

#define realloc   YYREALLOC
#define reduce_nodes (  )     reduce_nodes_gen(parser,(n))
#define reg_compile ( str,
options   )     reg_compile_gen(parser, (str), (options))
#define reg_fragment_check ( str,
options   )     reg_fragment_check_gen(parser, (str), (options))
#define reg_fragment_setenc ( str,
options   )     reg_fragment_setenc_gen(parser, (str), (options))
#define reg_named_capture_assign ( regexp,
match   )     reg_named_capture_assign_gen(parser,(regexp),(match))
#define REGISTER_SYMID ( id,
name   )     register_symid((id), (name), strlen(name), enc)
 
#define regx_options (  )     parser_regx_options(parser)

Definition at line 13714 of file ripper.y.

#define ret_args ( node   )     ret_args_gen(parser, (node))
#define ripper_flush (  )     (void)(p)

Definition at line 13750 of file ripper.y.

#define ruby__end__seen   (parser->parser_ruby__end__seen)
#define ruby_coverage   (parser->coverage)
#define ruby_debug_lines   (parser->debug_lines)
#define ruby_eval_tree   (parser->parser_eval_tree)
#define ruby_eval_tree_begin   (parser->parser_eval_tree_begin)
#define ruby_sourcefile   (parser->parser_ruby_sourcefile)
#define ruby_sourcefile_string   (parser->parser_ruby_sourcefile_string)
#define ruby_sourceline   (parser->parser_ruby_sourceline)
#define set_integer_literal ( v,
 )     parser_set_integer_literal(parser, (v), (f))

Definition at line 13724 of file ripper.y.

#define set_number_literal ( v,
t,
 )     parser_set_number_literal(parser, (v), (t), (f))

Definition at line 13723 of file ripper.y.

#define set_yylval_id (  )     (yylval.id = (x))

Definition at line 13729 of file ripper.y.

#define set_yylval_literal (  )     (yylval.node = NEW_LIT(x))

Definition at line 13731 of file ripper.y.

#define set_yylval_name (  )     (yylval.id = (x))

Definition at line 13730 of file ripper.y.

#define set_yylval_node (  )     (yylval.node = (x))

Definition at line 13732 of file ripper.y.

#define set_yylval_num (  )     (yylval.num = (x))

Definition at line 13728 of file ripper.y.

#define set_yylval_str (  )     (yylval.node = NEW_STR(x))

Definition at line 13727 of file ripper.y.

#define shadowing_lvar ( name   )     shadowing_lvar_gen(parser, (name))
#define SIGN_EXTEND ( x,
 )     (((1<<(n)-1)^((x)&~(~0<<(n))))-(1<<(n)-1))
#define SIGN_EXTEND_CHAR (  )     ((((unsigned char)(c)) ^ 128) - 128)

Definition at line 13814 of file ripper.y.

#define SPECIAL_PUNCT ( idx   ) 
Value:
( \
        BIT('~', idx) | BIT('*', idx) | BIT('$', idx) | BIT('?', idx) | \
        BIT('!', idx) | BIT('@', idx) | BIT('/', idx) | BIT('\\', idx) | \
        BIT(';', idx) | BIT(',', idx) | BIT('.', idx) | BIT('=', idx) | \
        BIT(':', idx) | BIT('<', idx) | BIT('>', idx) | BIT('\"', idx) | \
        BIT('&', idx) | BIT('`', idx) | BIT('\'', idx) | BIT('+', idx) | \
        BIT('0', idx))

Definition at line 14871 of file ripper.y.

#define str_copy ( _s,
_p,
_n   ) 
Value:
((_s) \
        ? (void)(rb_str_resize((_s), (_n)), \
           MEMCPY(RSTRING_PTR(_s), (_p), char, (_n)), (_s)) \
        : (void)((_s) = STR_NEW((_p), (_n))))
#define STR_FUNC_ESCAPE   0x01

Definition at line 14218 of file ripper.y.

#define STR_FUNC_EXPAND   0x02

Definition at line 14219 of file ripper.y.

#define STR_FUNC_INDENT   0x20

Definition at line 14223 of file ripper.y.

#define STR_FUNC_QWORDS   0x08

Definition at line 14221 of file ripper.y.

#define STR_FUNC_REGEXP   0x04

Definition at line 14220 of file ripper.y.

#define STR_FUNC_SYMBOL   0x10

Definition at line 14222 of file ripper.y.

#define STR_NEW ( p,
 )     rb_enc_str_new((p),(n),current_enc)
 
#define STR_NEW0 (  )     rb_enc_str_new(0,0,current_enc)
#define STR_NEW2 (  )     rb_enc_str_new((p),strlen(p),current_enc)
#define STR_NEW3 ( p,
n,
e,
func   )     parser_str_new((p),(n),(e),(func),current_enc)
#define subnodes ( n1,
n2   ) 
Value:
((!node->n1) ? (node->n2 ? (body = &node->n2, 1) : 0) : \
     (!node->n2) ? (body = &node->n1, 1) : \
     (reduce_nodes(&node->n1), body = &node->n2, 1))
 
#define tok (  )     tokenbuf

Definition at line 14333 of file ripper.y.

#define tok_hex ( numlen   )     parser_tok_hex(parser, (numlen))

Definition at line 13711 of file ripper.y.

#define TOK_INTERN ( mb   )     rb_intern3(tok(), toklen(), current_enc)
#define tokadd (  )     parser_tokadd(parser, (c))

Definition at line 13710 of file ripper.y.

#define tokadd_escape (  )     parser_tokadd_escape(parser, (e))

Definition at line 13713 of file ripper.y.

#define tokadd_mbchar (  )     parser_tokadd_mbchar(parser, (c))

Definition at line 14695 of file ripper.y.

#define tokadd_string ( f,
t,
p,
n,
 )     parser_tokadd_string(parser,(f),(t),(p),(n),(e))

Definition at line 13715 of file ripper.y.

#define tokaddmbc ( c,
enc   )     parser_tokaddmbc(parser, (c), (enc))

Definition at line 13717 of file ripper.y.

#define tokcopy (  )     memcpy(tokspace(n), lex_p - (n), (n))

Definition at line 14389 of file ripper.y.

#define token_info_pop ( token   )     (RTEST(ruby_verbose) ? token_info_pop(parser, (token)) : (void)0)
#define token_info_push ( token   )     (RTEST(ruby_verbose) ? token_info_push(parser, (token)) : (void)0)
#define tokenbuf   (parser->parser_tokenbuf)
 
#define tokfix (  )     (tokenbuf[tokidx]='\0')

Definition at line 14332 of file ripper.y.

#define tokidx   (parser->parser_tokidx)
 
#define toklast (  )     (tokidx>0?tokenbuf[tokidx-1]:0)

Definition at line 14335 of file ripper.y.

 
#define toklen (  )     tokidx

Definition at line 14334 of file ripper.y.

#define tokline   (parser->parser_tokline)
#define toksiz   (parser->parser_toksiz)
#define tokspace (  )     parser_tokspace(parser, (n))

Definition at line 13709 of file ripper.y.

#define value_expr ( node   )     value_expr_gen(parser, (node) = remove_begin(node))
#define void_expr ( node   )     void_expr0((node) = remove_begin(node))
#define void_expr0 ( node   )     void_expr_gen(parser, (node))
#define void_stmts ( node   )     void_stmts_gen(parser, (node))
#define VTBL_DEBUG   0
#define warn_balanced ( op,
syn   ) 
Value:
((void) \
    (!IS_lex_state_for(last_state, EXPR_CLASS|EXPR_DOT|EXPR_FNAME|EXPR_ENDFN|EXPR_ENDARG) && \
     space_seen && !ISSPACE(c) && \
     (ambiguous_operator(op, syn), 0)))

Definition at line 15614 of file ripper.y.

 
#define was_bol (  )     (lex_p == lex_pbeg + 1)

Definition at line 14330 of file ripper.y.

#define whole_match_p ( e,
l,
 )     parser_whole_match_p(parser,(e),(l),(i))

Definition at line 13721 of file ripper.y.

#define YYCALLOC ( nelem,
size   )     rb_parser_calloc(parser, (nelem), (size))
#define yydebug   (parser->parser_yydebug)
#define YYDEBUG   1
#define yyerror ( msg   )     parser_yyerror(parser, (msg))
#define YYERROR_VERBOSE   1
#define YYFREE ( ptr   )     rb_parser_free(parser, (ptr))
#define yylval   (*((YYSTYPE*)(parser->parser_yylval)))

Definition at line 13697 of file ripper.y.

 
#define yylval_id (  )     (yylval.id)

Definition at line 13733 of file ripper.y.

#define YYMALLOC ( size   )     rb_parser_malloc(parser, (size))
#define yyparse   ruby_yyparse
#define YYREALLOC ( ptr,
size   )     rb_parser_realloc(parser, (ptr), (size))
#define YYSTACK_USE_ALLOCA   0

Typedef Documentation

typedef long(* rb_magic_comment_length_t)(struct parser_params *parser, const char *name, long len)

Definition at line 15357 of file ripper.y.

typedef void(* rb_magic_comment_setter_t)(struct parser_params *parser, const char *name, const char *val)

Definition at line 15358 of file ripper.y.


Enumeration Type Documentation

Enumerator:
str_squote 
str_dquote 
str_xquote 
str_regexp 
str_sword 
str_dword 
str_ssym 
str_dsym 
str_squote 
str_dquote 
str_xquote 
str_regexp 
str_sword 
str_dword 
str_ssym 
str_dsym 
str_squote 
str_dquote 
str_xquote 
str_regexp 
str_sword 
str_dword 
str_ssym 
str_dsym 
str_squote 
str_dquote 
str_xquote 
str_regexp 
str_sword 
str_dword 
str_ssym 
str_dsym 

Definition at line 14225 of file ripper.y.


Function Documentation

static void arg_ambiguous_gen ( struct parser_params parser  )  [static]

Definition at line 15264 of file ripper.y.

static NODE* arg_append_gen ( struct parser_params parser,
NODE *  node1,
NODE *  node2 
) [static]

Definition at line 17597 of file ripper.y.

static NODE* arg_blk_pass ( NODE *  node1,
NODE *  node2 
) [static]

Definition at line 18169 of file ripper.y.

static NODE* arg_concat_gen ( struct parser_params parser,
NODE *  node1,
NODE *  node2 
) [static]

Definition at line 17572 of file ripper.y.

primary arg_new (  ) 
Type Constraints

Referenced by yyparse().

static int arg_var_gen ( struct parser_params parser,
ID  id 
) [static]

Definition at line 18417 of file ripper.y.

static NODE* aryset_gen ( struct parser_params parser,
NODE *  recv,
NODE *  idx 
) [static]

Definition at line 17495 of file ripper.y.

static int assign_in_cond ( struct parser_params parser,
NODE *  node 
) [static]

Definition at line 17919 of file ripper.y.

static NODE* assignable_gen ( struct parser_params parser,
ID  id,
NODE *  val 
) [static]

Definition at line 17357 of file ripper.y.

static NODE* attrset_gen ( struct parser_params parser,
NODE *  recv,
ID  id 
) [static]

Definition at line 17551 of file ripper.y.

static NODE* block_append_gen ( struct parser_params parser,
NODE *  head,
NODE *  tail 
) [static]

Definition at line 17012 of file ripper.y.

static void block_dup_check_gen ( struct parser_params parser,
NODE *  node1,
NODE *  node2 
) [static]

Definition at line 17503 of file ripper.y.

static NODE* call_bin_op_gen ( struct parser_params parser,
NODE *  recv,
ID  id,
NODE *  arg1 
) [static]

Definition at line 17231 of file ripper.y.

static NODE* call_uni_op_gen ( struct parser_params parser,
NODE *  recv,
ID  id 
) [static]

Definition at line 17239 of file ripper.y.

CMDARG_PUSH (  ) 
static int comment_at_top ( struct parser_params parser  )  [static]

Definition at line 15345 of file ripper.y.

static NODE * cond0 ( struct parser_params parser,
NODE *  node 
) [static]

Definition at line 18026 of file ripper.y.

static NODE* cond_gen ( struct parser_params parser,
NODE *  node 
) [static]

Definition at line 18083 of file ripper.y.

static VALUE coverage ( VALUE  fname,
int  n 
) [static]

Definition at line 13981 of file ripper.y.

static VALUE debug_lines ( VALUE  fname  )  [static]

Definition at line 13965 of file ripper.y.

stmts dispatch0 ( void_stmt   ) 
stmts dispatch0 ( stmts_new   ) 
Type Constraints

Referenced by arg_ambiguous_gen(), and yyparse().

static void dispose_string ( VALUE  str  )  [static]

Definition at line 14675 of file ripper.y.

static NODE* dsym_node_gen ( struct parser_params parser,
NODE *  node 
) [static]

Definition at line 18232 of file ripper.y.

static int dvar_curr_gen ( struct parser_params parser,
ID  id 
) [static]

Definition at line 18542 of file ripper.y.

static int dvar_defined_gen ( struct parser_params parser,
ID  id,
int  get 
) [static]

Definition at line 18511 of file ripper.y.

static int dyna_in_block_gen ( struct parser_params parser  )  [static]

Definition at line 18505 of file ripper.y.

static void dyna_pop_1 ( struct parser_params parser  )  [static]

Definition at line 18473 of file ripper.y.

static void dyna_pop_gen ( struct parser_params parser,
const struct vtable lvargs 
) [static]

Definition at line 18491 of file ripper.y.

static struct vtable* dyna_push_gen ( struct parser_params parser  )  [static, read]

Definition at line 18462 of file ripper.y.

static int e_option_supplied ( struct parser_params parser  )  [static]

Definition at line 13997 of file ripper.y.

opt_rescue escape_Qundef ( 1  ) 
Type Constraints

Referenced by yyparse().

static NODE* evstr2dstr_gen ( struct parser_params parser,
NODE *  node 
) [static]

Definition at line 17208 of file ripper.y.

static void fixpos ( NODE *  node,
NODE *  orig 
) [static]

Definition at line 16989 of file ripper.y.

static void fixup_nodes ( NODE **  rootnode  )  [static]

Definition at line 17958 of file ripper.y.

static ID formal_argument_gen ( struct parser_params parser,
ID  lhs 
) [static]

Definition at line 15275 of file ripper.y.

static NODE* gettable_gen ( struct parser_params parser,
ID  id 
) [static]

Definition at line 17280 of file ripper.y.

void Init_sym ( void   ) 

Definition at line 18860 of file ripper.y.

static ID intern_str ( VALUE  str  )  [static]

Definition at line 19124 of file ripper.y.

static ID internal_id_gen ( struct parser_params parser  )  [static]

Definition at line 18892 of file ripper.y.

static int is_global_name_punct ( const int  c  )  [inline, static]

Definition at line 14888 of file ripper.y.

static int is_private_local_id ( ID  name  )  [static]

Definition at line 17436 of file ripper.y.

static int is_special_global_name ( const char *  m,
const char *  e,
rb_encoding *  enc 
) [static]

Definition at line 18901 of file ripper.y.

static int is_static_content ( NODE *  node  )  [static]

Definition at line 17895 of file ripper.y.

static VALUE lex_get_str ( struct parser_params parser,
VALUE  s 
) [static]

Definition at line 14084 of file ripper.y.

static VALUE lex_getline ( struct parser_params parser  )  [static]

Definition at line 14104 of file ripper.y.

static VALUE lex_io_gets ( struct parser_params parser,
VALUE  io 
) [static]

Definition at line 14180 of file ripper.y.

static NODE* list_append_gen ( struct parser_params parser,
NODE *  list,
NODE *  item 
) [static]

Definition at line 17066 of file ripper.y.

static NODE* list_concat_gen ( struct parser_params parser,
NODE *  head,
NODE *  tail 
) [static]

Definition at line 17086 of file ripper.y.

static int literal_concat0 ( struct parser_params parser,
VALUE  head,
VALUE  tail 
) [static]

Definition at line 17110 of file ripper.y.

static NODE* literal_concat_gen ( struct parser_params parser,
NODE *  head,
NODE *  tail 
) [static]

Definition at line 17127 of file ripper.y.

static int literal_node ( NODE *  node  )  [static]

Definition at line 18005 of file ripper.y.

static int local_id_gen ( struct parser_params parser,
ID  id 
) [static]

Definition at line 18434 of file ripper.y.

static void local_pop_gen ( struct parser_params parser  )  [static]

Definition at line 18376 of file ripper.y.

static void local_push_gen ( struct parser_params parser,
int  inherit_dvars 
) [static]

Definition at line 18359 of file ripper.y.

static ID* local_tbl_gen ( struct parser_params parser  )  [static]

Definition at line 18392 of file ripper.y.

static int local_var_gen ( struct parser_params parser,
ID  id 
) [static]

Definition at line 18424 of file ripper.y.

static NODE* logop_gen ( struct parser_params parser,
enum node_type  type,
NODE *  left,
NODE *  right 
) [static]

Definition at line 18090 of file ripper.y.

static int lvar_defined_gen ( struct parser_params parser,
ID  id 
) [static]

Definition at line 15286 of file ripper.y.

static void magic_comment_encoding ( struct parser_params parser,
const char *  name,
const char *  val 
) [static]

Definition at line 15361 of file ripper.y.

static const char* magic_comment_marker ( const char *  str,
long  len 
) [static]

Definition at line 15405 of file ripper.y.

static NODE* match_op_gen ( struct parser_params parser,
NODE *  node1,
NODE *  node2 
) [static]

Definition at line 17246 of file ripper.y.

static rb_encoding* must_be_ascii_compatible ( VALUE  s  )  [static]

Definition at line 14074 of file ripper.y.

static NODE* negate_lit ( NODE *  node  )  [static]

Definition at line 18138 of file ripper.y.

static NODE* new_args_gen ( struct parser_params parser,
NODE *  m,
NODE *  o,
ID  r,
NODE *  p,
NODE *  tail 
) [static]

Definition at line 18180 of file ripper.y.

static NODE* new_args_tail_gen ( struct parser_params parser,
NODE *  k,
ID  kr,
ID  b 
) [static]

Definition at line 18202 of file ripper.y.

static NODE* new_attr_op_assign_gen ( struct parser_params parser,
NODE *  lhs,
ID  attr,
ID  op,
NODE *  rhs 
) [static]

Definition at line 18288 of file ripper.y.

static void new_bv_gen ( struct parser_params parser,
ID  name 
) [static]

Definition at line 17481 of file ripper.y.

static NODE* new_const_op_assign_gen ( struct parser_params parser,
NODE *  lhs,
ID  op,
NODE *  rhs 
) [static]

Definition at line 18304 of file ripper.y.

static NODE* new_evstr_gen ( struct parser_params parser,
NODE *  node 
) [static]

Definition at line 17217 of file ripper.y.

static NODE* new_op_assign_gen ( struct parser_params parser,
NODE *  lhs,
ID  op,
NODE *  rhs 
) [static]

Definition at line 18259 of file ripper.y.

static NODE* new_yield_gen ( struct parser_params parser,
NODE *  node 
) [static]

Definition at line 18130 of file ripper.y.

static NODE* newline_node ( NODE *  node  )  [static]

Definition at line 16979 of file ripper.y.

static void no_blockarg ( struct parser_params parser,
NODE *  node 
) [static]

Definition at line 18105 of file ripper.y.

static NODE* node_assign_gen ( struct parser_params parser,
NODE *  lhs,
NODE *  rhs 
) [static]

Definition at line 17623 of file ripper.y.

static NODE* node_newnode ( struct parser_params parser,
enum node_type  type,
VALUE  a0,
VALUE  a1,
VALUE  a2 
) [static]

Definition at line 16959 of file ripper.y.

static int nodeline ( NODE *  node  )  [static]

Definition at line 16973 of file ripper.y.

static enum node_type nodetype ( NODE *  node  )  [static]

Definition at line 16967 of file ripper.y.

static int parse_numvar ( struct parser_params parser  )  [static]

Definition at line 15620 of file ripper.y.

static NODE* parser_compile_string ( volatile VALUE  vparser,
VALUE  fname,
VALUE  s,
int  line 
) [static]

Definition at line 14127 of file ripper.y.

static long parser_encode_length ( struct parser_params parser,
const char *  name,
long  len 
) [static]

Definition at line 15293 of file ripper.y.

static void parser_free ( void *  ptr  )  [static]

Definition at line 19623 of file ripper.y.

static int parser_here_document ( struct parser_params parser,
NODE *  here 
) [static]

Definition at line 15159 of file ripper.y.

static int parser_heredoc_identifier ( struct parser_params parser  )  [static]

Definition at line 14989 of file ripper.y.

static void parser_heredoc_restore ( struct parser_params parser,
NODE *  here 
) [static]

Definition at line 15052 of file ripper.y.

static void parser_initialize ( struct parser_params parser  )  [static]

Definition at line 19543 of file ripper.y.

static int parser_magic_comment ( struct parser_params parser,
const char *  str,
long  len 
) [static]

Definition at line 15438 of file ripper.y.

static void parser_mark ( void *  ptr  )  [static]

Definition at line 19597 of file ripper.y.

static size_t parser_memsize ( const void *  ptr  )  [static]

Definition at line 19640 of file ripper.y.

static struct parser_params* parser_new ( void   )  [static, read]

Definition at line 19679 of file ripper.y.

static char* parser_newtok ( struct parser_params parser  )  [static]

Definition at line 14338 of file ripper.y.

static int parser_nextc ( struct parser_params parser  )  [inline, static]

Definition at line 14259 of file ripper.y.

static int parser_number_literal_suffix ( struct parser_params parser,
int  mask 
) [static]

Definition at line 15093 of file ripper.y.

static int parser_parse_string ( struct parser_params parser,
NODE *  quote 
) [static]

Definition at line 14931 of file ripper.y.

static int parser_peek_variable_name ( struct parser_params parser  )  [static]

Definition at line 14895 of file ripper.y.

static void parser_prepare ( struct parser_params parser  )  [static]

Definition at line 15575 of file ripper.y.

static void parser_pushback ( struct parser_params parser,
int  c 
) [static]

Definition at line 14321 of file ripper.y.

static int parser_read_escape ( struct parser_params parser,
int  flags,
rb_encoding **  encp 
) [static]

Definition at line 14468 of file ripper.y.

static int parser_regx_options ( struct parser_params parser  )  [static]

Definition at line 14639 of file ripper.y.

static void parser_set_encode ( struct parser_params parser,
const char *  name 
) [static]

Definition at line 15313 of file ripper.y.

static int parser_set_integer_literal ( struct parser_params parser,
VALUE  v,
int  suffix 
) [static]

Definition at line 15133 of file ripper.y.

static int parser_set_number_literal ( struct parser_params parser,
VALUE  v,
int  type,
int  suffix 
) [static]

Definition at line 15122 of file ripper.y.

static void parser_set_token_info ( struct parser_params parser,
const char *  name,
const char *  val 
) [static]

Definition at line 15370 of file ripper.y.

static VALUE parser_str_new ( const char *  p,
long  n,
rb_encoding *  enc,
int  func,
rb_encoding *  enc0 
) [static]

Definition at line 14237 of file ripper.y.

static int parser_tok_hex ( struct parser_params parser,
size_t *  numlen 
) [static]

Definition at line 14376 of file ripper.y.

static void parser_tokadd ( struct parser_params parser,
int  c 
) [static]

Definition at line 14366 of file ripper.y.

static int parser_tokadd_escape ( struct parser_params parser,
rb_encoding **  encp 
) [static]

Definition at line 14566 of file ripper.y.

static int parser_tokadd_mbchar ( struct parser_params parser,
int  c 
) [static]

Definition at line 14682 of file ripper.y.

static int parser_tokadd_string ( struct parser_params parser,
int  func,
int  term,
int  paren,
long *  nest,
rb_encoding **  encp 
) [static]

Definition at line 14711 of file ripper.y.

static int parser_tokadd_utf8 ( struct parser_params parser,
rb_encoding **  encp,
int  string_literal,
int  symbol_literal,
int  regexp_literal 
) [static]

Definition at line 14393 of file ripper.y.

static void parser_tokaddmbc ( struct parser_params parser,
int  c,
rb_encoding *  enc 
) [static]

Definition at line 14559 of file ripper.y.

static char* parser_tokspace ( struct parser_params parser,
int  n 
) [static]

Definition at line 14354 of file ripper.y.

static void parser_warn ( struct parser_params parser,
NODE *  node,
const char *  mesg 
) [static]

Definition at line 17005 of file ripper.y.

static void parser_warning ( struct parser_params parser,
NODE *  node,
const char *  mesg 
) [static]

Definition at line 16998 of file ripper.y.

static int parser_whole_match_p ( struct parser_params parser,
const char *  eos,
long  len,
int  indent 
) [static]

Definition at line 15070 of file ripper.y.

static int parser_yyerror ( struct parser_params parser,
const char *  msg 
) [static]

Definition at line 13900 of file ripper.y.

static int parser_yylex ( struct parser_params parser  )  [static]

Definition at line 15641 of file ripper.y.

static NODE* range_op ( struct parser_params parser,
NODE *  node 
) [static]

Definition at line 17989 of file ripper.y.

static void rb_backref_error_gen ( struct parser_params parser,
NODE *  node 
) [static]

Definition at line 17559 of file ripper.y.

ID rb_check_id ( volatile VALUE *  namep  ) 

Returns ID for the given name if it is interned already, or 0.

Parameters:
namep the pointer to the name object
Returns:
the ID for *namep
Precondition:
the object referred by namep must be a Symbol or a String, or possible to convert with to_str method.
Postcondition:
the object referred by namep is a Symbol or a String if non-zero value is returned, or is a String if 0 is returned.

Definition at line 19424 of file ripper.y.

ID rb_check_id_cstr ( const char *  ptr,
long  len,
rb_encoding *  enc 
)

Definition at line 19466 of file ripper.y.

NODE* rb_compile_cstr ( const char *  f,
const char *  s,
int  len,
int  line 
)

Definition at line 14166 of file ripper.y.

NODE* rb_compile_file ( const char *  f,
VALUE  file,
int  start 
)

Definition at line 14186 of file ripper.y.

NODE* rb_compile_string ( const char *  f,
VALUE  s,
int  line 
)

Definition at line 14146 of file ripper.y.

int rb_enc_symname2_p ( const char *  name,
long  len,
rb_encoding *  enc 
)

Definition at line 19038 of file ripper.y.

int rb_enc_symname_p ( const char *  name,
rb_encoding *  enc 
)

Definition at line 18933 of file ripper.y.

static int rb_enc_symname_type ( const char *  name,
long  len,
rb_encoding *  enc,
unsigned int  allowed_attrset 
) [static]

Definition at line 18942 of file ripper.y.

void rb_gc_mark_parser ( void   ) 

Definition at line 18707 of file ripper.y.

void rb_gc_mark_symbols ( int  full_mark  ) 

Definition at line 18879 of file ripper.y.

const char* rb_id2name ( ID  id  ) 

Definition at line 19330 of file ripper.y.

VALUE rb_id2str ( ID  id  ) 

Definition at line 19260 of file ripper.y.

ID rb_id_attrset ( ID  id  ) 

Definition at line 17522 of file ripper.y.

ID rb_intern ( const char *  name  ) 

Definition at line 19244 of file ripper.y.

ID rb_intern2 ( const char *  name,
long  len 
)

Definition at line 19237 of file ripper.y.

ID rb_intern3 ( const char *  name,
long  len,
rb_encoding *  enc 
)

Definition at line 19108 of file ripper.y.

ID rb_intern_str ( VALUE  str  ) 

Definition at line 19250 of file ripper.y.

int rb_is_attrset_id ( ID  id  ) 

Definition at line 19395 of file ripper.y.

int rb_is_attrset_name ( VALUE  name  ) 

Definition at line 19513 of file ripper.y.

int rb_is_class_id ( ID  id  ) 

Definition at line 19377 of file ripper.y.

int rb_is_class_name ( VALUE  name  ) 

Definition at line 19495 of file ripper.y.

int rb_is_const_id ( ID  id  ) 

Definition at line 19371 of file ripper.y.

int rb_is_const_name ( VALUE  name  ) 

Definition at line 19489 of file ripper.y.

int rb_is_global_id ( ID  id  ) 

Definition at line 19383 of file ripper.y.

int rb_is_global_name ( VALUE  name  ) 

Definition at line 19501 of file ripper.y.

int rb_is_instance_id ( ID  id  ) 

Definition at line 19389 of file ripper.y.

int rb_is_instance_name ( VALUE  name  ) 

Definition at line 19507 of file ripper.y.

int rb_is_junk_id ( ID  id  ) 

Definition at line 19407 of file ripper.y.

int rb_is_junk_name ( VALUE  name  ) 

Definition at line 19535 of file ripper.y.

int rb_is_local_id ( ID  id  ) 

Definition at line 19401 of file ripper.y.

int rb_is_local_name ( VALUE  name  ) 

Definition at line 19519 of file ripper.y.

int rb_is_method_name ( VALUE  name  ) 

Definition at line 19525 of file ripper.y.

NODE* rb_parser_append_print ( VALUE  vparser,
NODE *  node 
)

Definition at line 18712 of file ripper.y.

void* rb_parser_calloc ( struct parser_params parser,
size_t  nelem,
size_t  size 
)

Definition at line 19775 of file ripper.y.

NODE* rb_parser_compile_cstr ( volatile VALUE  vparser,
const char *  f,
const char *  s,
int  len,
int  line 
)

Definition at line 14173 of file ripper.y.

NODE* rb_parser_compile_file ( volatile VALUE  vparser,
const char *  f,
VALUE  file,
int  start 
)

Definition at line 14194 of file ripper.y.

NODE* rb_parser_compile_file_path ( volatile VALUE  vparser,
VALUE  fname,
VALUE  file,
int  start 
)

Definition at line 14200 of file ripper.y.

NODE* rb_parser_compile_string ( volatile VALUE  vparser,
const char *  f,
VALUE  s,
int  line 
)

Definition at line 14153 of file ripper.y.

NODE* rb_parser_compile_string_path ( volatile VALUE  vparser,
VALUE  f,
VALUE  s,
int  line 
)

Definition at line 14159 of file ripper.y.

VALUE rb_parser_encoding ( VALUE  vparser  ) 

Definition at line 19719 of file ripper.y.

VALUE rb_parser_end_seen_p ( VALUE  vparser  ) 

Definition at line 19704 of file ripper.y.

void rb_parser_free ( struct parser_params parser,
void *  ptr 
)

Definition at line 19805 of file ripper.y.

VALUE rb_parser_get_yydebug ( VALUE  self  ) 

Definition at line 19734 of file ripper.y.

void* rb_parser_malloc ( struct parser_params parser,
size_t  size 
)

Definition at line 19765 of file ripper.y.

VALUE rb_parser_new ( void   ) 

Definition at line 19690 of file ripper.y.

void* rb_parser_realloc ( struct parser_params parser,
void *  ptr,
size_t  size 
)

Definition at line 19785 of file ripper.y.

VALUE rb_parser_set_yydebug ( VALUE  self,
VALUE  flag 
)

Definition at line 19749 of file ripper.y.

NODE* rb_parser_while_loop ( VALUE  vparser,
NODE *  node,
int  chop,
int  split 
)

Definition at line 18744 of file ripper.y.

struct kwtable* rb_reserved_word ( const char *  str,
unsigned int  len 
) [read]

Definition at line 19673 of file ripper.y.

static int rb_str_symname_type ( VALUE  name,
unsigned int  allowed_attrset 
) [static]

Definition at line 19044 of file ripper.y.

VALUE rb_sym_all_symbols ( void   ) 

Definition at line 19362 of file ripper.y.

int rb_symname_p ( const char *  name  ) 

Definition at line 18927 of file ripper.y.

static void reduce_nodes_gen ( struct parser_params parser,
NODE **  body 
) [static]

Definition at line 17834 of file ripper.y.

static VALUE reg_compile_gen ( struct parser_params parser,
VALUE  str,
int  options 
) [static]

Definition at line 18683 of file ripper.y.

static int reg_fragment_check_gen ( struct parser_params parser,
VALUE  str,
int  options 
) [static]

Definition at line 18589 of file ripper.y.

static void reg_fragment_setenc_gen ( struct parser_params parser,
VALUE  str,
int  options 
) [static]

Definition at line 18550 of file ripper.y.

static NODE* reg_named_capture_assign_gen ( struct parser_params parser,
VALUE  regexp,
NODE *  match 
) [static]

Definition at line 18651 of file ripper.y.

static int reg_named_capture_assign_iter ( const OnigUChar name,
const OnigUChar name_end,
int  back_num,
int *  back_refs,
OnigRegex  regex,
void *  arg0 
) [static]

Definition at line 18611 of file ripper.y.

static ID register_symid ( ID  id,
const char *  name,
long  len,
rb_encoding *  enc 
) [static]

Definition at line 19054 of file ripper.y.

static ID register_symid_str ( ID  id,
VALUE  str 
) [static]

Definition at line 19061 of file ripper.y.

static NODE* remove_begin ( NODE *  node  )  [static]

Definition at line 17814 of file ripper.y.

static NODE* remove_begin_all ( NODE *  node  )  [static]

Definition at line 17824 of file ripper.y.

static NODE* ret_args_gen ( struct parser_params parser,
NODE *  node 
) [static]

Definition at line 18113 of file ripper.y.

numeric ripper_intern ( "-@"   ) 
Type Constraints
expr ripper_intern ( "and"   ) 
Type Constraints

Referenced by yyparse().

static void set_file_encoding ( struct parser_params parser,
const char *  str,
const char *  send 
) [static]

Definition at line 15532 of file ripper.y.

static VALUE setup_fake_str ( struct RString *  fake_str,
const char *  name,
long  len 
) [static]

Definition at line 19097 of file ripper.y.

static int shadowing_lvar_0 ( struct parser_params parser,
ID  name 
) [static]

Definition at line 17449 of file ripper.y.

static ID shadowing_lvar_gen ( struct parser_params parser,
ID  name 
) [static]

Definition at line 17474 of file ripper.y.

static int simple_re_meta ( int  c  )  [inline, static]

Definition at line 14698 of file ripper.y.

static NODE* splat_array ( NODE *  node  )  [static]

Definition at line 17615 of file ripper.y.

static int sym_check_asciionly ( VALUE  str  )  [static]

Definition at line 19077 of file ripper.y.

static int symbols_i ( VALUE  sym,
ID  value,
VALUE  ary 
) [static]

Definition at line 19339 of file ripper.y.

static int token_info_get_column ( struct parser_params parser,
const char *  token 
) [static]

Definition at line 13827 of file ripper.y.

static int token_info_has_nonspaces ( struct parser_params parser,
const char *  token 
) [static]

Definition at line 13841 of file ripper.y.

static void token_info_pop ( struct parser_params parser,
const char *  token 
) [static]

Definition at line 13871 of file ripper.y.

static void token_info_push ( struct parser_params parser,
const char *  token 
) [static]

Definition at line 13854 of file ripper.y.

static int value_expr_gen ( struct parser_params parser,
NODE *  node 
) [static]

Definition at line 17654 of file ripper.y.

static void void_expr_gen ( struct parser_params parser,
NODE *  node 
) [static]

Definition at line 17711 of file ripper.y.

static void void_stmts_gen ( struct parser_params parser,
NODE *  node 
) [static]

Definition at line 17800 of file ripper.y.

static void warn_unless_e_option ( struct parser_params parser,
NODE *  node,
const char *  str 
) [static]

Definition at line 17946 of file ripper.y.

static void warn_unused_var ( struct parser_params parser,
struct local_vars local 
) [static]

Definition at line 18339 of file ripper.y.

static void warning_unless_e_option ( struct parser_params parser,
NODE *  node,
const char *  str 
) [static]

Definition at line 17952 of file ripper.y.

static NODE* yycompile ( struct parser_params parser,
VALUE  fname,
int  line 
) [static]

Definition at line 14064 of file ripper.y.

static VALUE yycompile0 ( VALUE  arg  )  [static]

Definition at line 14003 of file ripper.y.

static int yylex ( void *  lval,
void *  p 
) [static]

Definition at line 16932 of file ripper.y.


Variable Documentation

top_compstmt __pad0__

Definition at line 9550 of file ripper.y.

user_variable __pad100__

Definition at line 12990 of file ripper.y.

keyword_variable __pad101__

Definition at line 12992 of file ripper.y.

var_ref __pad102__

Definition at line 12999 of file ripper.y.

var_lhs __pad103__

Definition at line 12999 of file ripper.y.

backref __pad104__ = dispatch1(var_field, $$)

Definition at line 13029 of file ripper.y.

superclass __pad105__

Definition at line 13051 of file ripper.y.

args_tail __pad106__

Definition at line 13096 of file ripper.y.

opt_args_tail __pad107__

Definition at line 13096 of file ripper.y.

f_args __pad108__

Definition at line 13096 of file ripper.y.

f_bad_arg __pad109__

Definition at line 13096 of file ripper.y.

block_command __pad10__

Definition at line 9998 of file ripper.y.

f_norm_arg __pad110__

Definition at line 13096 of file ripper.y.

f_arg_item __pad111__ = $1

Definition at line 13231 of file ripper.y.

f_arg __pad112__ = get_value($1)

Definition at line 13241 of file ripper.y.

f_label __pad113__

Definition at line 13241 of file ripper.y.

f_kw __pad114__ = $1

Definition at line 13287 of file ripper.y.

f_block_kw __pad115__ = rb_assoc_new($$, $2)

Definition at line 13297 of file ripper.y.

f_block_kwarg __pad116__ = rb_assoc_new($$, $2)

Definition at line 13317 of file ripper.y.

Definition at line 13317 of file ripper.y.

kwrest_mark __pad118__

Definition at line 13317 of file ripper.y.

f_kwrest __pad119__

Definition at line 13386 of file ripper.y.

fcall __pad11__

Definition at line 10024 of file ripper.y.

f_opt __pad120__ = $2

Definition at line 13387 of file ripper.y.

f_block_opt __pad121__ = assignable($1, $3) rb_assoc_new($$, $3)

Definition at line 13402 of file ripper.y.

f_block_optarg __pad122__ = assignable($1, $3) rb_assoc_new($$, $3)

Definition at line 13414 of file ripper.y.

Definition at line 13414 of file ripper.y.

restarg_mark __pad124__

Definition at line 13414 of file ripper.y.

f_rest_arg __pad125__

Definition at line 13477 of file ripper.y.

blkarg_mark __pad126__ = dispatch1(rest_param, $2)

Definition at line 13481 of file ripper.y.

f_block_arg __pad127__

Definition at line 13507 of file ripper.y.

opt_f_block_arg __pad128__ = dispatch1(blockarg, $2)

Definition at line 13511 of file ripper.y.

singleton __pad129__

Definition at line 13511 of file ripper.y.

command __pad12__

Definition at line 10042 of file ripper.y.

assoc_list __pad130__

Definition at line 13567 of file ripper.y.

assoc __pad131__

Definition at line 13567 of file ripper.y.

operation __pad132__

Definition at line 13567 of file ripper.y.

operation2 __pad133__

Definition at line 13638 of file ripper.y.

operation3 __pad134__

Definition at line 13643 of file ripper.y.

dot_or_colon __pad135__

Definition at line 13648 of file ripper.y.

opt_terms __pad136__

Definition at line 13655 of file ripper.y.

Definition at line 13663 of file ripper.y.

rparen __pad138__

Definition at line 13666 of file ripper.y.

rbracket __pad139__

Definition at line 13669 of file ripper.y.

mlhs __pad13__

Definition at line 10042 of file ripper.y.

trailer __pad140__

Definition at line 13673 of file ripper.y.

terms __pad141__

Definition at line 13678 of file ripper.y.

Definition at line 13682 of file ripper.y.

mlhs_item __pad14__

Definition at line 10250 of file ripper.y.

Definition at line 10250 of file ripper.y.

mlhs_node __pad16__

Definition at line 10250 of file ripper.y.

Definition at line 10250 of file ripper.y.

cname __pad18__ = dispatch1(var_field, $$)

Definition at line 10379 of file ripper.y.

cpath __pad19__

Definition at line 10476 of file ripper.y.

top_stmts __pad1__

Definition at line 9561 of file ripper.y.

fname __pad20__

Definition at line 10476 of file ripper.y.

fsym __pad21__ = $1

Definition at line 10503 of file ripper.y.

fitem __pad22__

Definition at line 10525 of file ripper.y.

Definition at line 10536 of file ripper.y.

Definition at line 10536 of file ripper.y.

reswords __pad25__

Definition at line 10579 of file ripper.y.

arg __pad26__

Definition at line 10601 of file ripper.y.

arg_value __pad27__

Definition at line 10990 of file ripper.y.

aref_args __pad28__

Definition at line 10993 of file ripper.y.

paren_args __pad29__

Definition at line 11000 of file ripper.y.

top_stmt __pad2__

Definition at line 9592 of file ripper.y.

opt_paren_args __pad30__

Definition at line 11026 of file ripper.y.

opt_call_args __pad31__

Definition at line 11034 of file ripper.y.

call_args __pad32__

Definition at line 11034 of file ripper.y.

command_args __pad33__

Definition at line 11034 of file ripper.y.

block_arg __pad34__

Definition at line 11111 of file ripper.y.

opt_block_arg __pad35__

Definition at line 11121 of file ripper.y.

Definition at line 11121 of file ripper.y.

mrhs_arg __pad37__

Definition at line 11121 of file ripper.y.

mrhs __pad38__

Definition at line 11183 of file ripper.y.

primary __pad39__

Definition at line 11183 of file ripper.y.

compstmt __pad3__

Definition at line 9647 of file ripper.y.

primary_value __pad40__

Definition at line 11691 of file ripper.y.

k_begin __pad41__

Definition at line 11703 of file ripper.y.

k_if __pad42__

Definition at line 11709 of file ripper.y.

k_unless __pad43__

Definition at line 11715 of file ripper.y.

k_while __pad44__

Definition at line 11721 of file ripper.y.

k_until __pad45__

Definition at line 11727 of file ripper.y.

k_case __pad46__

Definition at line 11733 of file ripper.y.

k_for __pad47__

Definition at line 11739 of file ripper.y.

k_class __pad48__

Definition at line 11745 of file ripper.y.

k_module __pad49__

Definition at line 11751 of file ripper.y.

stmts __pad4__

Definition at line 9658 of file ripper.y.

k_def __pad50__

Definition at line 11757 of file ripper.y.

Definition at line 11767 of file ripper.y.

then __pad52__

Definition at line 11773 of file ripper.y.

Definition at line 11786 of file ripper.y.

if_tail __pad54__

Definition at line 11805 of file ripper.y.

opt_else __pad55__

Definition at line 11808 of file ripper.y.

f_marg __pad56__

Definition at line 11827 of file ripper.y.

f_marg_list __pad57__ = dispatch1(mlhs_paren, $$)

Definition at line 11830 of file ripper.y.

f_margs __pad58__

Definition at line 11830 of file ripper.y.

block_args_tail __pad59__

Definition at line 11869 of file ripper.y.

stmt_or_begin __pad5__

Definition at line 9689 of file ripper.y.

opt_block_args_tail __pad60__

Definition at line 11869 of file ripper.y.

block_param __pad61__

Definition at line 11869 of file ripper.y.

opt_block_param __pad62__

Definition at line 11869 of file ripper.y.

block_param_def __pad63__

Definition at line 12042 of file ripper.y.

opt_bv_decl __pad64__

Definition at line 12070 of file ripper.y.

Definition at line 12085 of file ripper.y.

Definition at line 12085 of file ripper.y.

lambda __pad67__ = get_value($1)

Definition at line 12108 of file ripper.y.

f_larglist __pad68__

Definition at line 12145 of file ripper.y.

lambda_body __pad69__

Definition at line 12145 of file ripper.y.

command_asgn __pad6__

Definition at line 9917 of file ripper.y.

do_block __pad70__

Definition at line 12169 of file ripper.y.

block_call __pad71__

Definition at line 12190 of file ripper.y.

method_call __pad72__

Definition at line 12190 of file ripper.y.

brace_block __pad73__

Definition at line 12190 of file ripper.y.

case_body __pad74__

Definition at line 12394 of file ripper.y.

Definition at line 12406 of file ripper.y.

opt_rescue __pad76__

Definition at line 12424 of file ripper.y.

exc_list __pad77__

Definition at line 12439 of file ripper.y.

exc_var __pad78__

Definition at line 12439 of file ripper.y.

opt_ensure __pad79__

Definition at line 12465 of file ripper.y.

expr __pad7__

Definition at line 9946 of file ripper.y.

literal __pad80__

Definition at line 12477 of file ripper.y.

strings __pad81__

Definition at line 12495 of file ripper.y.

string __pad82__

Definition at line 12498 of file ripper.y.

word_list __pad83__ = dispatch1(array, $$)

Definition at line 12620 of file ripper.y.

word __pad84__

Definition at line 12649 of file ripper.y.

symbols __pad85__ = dispatch2(word_add, $$, $1)

Definition at line 12656 of file ripper.y.

symbol_list __pad86__ = dispatch1(array, $$)

Definition at line 12675 of file ripper.y.

qwords __pad87__

Definition at line 12712 of file ripper.y.

qsymbols __pad88__ = dispatch1(array, $$)

Definition at line 12720 of file ripper.y.

qword_list __pad89__ = dispatch1(array, $$)

Definition at line 12739 of file ripper.y.

expr_value __pad8__

Definition at line 9946 of file ripper.y.

qsym_list __pad90__

Definition at line 12768 of file ripper.y.

string_contents __pad91__

Definition at line 12790 of file ripper.y.

xstring_contents __pad92__

Definition at line 12808 of file ripper.y.

regexp_contents __pad93__

Definition at line 12826 of file ripper.y.

string_content __pad94__

Definition at line 12863 of file ripper.y.

string_dvar __pad95__

Definition at line 12911 of file ripper.y.

symbol __pad96__

Definition at line 12911 of file ripper.y.

sym __pad97__ = dispatch1(symbol, $2)

Definition at line 12946 of file ripper.y.

Definition at line 12959 of file ripper.y.

numeric __pad99__ = dispatch1(dyna_symbol, $2)

Definition at line 12963 of file ripper.y.

command_call __pad9__

Definition at line 9986 of file ripper.y.

Definition at line 11000 of file ripper.y.

Referenced by ary_join_1(), assoc_i(), autoload_const_set(), basic_obj_respond_to(), bind_eval(), check_exec_options_i_extract(), check_funcall_respond_to(), chown_internal(), console_dev(), copy_stream_body(), create_ip_exc(), date_strftime_with_tmx(), drop_i(), drop_while_i(), dvar_defined_gen(), each_cons_i(), enc_names(), enum_zip(), enumerator_each(), gc_mark_children(), generator_each(), glob_func_caller(), grep_i(), grep_iter_i(), hash2kv(), hash2kv_enc(), initialize(), inject_op_i(), int_ossl_asn1_decode0_cons(), int_ossl_asn1_decode0_prim(), interrupt_init(), ip_ruby_cmd(), iseq_compile_each(), iseq_data_to_ary(), iseq_load(), iseq_set_arguments(), key_i(), lazy_drop_func(), lazy_init_iterator(), lazy_take_func(), lib_eventloop_launcher(), local_id_gen(), lookup2_call(), make_curry_proc(), make_no_method_exception(), mark(), max_by_i(), max_i(), max_ii(), member_i(), min_by_i(), min_i(), min_ii(), name_err_mesg_to_str(), new_args_gen(), new_args_tail_gen(), next_ii(), nometh_err_initialize(), obj_respond_to(), objspace_each_objects(), onig_snprintf_with_pattern(), onig_syntax_warn(), open_key_args(), ossl_debug(), ossl_exc_new(), ossl_raise(), ossl_tmp_dh_callback(), ossl_x509name_init_i(), ossl_x509name_initialize(), parse(), path_binread(), path_binwrite(), path_each_entry(), path_each_line(), path_open(), path_opendir(), path_read(), path_readlines(), path_s_glob(), path_sysopen(), path_write(), pipe_open(), process_sflag(), protected_alias(), protected_end_document(), protected_scalar(), protected_start_document(), protected_start_mapping(), protected_start_sequence(), protected_start_stream(), range_each(), range_init(), range_step(), rassoc_i(), rb_autoload_load(), rb_bug(), rb_compile_bug(), rb_compile_error(), rb_compile_error_append(), rb_compile_error_with_enc(), rb_compile_warn(), rb_compile_warning(), rb_deflate_s_deflate(), rb_enc_raise(), rb_execarg_extract_options(), rb_exit(), rb_f_abort(), rb_fatal(), rb_fiber_start(), rb_glob_caller(), rb_hash_assoc(), rb_hash_key(), rb_hash_rassoc(), rb_inflate_s_inflate(), rb_io_s_pipe(), rb_iseq_parameters(), rb_loaderror(), rb_loaderror_with_path(), rb_name_error(), rb_name_error_str(), rb_obj_respond_to(), rb_proc_exec_n(), rb_raise(), rb_reg_s_union(), rb_rescue2(), rb_str_upto(), rb_strftime_with_timespec(), rb_struct_new(), rb_warn(), rb_warning(), rb_yield_values(), rgengc_report_body(), run_finalizer(), run_single_final(), take_i(), take_items(), warn_printf(), yyparse(), zip_ary(), zip_i(), zstream_run_func(), and zstream_unblock_func().

assoc_list assocs

Definition at line 13567 of file ripper.y.

top_stmt bodystmt

Definition at line 9592 of file ripper.y.

Referenced by yyparse().

Definition at line 12085 of file ripper.y.

block_command cmd_brace_block = method_arg($$, $4)

Definition at line 9999 of file ripper.y.

literal dsym

Definition at line 10525 of file ripper.y.

Definition at line 13241 of file ripper.y.

Referenced by nucomp_expt(), nucomp_polar(), and numeric_polar().

Definition at line 13317 of file ripper.y.

Definition at line 11869 of file ripper.y.

Definition at line 13317 of file ripper.y.

f_margs f_marg_list

Definition at line 11830 of file ripper.y.

Definition at line 13096 of file ripper.y.

opt_else for_var

Definition at line 11808 of file ripper.y.

struct symbols global_symbols [static]
const char id_type_names[][9] [static]
Initial value:
 {
    "LOCAL",
    "INSTANCE",
    "",                         
    "GLOBAL",
    "ATTRSET",
    "CONST",
    "CLASS",
    "JUNK",
}

Definition at line 17510 of file ripper.y.

keyword_do_cond

Definition at line 11794 of file ripper.y.

lex_state = EXPR_BEG

Definition at line 12870 of file ripper.y.

Definition at line 12869 of file ripper.y.

arg lhs
Initial value:
' command_asgn
                    {




                        $$ = dispatch2(assign, $1, $3);

                    }

Definition at line 9928 of file ripper.y.

struct magic_comment magic_comments[] [static]
Initial value:

Definition at line 15397 of file ripper.y.

mlhs mlhs_basic

Definition at line 10042 of file ripper.y.

mlhs_item mlhs_head

Definition at line 10250 of file ripper.y.

mlhs mlhs_inner

Definition at line 10042 of file ripper.y.

Definition at line 10250 of file ripper.y.

const char* name

Definition at line 18786 of file ripper.y.

opt_ensure none

Definition at line 12432 of file ripper.y.

Referenced by enum_none().

struct { ... } op_tbl[] [static]

Definition at line 12077 of file ripper.y.

static const rb_data_type_t parser_data_type [static]
Initial value:

Definition at line 14124 of file ripper.y.

<'{lex_state=EXPR_BEG;command_start=TRUE;}expr_valueterm{$$=$3;}|errorterm{yyerrok;$$=Qnil;};f_arglist:'('f_argsrparen{$$=dispatch1(paren,$2);lex_state=EXPR_BEG;command_start=TRUE;}|{$<num> parser parser_in_kwarg = parser->parser_in_kwarg 1

Definition at line 13087 of file ripper.y.

block_param_def Qnil

Definition at line 12042 of file ripper.y.

string regexp
const unsigned int ruby_global_name_punct_bits[]
Initial value:

Definition at line 14866 of file ripper.y.

numeric simple_numeric

Definition at line 12974 of file ripper.y.

string string1

Definition at line 12498 of file ripper.y.

struct st_hash_type symhash [static]
Initial value:

Definition at line 18827 of file ripper.y.

cname tCONSTANT

Definition at line 10379 of file ripper.y.

trailer term
ID token

Definition at line 18785 of file ripper.y.

Definition at line 10536 of file ripper.y.

string words

Definition at line 12498 of file ripper.y.

string xstring

Definition at line 12498 of file ripper.y.


Generated on 18 May 2020 for Ruby by  doxygen 1.6.1