Ruby
2.1.10p492(2016-04-01revision54464)
|
#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 | vtable |
struct | local_vars |
struct | token_info |
struct | parser_params |
union | yyalloc |
struct | magic_comment |
struct | reg_named_capture_assign_t |
struct | symbols |
Typedefs | |
typedef VALUE | stack_type |
typedef struct token_info | token_info |
typedef unsigned char | yytype_uint8 |
typedef short int | yytype_int8 |
typedef unsigned short int | yytype_uint16 |
typedef short int | yytype_int16 |
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 | lex_state_bits { EXPR_BEG_bit, EXPR_END_bit, EXPR_ENDARG_bit, EXPR_ENDFN_bit, EXPR_ARG_bit, EXPR_CMDARG_bit, EXPR_MID_bit, EXPR_FNAME_bit, EXPR_DOT_bit, EXPR_CLASS_bit, EXPR_VALUE_bit, EXPR_LABELARG_bit, EXPR_MAX_STATE, EXPR_BEG_bit, EXPR_END_bit, EXPR_ENDARG_bit, EXPR_ENDFN_bit, EXPR_ARG_bit, EXPR_CMDARG_bit, EXPR_MID_bit, EXPR_FNAME_bit, EXPR_DOT_bit, EXPR_CLASS_bit, EXPR_VALUE_bit, EXPR_LABELARG_bit, EXPR_MAX_STATE, EXPR_BEG_bit, EXPR_END_bit, EXPR_ENDARG_bit, EXPR_ENDFN_bit, EXPR_ARG_bit, EXPR_CMDARG_bit, EXPR_MID_bit, EXPR_FNAME_bit, EXPR_DOT_bit, EXPR_CLASS_bit, EXPR_VALUE_bit, EXPR_LABELARG_bit, EXPR_MAX_STATE, EXPR_BEG_bit, EXPR_END_bit, EXPR_ENDARG_bit, EXPR_ENDFN_bit, EXPR_ARG_bit, EXPR_CMDARG_bit, EXPR_MID_bit, EXPR_FNAME_bit, EXPR_DOT_bit, EXPR_CLASS_bit, EXPR_VALUE_bit, EXPR_LABELARG_bit, EXPR_MAX_STATE } |
enum | lex_state_e { DEF_EXPR =(BEG), DEF_EXPR =(BEG), DEF_EXPR =(BEG), DEF_EXPR =(BEG), DEF_EXPR =(BEG), DEF_EXPR =(BEG), DEF_EXPR =(BEG), DEF_EXPR =(BEG), DEF_EXPR =(BEG), DEF_EXPR =(BEG), DEF_EXPR =(BEG), DEF_EXPR =(BEG), DEF_EXPR =(BEG), EXPR_BEG_ANY = (EXPR_BEG | EXPR_VALUE | EXPR_MID | EXPR_CLASS | EXPR_LABELARG), EXPR_ARG_ANY = (EXPR_ARG | EXPR_CMDARG), EXPR_END_ANY = (EXPR_END | EXPR_ENDARG | EXPR_ENDFN), DEF_EXPR =(BEG), DEF_EXPR =(BEG), DEF_EXPR =(BEG), DEF_EXPR =(BEG), DEF_EXPR =(BEG), DEF_EXPR =(BEG), DEF_EXPR =(BEG), DEF_EXPR =(BEG), DEF_EXPR =(BEG), DEF_EXPR =(BEG), DEF_EXPR =(BEG), DEF_EXPR =(BEG), DEF_EXPR =(BEG), EXPR_BEG_ANY = (EXPR_BEG | EXPR_VALUE | EXPR_MID | EXPR_CLASS | EXPR_LABELARG), EXPR_ARG_ANY = (EXPR_ARG | EXPR_CMDARG), EXPR_END_ANY = (EXPR_END | EXPR_ENDARG | EXPR_ENDFN), DEF_EXPR =(BEG), DEF_EXPR =(BEG), DEF_EXPR =(BEG), DEF_EXPR =(BEG), DEF_EXPR =(BEG), DEF_EXPR =(BEG), DEF_EXPR =(BEG), DEF_EXPR =(BEG), DEF_EXPR =(BEG), DEF_EXPR =(BEG), DEF_EXPR =(BEG), DEF_EXPR =(BEG), DEF_EXPR =(BEG), EXPR_BEG_ANY = (EXPR_BEG | EXPR_VALUE | EXPR_MID | EXPR_CLASS | EXPR_LABELARG), EXPR_ARG_ANY = (EXPR_ARG | EXPR_CMDARG), EXPR_END_ANY = (EXPR_END | EXPR_ENDARG | EXPR_ENDFN), DEF_EXPR =(BEG), DEF_EXPR =(BEG), DEF_EXPR =(BEG), DEF_EXPR =(BEG), DEF_EXPR =(BEG), DEF_EXPR =(BEG), DEF_EXPR =(BEG), DEF_EXPR =(BEG), DEF_EXPR =(BEG), DEF_EXPR =(BEG), DEF_EXPR =(BEG), DEF_EXPR =(BEG), DEF_EXPR =(BEG), EXPR_BEG_ANY = (EXPR_BEG | EXPR_VALUE | EXPR_MID | EXPR_CLASS | EXPR_LABELARG), EXPR_ARG_ANY = (EXPR_ARG | EXPR_CMDARG), EXPR_END_ANY = (EXPR_END | EXPR_ENDARG | EXPR_ENDFN) } |
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) } |
Definition at line 17702 of file ripper.c.
Referenced by rb_parser_calloc(), rb_parser_malloc(), and rb_parser_realloc().
#define ambiguous_operator | ( | op, | |
syn | |||
) |
#define arg_ambiguous | ( | ) | (arg_ambiguous_gen(parser), 1) |
Definition at line 13213 of file ripper.c.
Referenced by arg_ambiguous_gen(), and parser_yylex().
#define arg_append | ( | h, | |
t | |||
) | arg_append_gen(parser,(h),(t)) |
Definition at line 455 of file ripper.c.
Referenced by arg_append_gen(), node_assign_gen(), and switch().
#define arg_concat | ( | h, | |
t | |||
) | arg_concat_gen(parser,(h),(t)) |
Definition at line 457 of file ripper.c.
Referenced by arg_concat_gen(), and switch().
#define arg_var | ( | id | ) | arg_var_gen(parser, (id)) |
Definition at line 566 of file ripper.c.
Referenced by new_args_tail_gen(), and switch().
#define aryset | ( | node1, | |
node2 | |||
) | aryset_gen(parser, (node1), (node2)) |
#define assignable | ( | id, | |
node | |||
) | assignable_gen(parser, (id), (node)) |
Definition at line 489 of file ripper.c.
Referenced by reg_named_capture_assign_iter(), and switch().
#define assignable_result | ( | x | ) | (x) |
Referenced by switch().
#define attrset | ( | node, | |
id | |||
) | attrset_gen(parser, (node), (id)) |
#define BITSTACK_LEXPOP | ( | stack | ) | ((stack) = ((stack) >> 1) | ((stack) & 1)) |
#define block_append | ( | h, | |
t | |||
) | block_append_gen(parser,(h),(t)) |
Definition at line 449 of file ripper.c.
Referenced by rb_parser_append_print(), rb_parser_while_loop(), reg_named_capture_assign_gen(), reg_named_capture_assign_iter(), and switch().
#define block_dup_check | ( | n1, | |
n2 | |||
) | block_dup_check_gen(parser,(n1),(n2)) |
#define brace_nest (parser->parser_brace_nest) |
Definition at line 378 of file ripper.c.
Referenced by parser_yylex(), and switch().
#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 |
Definition at line 98 of file ripper.c.
Referenced by compat_init_setproctitle(), objspace_xcalloc(), opendir_internal(), and rb_w32_cmdvector().
CMDARG_LEXPOP | ( | ) | BITSTACK_LEXPOP(cmdarg_stack) |
Definition at line 178 of file ripper.c.
Referenced by parser_yylex(), and switch().
#define CMDARG_P | ( | ) | BITSTACK_SET_P(cmdarg_stack) |
Definition at line 179 of file ripper.c.
Referenced by parser_yylex().
#define CMDARG_POP | ( | ) | BITSTACK_POP(cmdarg_stack) |
#define CMDARG_PUSH | ( | n | ) | BITSTACK_PUSH(cmdarg_stack, (n)) |
Definition at line 176 of file ripper.c.
Referenced by parser_yylex(), and switch().
#define cmdarg_stack (parser->parser_cmdarg_stack) |
Definition at line 374 of file ripper.c.
Referenced by local_pop_gen(), local_push_gen(), and switch().
#define command_start (parser->parser_command_start) |
Definition at line 395 of file ripper.c.
Referenced by parser_peek_variable_name(), parser_yylex(), and switch().
#define compile_error parser->nerr++,rb_compile_error_with_enc |
Definition at line 729 of file ripper.c.
Referenced by block_dup_check_gen(), gettable_gen(), literal_concat0(), new_bv_gen(), no_blockarg(), parser_here_document(), parser_heredoc_identifier(), parser_parse_string(), parser_regx_options(), parser_tokadd_mbchar(), parser_yyerror(), parser_yylex(), rb_backref_error_gen(), reg_compile_gen(), reg_fragment_check_gen(), reg_fragment_setenc_gen(), and switch().
#define compile_for_eval (parser->parser_compile_for_eval) |
Definition at line 381 of file ripper.c.
Referenced by local_push_gen(), parser_compile_string(), rb_parser_compile_file_path(), switch(), and yycompile0().
Definition at line 427 of file ripper.c.
Referenced by switch(), and value_expr_gen().
#define COND_LEXPOP | ( | ) | BITSTACK_LEXPOP(cond_stack) |
Definition at line 173 of file ripper.c.
Referenced by parser_yylex().
#define COND_P | ( | ) | BITSTACK_SET_P(cond_stack) |
Definition at line 174 of file ripper.c.
Referenced by parser_yylex().
#define COND_POP | ( | ) | BITSTACK_POP(cond_stack) |
#define COND_PUSH | ( | n | ) | BITSTACK_PUSH(cond_stack, (n)) |
Definition at line 171 of file ripper.c.
Referenced by parser_yylex(), and switch().
#define cond_stack (parser->parser_cond_stack) |
#define cur_mid (parser->parser_cur_mid) |
Definition at line 404 of file ripper.c.
Referenced by gettable_gen(), lex_getline(), parser_here_document(), parser_nextc(), parser_parse_string(), parser_yyerror(), parser_yylex(), rb_parser_encoding(), and reg_fragment_setenc_gen().
fixup_nodes & deferred_nodes (parser->parser_deferred_nodes) |
Definition at line 396 of file ripper.c.
Referenced by switch(), and yycompile0().
#define dispatch_heredoc_end | ( | ) | ((void)0) |
Definition at line 13096 of file ripper.c.
Referenced by parser_here_document().
#define dsym_node | ( | node | ) | dsym_node_gen(parser, (node)) |
#define dvar_curr | ( | id | ) | dvar_curr_gen(parser, (id)) |
Definition at line 583 of file ripper.c.
Referenced by shadowing_lvar_0(), and switch().
#define dvar_defined | ( | id | ) | dvar_defined_gen(parser, (id), 0) |
Definition at line 580 of file ripper.c.
Referenced by gettable_gen(), reg_named_capture_assign_iter(), and switch().
#define dvar_defined_get | ( | id | ) | dvar_defined_gen(parser, (id), 1) |
Definition at line 581 of file ripper.c.
Referenced by lvar_defined_gen(), and shadowing_lvar_0().
#define DVARS_INHERIT ((void*)1) |
Definition at line 196 of file ripper.c.
Referenced by dvar_defined_gen(), local_id_gen(), and local_push_gen().
#define DVARS_TOPSCOPE NULL |
Definition at line 197 of file ripper.c.
Referenced by dyna_in_block_gen(), and local_push_gen().
#define dyna_in_block | ( | ) | dyna_in_block_gen(parser) |
Definition at line 577 of file ripper.c.
Referenced by gettable_gen(), lvar_defined_gen(), shadowing_lvar_0(), and switch().
#define dyna_pop | ( | node | ) | dyna_pop_gen(parser, (node)) |
#define dyna_push | ( | ) | dyna_push_gen(parser) |
Definition at line 578 of file ripper.c.
Referenced by new_bv_gen(), and switch().
#define ENC_SINGLE | ( | cr | ) | ((cr)==ENC_CODERANGE_7BIT) |
Definition at line 365 of file ripper.c.
Referenced by parser_yylex().
#define ESCAPE_CONTROL 1 |
Definition at line 12405 of file ripper.c.
Referenced by parser_read_escape(), and parser_tokadd_escape().
#define ESCAPE_META 2 |
Definition at line 12406 of file ripper.c.
Referenced by parser_read_escape(), and parser_tokadd_escape().
#define evstr2dstr | ( | n | ) | evstr2dstr_gen(parser,(n)) |
Definition at line 12804 of file ripper.c.
Referenced by parser_here_document(), and parser_parse_string().
#define formal_argument | ( | id | ) | formal_argument_gen(parser, (id)) |
#define gettable | ( | id | ) | gettable_gen(parser,(id)) |
Definition at line 487 of file ripper.c.
Referenced by new_op_assign_gen(), reg_named_capture_assign_gen(), reg_named_capture_assign_iter(), and switch().
Definition at line 17700 of file ripper.c.
Referenced by rb_parser_calloc(), rb_parser_malloc(), and rb_parser_realloc().
#define here_document | ( | n | ) | parser_here_document(parser,(n)) |
Definition at line 11659 of file ripper.c.
Referenced by parser_yylex().
#define heredoc_end (parser->parser_heredoc_end) |
Definition at line 394 of file ripper.c.
Referenced by parser_heredoc_restore(), and parser_nextc().
#define heredoc_identifier | ( | ) | parser_heredoc_identifier(parser) |
Definition at line 11660 of file ripper.c.
Referenced by parser_yylex().
#define heredoc_restore | ( | n | ) | parser_heredoc_restore(parser,(n)) |
Definition at line 11661 of file ripper.c.
Referenced by parser_here_document().
#define id_type | ( | id | ) | (is_notop_id(id) ? (int)((id)&ID_SCOPE_MASK) : -1) |
Definition at line 116 of file ripper.c.
Referenced by gettable_gen().
#define IDSET_ATTRSET_FOR_INTERN (~(~0U<<ID_SCOPE_MASK) & ~(1U<<ID_ATTRSET)) |
Definition at line 16880 of file ripper.c.
Referenced by rb_is_attrset_name().
#define IDSET_ATTRSET_FOR_SYNTAX ((1U<<ID_LOCAL)|(1U<<ID_CONST)) |
Definition at line 16879 of file ripper.c.
Referenced by rb_enc_symname2_p(), and rb_is_junk_name().
#define ifndef_ripper | ( | x | ) | (x) |
Definition at line 695 of file ripper.c.
Referenced by local_push_gen(), and switch().
#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) |
Definition at line 570 of file ripper.c.
Referenced by new_args_tail_gen(), and switch().
#define IS_AFTER_OPERATOR | ( | ) | IS_lex_state(EXPR_FNAME | EXPR_DOT) |
Definition at line 13546 of file ripper.c.
Referenced by parser_yylex().
#define IS_ARG | ( | ) | IS_lex_state(EXPR_ARG_ANY) |
Definition at line 13540 of file ripper.c.
Referenced by parser_yylex().
#define is_asgn_or_id | ( | id | ) |
Definition at line 118 of file ripper.c.
Referenced by new_op_assign_gen().
#define is_attrset_id | ( | id | ) | (is_notop_id(id)&&((id)&ID_SCOPE_MASK)==ID_ATTRSET) |
Definition at line 112 of file ripper.c.
Referenced by intern_str(), rb_id2str(), and rb_is_attrset_id().
#define IS_BEG | ( | ) | IS_lex_state(EXPR_BEG_ANY) |
Definition at line 13542 of file ripper.c.
Referenced by parser_yylex().
#define is_class_id | ( | id | ) | (is_notop_id(id)&&((id)&ID_SCOPE_MASK)==ID_CLASS) |
Definition at line 114 of file ripper.c.
Referenced by rb_is_class_id().
#define is_const_id | ( | id | ) | (is_notop_id(id)&&((id)&ID_SCOPE_MASK)==ID_CONST) |
Definition at line 113 of file ripper.c.
Referenced by rb_is_const_id().
#define IS_END | ( | ) | IS_lex_state(EXPR_END_ANY) |
Definition at line 13541 of file ripper.c.
Referenced by parser_yylex().
#define is_global_id | ( | id | ) | (is_notop_id(id)&&((id)&ID_SCOPE_MASK)==ID_GLOBAL) |
Definition at line 110 of file ripper.c.
Referenced by rb_is_global_id().
#define is_identchar | ( | p, | |
e, | |||
enc | |||
) | (rb_enc_isalnum((unsigned char)(*(p)),(enc)) || (*(p)) == '_' || !ISASCII(*(p))) |
Definition at line 11761 of file ripper.c.
Referenced by intern_str(), is_special_global_name(), parser_yylex(), and rb_enc_symname_type().
#define is_instance_id | ( | id | ) | (is_notop_id(id)&&((id)&ID_SCOPE_MASK)==ID_INSTANCE) |
Definition at line 111 of file ripper.c.
Referenced by rb_is_instance_id().
#define is_junk_id | ( | id | ) | (is_notop_id(id)&&((id)&ID_SCOPE_MASK)==ID_JUNK) |
Definition at line 115 of file ripper.c.
Referenced by rb_is_junk_id().
#define IS_LABEL_POSSIBLE | ( | ) | ((IS_lex_state(EXPR_BEG | EXPR_ENDFN) && !cmd_state) || IS_ARG()) |
Definition at line 13544 of file ripper.c.
Referenced by parser_yylex().
Definition at line 13545 of file ripper.c.
Referenced by parser_yylex().
#define IS_lex_state | ( | ls | ) | IS_lex_state_for(lex_state, (ls)) |
Definition at line 158 of file ripper.c.
Referenced by parser_yylex().
#define IS_lex_state_for | ( | x, | |
ls | |||
) | ((x) & (ls)) |
Definition at line 157 of file ripper.c.
Referenced by parser_yylex().
#define is_local_id | ( | id | ) | (is_notop_id(id)&&((id)&ID_SCOPE_MASK)==ID_LOCAL) |
Definition at line 109 of file ripper.c.
Referenced by formal_argument_gen(), is_private_local_id(), new_bv_gen(), parser_yylex(), rb_is_local_id(), and switch().
#define is_notop_id | ( | id | ) | ((id)>tLAST_OP_ID) |
Definition at line 108 of file ripper.c.
Referenced by rb_id_attrset().
Definition at line 13543 of file ripper.c.
Referenced by parser_yylex().
Definition at line 12195 of file ripper.c.
Referenced by parser_yylex().
#define lex_gets (parser->parser_lex_gets) |
Definition at line 398 of file ripper.c.
Referenced by parser_compile_string(), and rb_parser_compile_file_path().
#define lex_gets_ptr (parser->parser_lex_gets_ptr) |
Definition at line 397 of file ripper.c.
Referenced by lex_get_str(), and parser_compile_string().
Definition at line 12194 of file ripper.c.
Referenced by parser_here_document(), parser_heredoc_identifier(), parser_nextc(), and parser_yylex().
#define lex_input (parser->parser_lex_input) |
Definition at line 388 of file ripper.c.
Referenced by parser_compile_string(), parser_nextc(), and rb_parser_compile_file_path().
#define lex_lastline (parser->parser_lex_lastline) |
Definition at line 389 of file ripper.c.
Referenced by parser_here_document(), parser_heredoc_identifier(), parser_heredoc_restore(), parser_nextc(), parser_prepare(), parser_yyerror(), parser_yylex(), and yycompile0().
#define lex_nextline (parser->parser_lex_nextline) |
Definition at line 390 of file ripper.c.
Referenced by parser_nextc(), parser_yylex(), and yycompile0().
#define lex_p (parser->parser_lex_p) |
Definition at line 392 of file ripper.c.
Referenced by comment_at_top(), parser_compile_string(), parser_here_document(), parser_heredoc_identifier(), parser_heredoc_restore(), parser_nextc(), parser_number_literal_suffix(), parser_peek_variable_name(), parser_prepare(), parser_pushback(), parser_read_escape(), parser_tok_hex(), parser_tokadd_escape(), parser_tokadd_mbchar(), parser_tokadd_string(), parser_tokadd_utf8(), parser_yyerror(), parser_yylex(), rb_parser_compile_file_path(), token_info_get_column(), token_info_has_nonspaces(), and yycompile0().
#define lex_pbeg (parser->parser_lex_pbeg) |
Definition at line 391 of file ripper.c.
Referenced by comment_at_top(), parser_compile_string(), parser_heredoc_identifier(), parser_heredoc_restore(), parser_nextc(), parser_prepare(), parser_pushback(), parser_whole_match_p(), parser_yyerror(), rb_parser_compile_file_path(), token_info_get_column(), token_info_has_nonspaces(), and yycompile0().
#define lex_pend (parser->parser_lex_pend) |
Definition at line 393 of file ripper.c.
Referenced by parser_compile_string(), parser_here_document(), parser_heredoc_restore(), parser_nextc(), parser_peek_variable_name(), parser_prepare(), parser_tokadd_string(), parser_whole_match_p(), parser_yyerror(), parser_yylex(), rb_parser_compile_file_path(), and yycompile0().
#define lex_state (parser->parser_lex_state) |
Definition at line 372 of file ripper.c.
Referenced by if(), parser_yylex(), and switch().
#define lex_strterm (parser->parser_lex_strterm) |
Definition at line 371 of file ripper.c.
Referenced by parser_here_document(), parser_heredoc_identifier(), parser_heredoc_restore(), parser_yylex(), switch(), and yycompile0().
#define list_append | ( | l, | |
i | |||
) | list_append_gen(parser,(l),(i)) |
Definition at line 451 of file ripper.c.
Referenced by arg_append_gen(), evstr2dstr_gen(), literal_concat_gen(), and switch().
#define list_concat | ( | h, | |
t | |||
) | list_concat_gen(parser,(h),(t)) |
Definition at line 453 of file ripper.c.
Referenced by arg_concat_gen(), literal_concat_gen(), and switch().
#define literal_concat | ( | h, | |
t | |||
) | literal_concat_gen(parser,(h),(t)) |
#define local_id | ( | id | ) | local_id_gen(parser, (id)) |
Definition at line 568 of file ripper.c.
Referenced by gettable_gen(), lvar_defined_gen(), reg_named_capture_assign_iter(), shadowing_lvar_0(), and switch().
#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 lpar_beg (parser->parser_lpar_beg) |
Definition at line 377 of file ripper.c.
Referenced by parser_yylex(), and switch().
#define lvar_defined | ( | id | ) | lvar_defined_gen(parser, (id)) |
Definition at line 586 of file ripper.c.
Referenced by parser_yylex().
Definition at line 15387 of file ripper.c.
Referenced by dvar_defined_gen(), local_id_gen(), shadowing_lvar_0(), and warn_unused_var().
#define lvtbl (parser->parser_lvtbl) |
Definition at line 399 of file ripper.c.
Referenced by arg_var_gen(), dvar_curr_gen(), dvar_defined_gen(), dyna_in_block_gen(), dyna_pop_1(), dyna_pop_gen(), dyna_push_gen(), internal_id_gen(), local_id_gen(), local_pop_gen(), local_push_gen(), local_tbl_gen(), local_var_gen(), and shadowing_lvar_0().
#define match_op | ( | node1, | |
node2 | |||
) | match_op_gen(parser, (node1), (node2)) |
#define mixed_error | ( | enc1, | |
enc2 | |||
) |
Referenced by parser_tokadd_string().
#define mixed_escape | ( | beg, | |
enc1, | |||
enc2 | |||
) |
Referenced by parser_tokadd_string().
Definition at line 605 of file ripper.c.
Referenced by parser_parse_string().
#define nd_term | ( | node | ) | SIGN_EXTEND((node)->u2.id, CHAR_BIT*2) |
Definition at line 603 of file ripper.c.
Referenced by parser_parse_string().
Definition at line 473 of file ripper.c.
Referenced by check_funcall_exec(), switch(), and vm_call0_body().
#define new_args_tail | ( | k, | |
kr, | |||
b | |||
) | 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 | ( | n | ) | 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 12785 of file ripper.c.
Referenced by parser_here_document(), and parser_yylex().
#define new_yield | ( | node | ) | new_yield_gen(parser, (node)) |
#define NEWHEAP | ( | ) | rb_node_newnode(NODE_ALLOCA, 0, (VALUE)parser->heap, 0) |
Definition at line 17701 of file ripper.c.
Referenced by rb_parser_calloc(), rb_parser_malloc(), and rb_parser_realloc().
#define newtok | ( | ) | parser_newtok(parser) |
Definition at line 11649 of file ripper.c.
Referenced by parser_here_document(), parser_heredoc_identifier(), parser_parse_string(), parser_regx_options(), and parser_yylex().
#define nextc | ( | ) | parser_nextc(parser) |
Definition at line 11647 of file ripper.c.
Referenced by parser_here_document(), parser_heredoc_identifier(), parser_number_literal_suffix(), parser_parse_string(), parser_prepare(), parser_read_escape(), parser_regx_options(), parser_tokadd_escape(), parser_tokadd_string(), parser_tokadd_utf8(), and parser_yylex().
Referenced by parser_yylex(), rb_str_upto(), and ruby_dtoa().
#define node_assign | ( | node1, | |
node2 | |||
) | node_assign_gen(parser, (node1), (node2)) |
Definition at line 499 of file ripper.c.
Referenced by reg_named_capture_assign_iter(), and switch().
#define NODE_HEREDOC NODE_ARRAY /* 1, 3 to gc */ |
Definition at line 597 of file ripper.c.
Referenced by parser_heredoc_identifier(), and parser_yylex().
#define NODE_STRTERM NODE_ZARRAY /* nothing to gc */ |
#define NUM_SUFFIX_ALL 3 |
Definition at line 13031 of file ripper.c.
Referenced by parser_yylex().
#define NUM_SUFFIX_I (1<<1) |
Definition at line 13030 of file ripper.c.
Referenced by parser_number_literal_suffix(), parser_set_number_literal(), and parser_yylex().
#define NUM_SUFFIX_R (1<<0) |
Definition at line 13029 of file ripper.c.
Referenced by parser_number_literal_suffix(), parser_set_integer_literal(), and parser_yylex().
#define number_literal_suffix | ( | f | ) | parser_number_literal_suffix(parser, (f)) |
Definition at line 11663 of file ripper.c.
Referenced by parser_yylex().
Definition at line 16750 of file ripper.c.
Referenced by intern_str(), and rb_id2str().
#define paren_nest (parser->parser_paren_nest) |
Definition at line 376 of file ripper.c.
Referenced by parser_yylex(), and switch().
#define parse_string | ( | n | ) | parser_parse_string(parser,(n)) |
Definition at line 11657 of file ripper.c.
Referenced by parser_yylex().
#define PARSER_ARG ruby_sourcefile, ruby_sourceline, current_enc, |
Definition at line 730 of file ripper.c.
Referenced by block_dup_check_gen(), gettable_gen(), literal_concat0(), new_bv_gen(), no_blockarg(), parser_here_document(), parser_heredoc_identifier(), parser_parse_string(), parser_regx_options(), parser_tokadd_mbchar(), parser_yyerror(), parser_yylex(), rb_backref_error_gen(), reg_compile_gen(), reg_fragment_check_gen(), reg_fragment_setenc_gen(), and switch().
#define parser_encoding_name | ( | ) | (current_enc->name) |
Definition at line 11758 of file ripper.c.
Referenced by parser_tokadd_mbchar().
#define parser_is_identchar | ( | ) | (!parser->eofp && is_identchar((lex_p-1),lex_pend,current_enc)) |
Definition at line 11762 of file ripper.c.
Referenced by parser_heredoc_identifier(), and parser_yylex().
Definition at line 11764 of file ripper.c.
Referenced by parser_tokadd_string(), and parser_yylex().
#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) |
Definition at line 11760 of file ripper.c.
Referenced by parser_tokadd_mbchar().
#define parser_warn | ( | node, | |
mesg | |||
) | parser_warn(parser, (node), (mesg)) |
Definition at line 14950 of file ripper.c.
Referenced by assign_in_cond(), cond0(), and warn_unless_e_option().
#define parser_warning | ( | node, | |
mesg | |||
) | parser_warning(parser, (node), (mesg)) |
Definition at line 14943 of file ripper.c.
Referenced by block_append_gen(), cond0(), and warning_unless_e_option().
Definition at line 12196 of file ripper.c.
Referenced by parser_nextc(), parser_prepare(), parser_read_escape(), parser_tokadd_utf8(), and parser_yylex().
Definition at line 12197 of file ripper.c.
Referenced by parser_yylex().
Definition at line 199 of file ripper.c.
Referenced by dvar_defined_gen(), dyna_in_block_gen(), local_id_gen(), vtable_add(), vtable_free(), vtable_included(), and vtable_size().
pushback | ( | c | ) | parser_pushback(parser, (c)) |
Definition at line 11648 of file ripper.c.
Referenced by parser_here_document(), parser_heredoc_identifier(), parser_number_literal_suffix(), parser_parse_string(), parser_prepare(), parser_read_escape(), parser_regx_options(), parser_tokadd_escape(), parser_tokadd_string(), and parser_yylex().
#define rb_backref_error | ( | n | ) | 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)) |
Definition at line 424 of file ripper.c.
Referenced by enum_zip(), node_newnode(), and parser_heredoc_identifier().
#define rb_warn0 | ( | fmt | ) | rb_compile_warn(ruby_sourcefile, ruby_sourceline, (fmt)) |
#define rb_warn4S | ( | file, | |
line, | |||
fmt, | |||
a | |||
) | rb_compile_warn((file), (line), (fmt), (a)) |
Definition at line 705 of file ripper.c.
Referenced by warn_unused_var().
#define rb_warnI | ( | fmt, | |
a | |||
) | rb_compile_warn(ruby_sourcefile, ruby_sourceline, (fmt), (a)) |
Definition at line 703 of file ripper.c.
Referenced by parser_yylex().
#define rb_warning0 | ( | fmt | ) | rb_compile_warning(ruby_sourcefile, ruby_sourceline, (fmt)) |
Definition at line 706 of file ripper.c.
Referenced by arg_ambiguous_gen(), parser_yylex(), and value_expr_gen().
#define rb_warningS | ( | fmt, | |
a | |||
) | rb_compile_warning(ruby_sourcefile, ruby_sourceline, (fmt), (a)) |
Definition at line 707 of file ripper.c.
Referenced by parser_yylex(), reg_named_capture_assign_iter(), and shadowing_lvar_0().
#define rb_warnS | ( | fmt, | |
a | |||
) | rb_compile_warn(ruby_sourcefile, ruby_sourceline, (fmt), (a)) |
Definition at line 704 of file ripper.c.
Referenced by parse_numvar(), and void_expr_gen().
Definition at line 590 of file ripper.c.
Referenced by parser_regx_options().
#define RE_OPTION_ENCODING_IDX | ( | o | ) | (((o)>>RE_OPTION_ENCODING_SHIFT)&0xff) |
Definition at line 591 of file ripper.c.
Referenced by reg_fragment_setenc_gen().
#define RE_OPTION_ENCODING_NONE | ( | o | ) | ((o)&RE_OPTION_ARG_ENCODING_NONE) |
Definition at line 592 of file ripper.c.
Referenced by reg_fragment_setenc_gen().
#define RE_OPTION_MASK 0xff |
Definition at line 593 of file ripper.c.
Referenced by reg_compile_gen(), and switch().
#define RE_OPTION_ONCE (1<<16) |
Definition at line 588 of file ripper.c.
Referenced by parser_regx_options(), and switch().
Definition at line 11653 of file ripper.c.
Referenced by parser_read_escape(), parser_tokadd_string(), and parser_yylex().
#define realloc YYREALLOC |
Definition at line 97 of file ripper.c.
Referenced by st_realloc_bins().
#define reduce_nodes | ( | n | ) | reduce_nodes_gen(parser,(n)) |
Definition at line 520 of file ripper.c.
Referenced by reg_compile_gen(), and reg_fragment_check_gen().
#define reg_named_capture_assign | ( | regexp, | |
match | |||
) | reg_named_capture_assign_gen(parser,(regexp),(match)) |
#define regx_options | ( | ) | parser_regx_options(parser) |
Definition at line 11655 of file ripper.c.
Referenced by parser_parse_string().
#define ret_args | ( | node | ) | ret_args_gen(parser, (node)) |
Definition at line 11691 of file ripper.c.
Referenced by parser_heredoc_identifier(), parser_heredoc_restore(), and parser_nextc().
#define ruby__end__seen (parser->parser_ruby__end__seen) |
Definition at line 400 of file ripper.c.
Referenced by parser_yylex(), and rb_parser_end_seen_p().
Definition at line 411 of file ripper.c.
Referenced by lex_getline(), and yycompile0().
#define ruby_debug_lines (parser->debug_lines) |
Definition at line 410 of file ripper.c.
Referenced by lex_getline(), parser_set_encode(), and yycompile0().
#define ruby_eval_tree (parser->parser_eval_tree) |
Definition at line 408 of file ripper.c.
Referenced by switch(), and yycompile0().
#define ruby_eval_tree_begin (parser->parser_eval_tree_begin) |
Definition at line 409 of file ripper.c.
Referenced by switch(), and yycompile0().
#define ruby_sourcefile_string (parser->parser_ruby_sourcefile_string) |
Definition at line 403 of file ripper.c.
Referenced by gettable_gen(), yycompile(), and yycompile0().
#define ruby_sourceline (parser->parser_ruby_sourceline) |
Definition at line 401 of file ripper.c.
Referenced by local_var_gen(), new_args_gen(), new_args_tail_gen(), node_newnode(), parser_heredoc_identifier(), parser_heredoc_restore(), parser_newtok(), parser_nextc(), parser_parse_string(), parser_set_encode(), parser_set_token_info(), parser_yylex(), reg_compile_gen(), shadowing_lvar_0(), switch(), token_info_pop(), token_info_push(), void_expr_gen(), yycompile(), and yycompile0().
Definition at line 11665 of file ripper.c.
Referenced by parser_yylex().
Definition at line 11664 of file ripper.c.
Referenced by parser_set_integer_literal(), and parser_yylex().
#define set_yylval_id | ( | x | ) | (yylval.id = (x)) |
Definition at line 11670 of file ripper.c.
Referenced by parser_yylex().
#define set_yylval_literal | ( | x | ) | (yylval.node = NEW_LIT(x)) |
Definition at line 11672 of file ripper.c.
Referenced by parser_set_number_literal().
#define set_yylval_name | ( | x | ) | (yylval.id = (x)) |
Definition at line 11671 of file ripper.c.
Referenced by parser_yylex().
#define set_yylval_node | ( | x | ) | (yylval.node = (x)) |
Definition at line 11673 of file ripper.c.
Referenced by parser_yylex().
#define set_yylval_num | ( | x | ) | (yylval.num = (x)) |
Definition at line 11669 of file ripper.c.
Referenced by parser_parse_string().
#define set_yylval_str | ( | x | ) | (yylval.node = NEW_STR(x)) |
Definition at line 11668 of file ripper.c.
Referenced by parser_here_document(), parser_parse_string(), and parser_yylex().
#define shadowing_lvar | ( | name | ) | shadowing_lvar_gen(parser, (name)) |
Definition at line 555 of file ripper.c.
Referenced by formal_argument_gen(), and switch().
#define str_copy | ( | _s, | |
_p, | |||
_n | |||
) |
Referenced by parser_magic_comment().
#define STR_FUNC_ESCAPE 0x01 |
Definition at line 12159 of file ripper.c.
Referenced by parser_tokadd_string().
#define STR_FUNC_EXPAND 0x02 |
Definition at line 12160 of file ripper.c.
Referenced by parser_here_document(), parser_parse_string(), and parser_tokadd_string().
#define STR_FUNC_INDENT 0x20 |
Definition at line 12164 of file ripper.c.
Referenced by parser_here_document(), and parser_heredoc_identifier().
#define STR_FUNC_QWORDS 0x08 |
Definition at line 12162 of file ripper.c.
Referenced by parser_parse_string(), and parser_tokadd_string().
#define STR_FUNC_REGEXP 0x04 |
Definition at line 12161 of file ripper.c.
Referenced by parser_parse_string(), parser_str_new(), and parser_tokadd_string().
#define STR_FUNC_SYMBOL 0x10 |
Definition at line 12163 of file ripper.c.
Referenced by parser_tokadd_string().
#define STR_NEW | ( | p, | |
n | |||
) | rb_enc_str_new((p),(n),current_enc) |
Definition at line 361 of file ripper.c.
Referenced by parser_here_document(), and parser_heredoc_identifier().
#define STR_NEW0 | ( | ) | rb_enc_str_new(0,0,current_enc) |
Definition at line 362 of file ripper.c.
Referenced by evstr2dstr_gen(), literal_concat_gen(), switch(), and yycompile0().
#define STR_NEW2 | ( | p | ) | rb_enc_str_new((p),strlen(p),current_enc) |
Definition at line 363 of file ripper.c.
Referenced by parser_yyerror().
#define STR_NEW3 | ( | p, | |
n, | |||
e, | |||
func | |||
) | parser_str_new((p),(n),(e),(func),current_enc) |
Definition at line 364 of file ripper.c.
Referenced by parser_here_document(), parser_parse_string(), and parser_yylex().
#define subnodes | ( | n1, | |
n2 | |||
) |
Referenced by reduce_nodes_gen().
#define tok | ( | ) | tokenbuf |
Definition at line 12274 of file ripper.c.
Referenced by parse_numvar(), parser_here_document(), parser_heredoc_identifier(), parser_parse_string(), parser_regx_options(), and parser_yylex().
#define tok_hex | ( | numlen | ) | parser_tok_hex(parser, (numlen)) |
Definition at line 11652 of file ripper.c.
Referenced by parser_read_escape(), and parser_tokadd_escape().
#define TOK_INTERN | ( | mb | ) | rb_intern3(tok(), toklen(), current_enc) |
Definition at line 366 of file ripper.c.
Referenced by parser_yylex().
#define tokadd | ( | c | ) | parser_tokadd(parser, (c)) |
Definition at line 11651 of file ripper.c.
Referenced by parser_here_document(), parser_heredoc_identifier(), parser_parse_string(), parser_regx_options(), parser_tokadd_escape(), parser_tokadd_mbchar(), parser_tokadd_string(), parser_tokadd_utf8(), and parser_yylex().
#define tokadd_escape | ( | e | ) | parser_tokadd_escape(parser, (e)) |
Definition at line 11654 of file ripper.c.
Referenced by parser_tokadd_string().
#define tokadd_mbchar | ( | c | ) | parser_tokadd_mbchar(parser, (c)) |
Definition at line 12636 of file ripper.c.
Referenced by parser_heredoc_identifier(), parser_tokadd_string(), and parser_yylex().
Definition at line 11656 of file ripper.c.
Referenced by parser_here_document(), and parser_parse_string().
Definition at line 11658 of file ripper.c.
Referenced by parser_tokadd_utf8(), and parser_yylex().
Definition at line 12330 of file ripper.c.
Referenced by parser_tokadd_escape(), parser_tokadd_mbchar(), and parser_tokadd_utf8().
#define tokenbuf (parser->parser_tokenbuf) |
Definition at line 384 of file ripper.c.
Referenced by parser_newtok(), parser_tokadd(), and parser_tokspace().
Definition at line 12273 of file ripper.c.
Referenced by parser_heredoc_identifier(), parser_parse_string(), parser_regx_options(), and parser_yylex().
#define tokidx (parser->parser_tokidx) |
Definition at line 385 of file ripper.c.
Referenced by parser_newtok(), parser_tokadd(), parser_tokspace(), and parser_yylex().
Definition at line 12276 of file ripper.c.
Referenced by parser_yylex().
#define toklen | ( | ) | tokidx |
Definition at line 12275 of file ripper.c.
Referenced by parse_numvar(), parser_here_document(), parser_heredoc_identifier(), parser_parse_string(), parser_regx_options(), and parser_yylex().
#define tokline (parser->parser_tokline) |
Definition at line 387 of file ripper.c.
Referenced by gettable_gen(), parser_newtok(), and switch().
#define toksiz (parser->parser_toksiz) |
Definition at line 386 of file ripper.c.
Referenced by parser_newtok(), parser_tokadd(), and parser_tokspace().
#define tokspace | ( | n | ) | parser_tokspace(parser, (n)) |
Definition at line 11650 of file ripper.c.
Referenced by parser_tokaddmbc().
#define value_expr | ( | node | ) | value_expr_gen(parser, (node) = remove_begin(node)) |
Definition at line 438 of file ripper.c.
Referenced by call_bin_op_gen(), call_uni_op_gen(), logop_gen(), match_op_gen(), range_op(), switch(), and value_expr_gen().
#define void_expr | ( | node | ) | void_expr0((node) = remove_begin(node)) |
#define void_expr0 | ( | node | ) | void_expr_gen(parser, (node)) |
Definition at line 439 of file ripper.c.
Referenced by void_stmts_gen().
#define void_stmts | ( | node | ) | void_stmts_gen(parser, (node)) |
#define VTBL_DEBUG 0 |
Definition at line 212 of file ripper.c.
Referenced by vtable_add(), vtable_alloc(), and vtable_free().
#define warn_balanced | ( | op, | |
syn | |||
) |
Definition at line 13555 of file ripper.c.
Referenced by if(), and parser_yylex().
Definition at line 12271 of file ripper.c.
Referenced by parser_here_document(), and parser_yylex().
Definition at line 11662 of file ripper.c.
Referenced by parser_here_document(), and parser_yylex().
#define YY_ | ( | msgid | ) | msgid |
Definition at line 986 of file ripper.c.
Referenced by if(), and yysyntax_error().
#define YY_STACK_PRINT | ( | Bottom, | |
Top | |||
) |
#define YY_SYMBOL_PRINT | ( | Title, | |
Type, | |||
Value, | |||
Location | |||
) |
#define YYABORT goto yyabortlab |
#define YYBACKUP | ( | Token, | |
Value | |||
) |
#define YYCALLOC | ( | nelem, | |
size | |||
) | rb_parser_calloc(parser, (nelem), (size)) |
Referenced by yysyntax_error().
#define YYCOPY | ( | To, | |
From, | |||
Count | |||
) |
#define yydebug (parser->parser_yydebug) |
Definition at line 405 of file ripper.c.
Referenced by dump_option(), proc_options(), and process_options().
#define YYDPRINTF | ( | Args | ) |
#define YYEMPTY (-2) |
Definition at line 4399 of file ripper.c.
Referenced by if(), and yysyntax_error().
#define yyerrok (yyerrstatus = 0) |
#define yyerror | ( | msg | ) | parser_yyerror(parser, (msg)) |
Definition at line 369 of file ripper.c.
Referenced by assign_in_cond(), formal_argument_gen(), parser_read_escape(), parser_tok_hex(), parser_tokadd_escape(), parser_tokadd_utf8(), parser_yylex(), shadowing_lvar_0(), switch(), and value_expr_gen().
#define YYLAST 11083 |
Definition at line 1148 of file ripper.c.
Referenced by for(), and yysyntax_error().
#define YYLLOC_DEFAULT | ( | Current, | |
Rhs, | |||
N | |||
) |
#define yylval (*((YYSTYPE*)(parser->parser_yylval))) |
#define YYNTOKENS 144 |
Definition at line 1151 of file ripper.c.
Referenced by yysyntax_error().
Definition at line 3166 of file ripper.c.
Referenced by for(), and yysyntax_error().
#define yyparse ruby_yyparse |
Definition at line 421 of file ripper.c.
Referenced by yycompile0().
#define YYRECOVERING | ( | ) | (!!yyerrstatus) |
#define YYSIZE_T unsigned int |
Definition at line 972 of file ripper.c.
Referenced by if(), yysyntax_error(), and yytnamerr().
#define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM |
Definition at line 1057 of file ripper.c.
Referenced by yysyntax_error().
#define YYSTACK_BYTES | ( | N | ) |
#define YYSTACK_RELOCATE | ( | Stack_alloc, | |
Stack | |||
) |
#define YYSYNTAX_ERROR |
Referenced by if().
#define yytable_value_is_error | ( | yytable_value | ) | ((yytable_value) == (-628)) |
Definition at line 3169 of file ripper.c.
Referenced by if(), and yysyntax_error().
#define YYTERROR 1 |
Definition at line 4441 of file ripper.c.
Referenced by for(), and yysyntax_error().
#define YYTRANSLATE | ( | YYX | ) | ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
typedef long(* rb_magic_comment_length_t)(struct parser_params *parser, const char *name, long len) |
typedef VALUE stack_type |
typedef struct token_info token_info |
typedef short int yytype_int16 |
typedef short int yytype_int8 |
typedef unsigned short int yytype_uint16 |
typedef unsigned char yytype_uint8 |
enum lex_state_bits |
enum lex_state_e |
enum string_type |
|
static |
Definition at line 13205 of file ripper.c.
References arg_ambiguous, dispatch0(), and rb_warning0.
|
static |
Definition at line 15538 of file ripper.c.
References arg_append, list_append, nd_set_type, nd_type, NEW_ARGSPUSH, NEW_LIST, NODE_ARGSCAT, NODE_ARGSPUSH, NODE_ARRAY, and NODE_BLOCK_PASS.
|
static |
Definition at line 15513 of file ripper.c.
References arg_concat, list_concat, nd_set_type, nd_type, NEW_ARGSCAT, NEW_LIST, NODE_ARGSCAT, NODE_ARGSPUSH, NODE_ARRAY, and NODE_BLOCK_PASS.
|
static |
Definition at line 16358 of file ripper.c.
References lvtbl, vtable_add(), and vtable_size().
|
static |
|
static |
Definition at line 15860 of file ripper.c.
References is_static_content(), nd_type, NODE_DASGN, NODE_DASGN_CURR, NODE_GASGN, NODE_IASGN, NODE_LASGN, NODE_MASGN, parser_warn, and yyerror.
Referenced by cond0().
|
static |
|
static |
Definition at line 15492 of file ripper.c.
References nd_type, NEW_ATTRASGN, NODE_SELF, and rb_id_attrset().
|
static |
Definition at line 14953 of file ripper.c.
References end, fixpos(), head, nd_type, NEW_BLOCK, NODE_BLOCK, NODE_BREAK, NODE_FALSE, NODE_LIT, NODE_NEXT, NODE_NIL, NODE_REDO, NODE_RETRY, NODE_RETURN, NODE_SELF, NODE_STR, NODE_TRUE, parser_warning, RTEST, ruby_verbose, and tail.
|
static |
Definition at line 15444 of file ripper.c.
References compile_error, nd_type, NODE_BLOCK_PASS, and PARSER_ARG.
|
static |
Definition at line 15172 of file ripper.c.
References NEW_CALL, NEW_LIST, and value_expr.
|
static |
Definition at line 15180 of file ripper.c.
References NEW_CALL, and value_expr.
|
static |
Definition at line 13286 of file ripper.c.
References parser_params::has_shebang, ISSPACE, lex_p, lex_pbeg, and parser_params::line_count.
Referenced by magic_comment_encoding(), and parser_yylex().
|
static |
Definition at line 15967 of file ripper.c.
References assign_in_cond(), e, e_option_supplied(), literal_node(), nd_set_type, nd_type, NEW_GVAR, NEW_MATCH2, NODE_AND, NODE_DOT2, NODE_DOT3, NODE_DREGX, NODE_DREGX_ONCE, NODE_DSTR, NODE_DSYM, NODE_EVSTR, NODE_FLIP2, NODE_FLIP3, NODE_LIT, NODE_MATCH, NODE_OR, NODE_STR, parser_warn, parser_warning, range_op(), rb_intern, RB_TYPE_P, rb_warn0, RTEST, ruby_verbose, T_REGEXP, warn_unless_e_option(), and warning_unless_e_option().
Referenced by cond_gen(), and range_op().
|
static |
Definition at line 11922 of file ripper.c.
References i, klass, n, Qnil, RARRAY, RARRAY_ASET, rb_ary_new2, rb_get_coverages(), rb_hash_aset(), RBASIC, RBASIC_CLEAR_CLASS, and RTEST.
Referenced by coverage_result_i(), update_coverage(), and yycompile0().
Definition at line 11906 of file ripper.c.
References CONST_ID, hash, rb_ary_new(), rb_cObject, rb_const_defined_at(), rb_const_get_at(), rb_hash_aset(), RB_TYPE_P, and T_HASH.
Referenced by yycompile0().
Definition at line 12616 of file ripper.c.
References rb_gc_force_recycle(), and rb_str_free().
Referenced by parser_here_document(), and parser_heredoc_restore().
|
static |
|
static |
Definition at line 16483 of file ripper.c.
References lvtbl, and vtable_included().
|
static |
Definition at line 16452 of file ripper.c.
References args, DVARS_INHERIT, i, LVAR_USED, lvtbl, POINTER_P, vtable::prev, rb_dvar_defined(), vtable::tbl, and vtable_included().
|
static |
Definition at line 16446 of file ripper.c.
References DVARS_TOPSCOPE, lvtbl, and POINTER_P.
|
static |
Definition at line 16414 of file ripper.c.
References lvtbl, tmp, vtable_free(), and warn_unused_var().
Referenced by dyna_pop_gen().
|
static |
Definition at line 16432 of file ripper.c.
References dyna_pop_1(), lvtbl, and xfree.
|
static |
Definition at line 16403 of file ripper.c.
References lvtbl, and vtable_alloc().
|
static |
Definition at line 11938 of file ripper.c.
References ruby_sourcefile.
Referenced by cond0(), local_push_gen(), warn_unless_e_option(), warning_unless_e_option(), and yycompile0().
|
static |
Definition at line 15149 of file ripper.c.
References list_append, nd_type, NEW_DSTR, NODE_EVSTR, and STR_NEW0.
Definition at line 14930 of file ripper.c.
References nd_line, and nd_set_line.
Referenced by block_append_gen(), new_attr_op_assign_gen(), new_const_op_assign_gen(), and switch().
Definition at line 15899 of file ripper.c.
References head, nd_set_type, nd_type, NODE_DOT2, NODE_DOT3, NODE_LIT, rb_gc_force_recycle(), rb_range_new(), type, and val.
Referenced by switch().
for | ( | ;; | ) |
Definition at line 11539 of file ripper.c.
References YY_STACK_PRINT, YYABORT, yydestruct(), YYLAST, yyn, yypact_value_is_default, YYPOPSTACK, yyssp, yystate, and YYTERROR.
|
static |
Definition at line 13216 of file ripper.c.
References is_local_id, lhs, shadowing_lvar, and yyerror.
|
static |
Definition at line 15221 of file ripper.c.
References compile_error, current_enc, dvar_defined, dyna_in_block, ID_CLASS, ID_CONST, ID_GLOBAL, ID_INSTANCE, ID_LOCAL, id_type, INT2FIX, keyword__ENCODING__, keyword__FILE__, keyword__LINE__, keyword_false, keyword_nil, keyword_self, keyword_true, local_id, NEW_CONST, NEW_CVAR, NEW_DVAR, NEW_FALSE, NEW_GVAR, NEW_IVAR, NEW_LIT, NEW_LVAR, NEW_NIL, NEW_SELF, NEW_STR, NEW_TRUE, NEW_VCALL, PARSER_ARG, rb_enc_from_encoding(), rb_id2name(), rb_str_dup(), ruby_sourcefile_string, and tokline.
if | ( | yyss+yystacksize-1<= | yyssp | ) |
Definition at line 5072 of file ripper.c.
References YY_, YYABORT, YYDPRINTF, YYMAXDEPTH, YYSIZE_T, yyss, yyalloc::yyss_alloc, YYSTACK_ALLOC, YYSTACK_BYTES, YYSTACK_FREE, YYSTACK_RELOCATE, yyvs, and yyalloc::yyvs_alloc.
if | ( | yyn<= | 0 | ) |
if | ( | ! | yyerrstatus | ) |
Definition at line 11448 of file ripper.c.
References parser_yyerror(), YY_, yymsg, yymsgbuf, yynerrs, YYSTACK_ALLOC, YYSTACK_FREE, and YYSYNTAX_ERROR.
if | ( | yyerrstatus | = = 3 | ) |
Definition at line 16801 of file ripper.c.
References global_symbols, symbols::id_str, Init_id(), nodeline(), nodetype(), st_init_numtable_with_size(), st_init_table_with_size(), symbols::sym_id, and void.
Definition at line 17065 of file ripper.c.
References c, e, enc, global_symbols, i, id, ID_ATTRSET, ID_CLASS, ID_CONST, ID_GLOBAL, ID_INSTANCE, ID_JUNK, ID_LOCAL, ID_SCOPE_SHIFT, is_attrset_id, is_identchar, is_special_global_name(), ISASCII, last, symbols::last_id, len, m, name, op_tbl, op_tbl_count, rb_cString, rb_enc_asciicompat, rb_enc_associate(), rb_enc_get(), rb_enc_isascii, rb_enc_isdigit, rb_enc_ispunct, rb_enc_isupper, rb_enc_mbclen(), rb_eRuntimeError, rb_id2str(), rb_id_attrset(), rb_intern3(), rb_raise(), rb_usascii_encoding(), register_symid_str(), RSTRING_GETMEM, RUBY_SPECIAL_SHIFT, sym_check_asciionly(), and tLAST_OP_ID.
Referenced by rb_intern3(), and rb_intern_str().
|
static |
Definition at line 16833 of file ripper.c.
References ID_INTERNAL, ID_SCOPE_SHIFT, lvtbl, tLAST_TOKEN, and vtable_size().
Definition at line 12829 of file ripper.c.
Referenced by is_special_global_name(), and parser_peek_variable_name().
Definition at line 15377 of file ripper.c.
References is_local_id, rb_id2str(), RSTRING_PTR, and s.
Referenced by shadowing_lvar_0(), and warn_unused_var().
|
static |
Definition at line 16842 of file ripper.c.
References is_global_name_punct(), is_identchar, ISASCII, m, rb_enc_isdigit, and rb_enc_mbclen().
Referenced by intern_str(), and rb_enc_symname_type().
Definition at line 15836 of file ripper.c.
References nd_type, NODE_ARRAY, NODE_FALSE, NODE_HASH, NODE_LIT, NODE_NIL, NODE_STR, NODE_TRUE, and NODE_ZARRAY.
Referenced by assign_in_cond().
|
static |
Definition at line 12025 of file ripper.c.
References enc, end, lex_gets_ptr, must_be_ascii_compatible(), Qnil, rb_enc_str_new(), RSTRING_LEN, and RSTRING_PTR.
Referenced by parser_compile_string().
|
static |
Definition at line 12045 of file ripper.c.
References current_enc, must_be_ascii_compatible(), NIL_P(), parser_params::parser_lex_gets, parser_params::parser_lex_input, Qnil, rb_ary_push(), rb_enc_associate(), ruby_coverage, and ruby_debug_lines.
Referenced by parser_nextc().
|
static |
Definition at line 12121 of file ripper.c.
References rb_io_gets().
Referenced by rb_parser_compile_file_path().
|
static |
|
static |
|
static |
Definition at line 15051 of file ripper.c.
References compile_error, NIL_P(), PARSER_ARG, rb_enc_compatible(), rb_enc_get(), rb_enc_name, rb_str_buf_append(), and rb_str_resize().
Referenced by literal_concat_gen(), and switch().
|
static |
Definition at line 15068 of file ripper.c.
References head, list_append, list_concat, literal_concat0(), nd_set_type, nd_type, NEW_DSTR, NEW_STR, NIL_P(), NODE_ARRAY, NODE_DSTR, NODE_EVSTR, NODE_STR, Qnil, rb_gc_force_recycle(), STR_NEW0, and tail.
Definition at line 15946 of file ripper.c.
References nd_type, NODE_DREGX, NODE_DREGX_ONCE, NODE_DSTR, NODE_DSYM, NODE_EVSTR, NODE_FALSE, NODE_LIT, NODE_NIL, NODE_STR, and NODE_TRUE.
Referenced by cond0().
|
static |
Definition at line 16375 of file ripper.c.
References args, DVARS_INHERIT, i, LVAR_USED, lvtbl, POINTER_P, vtable::prev, rb_local_defined(), vtable::tbl, and vtable_included().
|
static |
Definition at line 16317 of file ripper.c.
References cmdarg_stack, lvtbl, vtable_free(), warn_unused_var(), and xfree.
|
static |
Definition at line 16300 of file ripper.c.
References ALLOC, local_vars::args, cmdarg_stack, local_vars::cmdargs, compile_for_eval, DVARS_INHERIT, DVARS_TOPSCOPE, e_option_supplied(), ifndef_ripper, lvtbl, local_vars::prev, RTEST, ruby_verbose, local_vars::used, local_vars::vars, and vtable_alloc().
|
static |
|
static |
Definition at line 16365 of file ripper.c.
References lvtbl, ruby_sourceline, vtable_add(), and vtable_size().
|
static |
Definition at line 16031 of file ripper.c.
References nd_type, NEW_NODE, and value_expr.
|
static |
Definition at line 13227 of file ripper.c.
References dvar_defined_get, dyna_in_block, and local_id.
|
static |
Definition at line 13302 of file ripper.c.
References comment_at_top(), and parser_set_encode().
|
static |
Definition at line 15187 of file ripper.c.
References nd_type, NEW_CALL, NEW_LIST, NEW_MATCH2, NEW_MATCH3, NODE_DREGX, NODE_DREGX_ONCE, NODE_LIT, RB_TYPE_P, T_REGEXP, tMATCH, and value_expr.
|
static |
Definition at line 12015 of file ripper.c.
References enc, rb_eArgError, rb_enc_asciicompat, rb_enc_get(), and rb_raise().
Referenced by lex_get_str(), lex_getline(), rb_compile_string(), and rb_parser_compile_string_path().
|
static |
Definition at line 16121 of file ripper.c.
References args, rb_args_info::first_post_arg, rb_args_info::opt_args, rb_args_info::post_args_num, rb_args_info::post_init, rb_args_info::pre_args_num, rb_args_info::pre_init, r, rb_long2int, rb_args_info::rest_arg, ruby_sourceline, and tail.
|
static |
Definition at line 16143 of file ripper.c.
References ALLOC, arg_var, args, b, rb_args_info::block_arg, check, internal_id, rb_args_info::kw_args, rb_args_info::kw_rest_arg, MEMZERO, NEW_DVAR, NEW_NODE, NODE_ARGS, and ruby_sourceline.
|
static |
Definition at line 15422 of file ripper.c.
References compile_error, dyna_var, is_local_id, PARSER_ARG, rb_id2name(), and shadowing_lvar_0().
|
static |
|
static |
|
static |
Definition at line 16200 of file ripper.c.
References gettable, is_asgn_or_id, lhs, NEW_BEGIN, NEW_CALL, NEW_LIST, NEW_OP_ASGN_AND, NEW_OP_ASGN_OR, tANDOP, and tOROP.
|
static |
Definition at line 16071 of file ripper.c.
References NEW_YIELD, and no_blockarg().
Definition at line 14920 of file ripper.c.
References RNode::flags, NODE_FL_NEWLINE, and remove_begin().
Referenced by reg_named_capture_assign_gen(), reg_named_capture_assign_iter(), and switch().
|
static |
Definition at line 16046 of file ripper.c.
References compile_error, nd_type, NODE_BLOCK_PASS, and PARSER_ARG.
Referenced by new_yield_gen(), and ret_args_gen().
|
static |
Definition at line 15564 of file ripper.c.
References arg_append, lhs, nd_type, NODE_ATTRASGN, NODE_CALL, NODE_CDECL, NODE_CVASGN, NODE_DASGN, NODE_DASGN_CURR, NODE_GASGN, NODE_IASGN, NODE_IASGN2, NODE_LASGN, and NODE_MASGN.
|
static |
Definition at line 14900 of file ripper.c.
References n, nd_set_line, rb_node_newnode, and ruby_sourceline.
|
static |
Definition at line 13561 of file ripper.c.
References len, n, rb_warnS, ruby_scan_digits(), tok, and toklen.
Referenced by parser_yylex().
|
static |
Definition at line 12068 of file ripper.c.
References compile_for_eval, lex_get_str(), lex_gets, lex_gets_ptr, lex_input, lex_p, lex_pbeg, lex_pend, parser, RB_GC_GUARD(), rb_parse_in_eval(), s, TypedData_Get_Struct, and yycompile().
Referenced by rb_compile_cstr(), rb_compile_string(), rb_parser_compile_cstr(), and rb_parser_compile_string_path().
|
static |
Definition at line 13234 of file ripper.c.
References len, and rb_memcicmp().
Referenced by set_file_encoding().
Definition at line 17564 of file ripper.c.
References parser_params::parser_lvtbl, parser_params::parser_tokenbuf, local_vars::prev, local_vars::vars, and xfree.
|
static |
Definition at line 13100 of file ripper.c.
References c, compile_error, current_enc, dispatch_heredoc_end, dispose_string(), enc, parser_params::eofp, flush_string_content, func, heredoc_restore, len, lex_goto_eol, lex_lastline, lex_p, lex_pend, lex_strterm, NEW_STRTERM, newtok, nextc, NIL_P(), NULL, p, PARSER_ARG, parser_peek_variable_name(), pushback, rb_str_append(), rb_str_cat(), RSTRING_LEN, RSTRING_PTR, set_yylval_str, STR_FUNC_EXPAND, STR_FUNC_INDENT, STR_NEW, STR_NEW3, t, tok, tokadd, tokadd_string, toklen, tSTRING_CONTENT, tSTRING_END, was_bol, and whole_match_p.
|
static |
Definition at line 12930 of file ripper.c.
References c, compile_error, func, len, lex_goto_eol, lex_lastline, lex_p, lex_pbeg, lex_strterm, nd_set_line, newtok, nextc, NODE_HEREDOC, PARSER_ARG, parser_is_identchar, pushback, rb_node_newnode, ripper_flush, ruby_sourceline, str_dquote, STR_FUNC_INDENT, STR_NEW, str_squote, str_xquote, tHEREDOC_BEG, tok, tokadd, tokadd_mbchar, tokfix, toklen, tSTRING_BEG, and tXSTRING_BEG.
|
static |
Definition at line 12993 of file ripper.c.
References dispose_string(), heredoc_end, lex_lastline, lex_p, lex_pbeg, lex_pend, lex_strterm, nd_line, rb_gc_force_recycle(), ripper_flush, RSTRING_LEN, RSTRING_PTR, and ruby_sourceline.
|
static |
Definition at line 17484 of file ripper.c.
References parser_params::enc, parser_params::eofp, parser_params::heap, parser_params::is_ripper, NULL, parser_params::parser_brace_nest, parser_params::parser_class_nest, parser_params::parser_cmdarg_stack, parser_params::parser_command_start, parser_params::parser_compile_for_eval, parser_params::parser_cond_stack, parser_params::parser_cur_mid, parser_params::parser_deferred_nodes, parser_params::parser_eval_tree, parser_params::parser_eval_tree_begin, parser_params::parser_heredoc_end, parser_params::parser_in_def, parser_params::parser_in_defined, parser_params::parser_in_kwarg, parser_params::parser_in_single, parser_params::parser_lex_p, parser_params::parser_lex_pbeg, parser_params::parser_lex_pend, parser_params::parser_lex_strterm, parser_params::parser_lpar_beg, parser_params::parser_lvtbl, parser_params::parser_paren_nest, parser_params::parser_ruby__end__seen, parser_params::parser_ruby_sourcefile, parser_params::parser_ruby_sourcefile_string, parser_params::parser_tokenbuf, parser_params::parser_tokidx, parser_params::parser_toksiz, Qfalse, Qnil, rb_utf8_encoding(), and TRUE.
Referenced by parser_new().
|
static |
Definition at line 13379 of file ripper.c.
References end, FALSE, magic_comment::func, i, ISSPACE, len, magic_comment::length, magic_comment_marker(), magic_comments, n, magic_comment::name, numberof, RSTRING_PTR, s, str, str_copy, STRNCASECMP, TRUE, and val.
Referenced by parser_yylex().
Definition at line 17538 of file ripper.c.
References parser_params::debug_lines, parser_params::heap, parser_params::parser_deferred_nodes, parser_params::parser_eval_tree, parser_params::parser_eval_tree_begin, parser_params::parser_lex_input, parser_params::parser_lex_lastline, parser_params::parser_lex_nextline, parser_params::parser_lex_strterm, parser_params::parser_ruby_sourcefile_string, and rb_gc_mark().
Definition at line 17581 of file ripper.c.
References vtable::capa, parser_params::parser_lvtbl, parser_params::parser_toksiz, local_vars::prev, size, and local_vars::vars.
|
static |
Definition at line 17620 of file ripper.c.
References ALLOC_N, MEMZERO, p, and parser_initialize().
Referenced by rb_parser_new().
|
static |
|
inlinestatic |
Definition at line 12200 of file ripper.c.
References c, current_enc, parser_params::eofp, heredoc_end, int, parser_params::last_cr_line, lex_getline(), lex_goto_eol, lex_input, lex_lastline, lex_nextline, lex_p, lex_pbeg, lex_pend, parser_params::line_count, NIL_P(), peek, Qtrue, rb_compile_warn(), rb_enc_associate(), rb_str_buf_cat(), rb_str_buf_new(), ripper_flush, RSTRING_LEN, RSTRING_PTR, ruby_sourcefile, ruby_sourceline, and v.
|
static |
|
static |
Definition at line 12872 of file ripper.c.
References c, compile_error, current_enc, enc, parser_params::eofp, flush_string_content, func, int, ISSPACE, nd_line, nd_paren, nd_term, newtok, nextc, PARSER_ARG, parser_peek_variable_name(), pushback, regx_options, ruby_sourceline, set_yylval_num, set_yylval_str, STR_FUNC_EXPAND, STR_FUNC_QWORDS, STR_FUNC_REGEXP, STR_NEW3, t, tok, tokadd, tokadd_string, tokfix, toklen, tREGEXP_END, tSTRING_CONTENT, and tSTRING_END.
|
static |
Definition at line 12836 of file ripper.c.
References c, command_start, is_global_name_punct(), ISALPHA, ISASCII, ISDIGIT, lex_p, lex_pend, p, TRUE, tSTRING_DBEG, and tSTRING_DVAR.
Referenced by parser_here_document(), and parser_parse_string().
|
static |
Definition at line 13516 of file ripper.c.
References c, parser_params::enc, EOF, parser_params::has_shebang, lex_lastline, lex_p, lex_pbeg, lex_pend, nextc, peek, pushback, rb_enc_get(), and rb_utf8_encoding().
Referenced by yycompile0().
|
static |
|
static |
Definition at line 12409 of file ripper.c.
References c, ESCAPE_CONTROL, ESCAPE_META, ISASCII, lex_p, nextc, peek, pushback, read_escape, scan_oct, tok_hex, and yyerror.
|
static |
Definition at line 12580 of file ripper.c.
References c, compile_error, ISALPHA, newtok, nextc, PARSER_ARG, pushback, rb_ascii8bit_encindex, rb_char_to_option_kcode(), RE_OPTION_ENCODING, RE_OPTION_ONCE, tok, tokadd, tokfix, and toklen.
|
static |
Definition at line 13254 of file ripper.c.
References parser_params::enc, enc, i, idx, n, RARRAY_AREF, RARRAY_LEN, rb_ary_unshift(), rb_eArgError, rb_enc_asciicompat, rb_enc_associate_index(), rb_enc_find_index(), rb_enc_from_index(), rb_enc_name, rb_exc_raise(), rb_make_backtrace(), rb_make_exception(), rb_sprintf(), ruby_debug_lines, ruby_sourcefile, and ruby_sourceline.
Referenced by magic_comment_encoding(), and set_file_encoding().
|
static |
Definition at line 13074 of file ripper.c.
References NUM_SUFFIX_R, rb_rational_raw1, set_number_literal, tINTEGER, tRATIONAL, and type.
|
static |
Definition at line 13063 of file ripper.c.
References INT2FIX, NUM_SUFFIX_I, rb_complex_raw(), set_yylval_literal, tIMAGINARY, and type.
|
static |
Definition at line 13311 of file ripper.c.
References FALSE, parser_params::parser_token_info_enabled, rb_compile_warning(), ruby_sourcefile, ruby_sourceline, strcasecmp, and TRUE.
|
static |
Definition at line 12178 of file ripper.c.
References ENC_CODERANGE_7BIT, rb_ascii8bit_encoding(), rb_enc_asciicompat, rb_enc_associate(), rb_enc_str_coderange(), rb_enc_str_new(), rb_usascii_encoding(), rb_utf8_encoding(), str, and STR_FUNC_REGEXP.
|
static |
|
static |
|
static |
Definition at line 12507 of file ripper.c.
References c, ESCAPE_CONTROL, ESCAPE_META, flags, lex_p, nextc, pushback, ruby_scan_oct(), tok_hex, tokadd, tokcopy, and yyerror.
|
static |
Definition at line 12623 of file ripper.c.
References c, compile_error, len, lex_p, MBCLEN_CHARFOUND_P, PARSER_ARG, parser_encoding_name, parser_precise_mbclen, tokadd, and tokcopy.
|
static |
Definition at line 12652 of file ripper.c.
References c, enc, encp, ISASCII, ISSPACE, lex_p, lex_pend, mixed_error, mixed_escape, nextc, parser_isascii, parser_tokadd_utf8(), pushback, read_escape, simple_re_meta(), STR_FUNC_ESCAPE, STR_FUNC_EXPAND, STR_FUNC_QWORDS, STR_FUNC_REGEXP, STR_FUNC_SYMBOL, tokadd, tokadd_escape, and tokadd_mbchar.
|
static |
Definition at line 12334 of file ripper.c.
References lex_p, nextc, peek, rb_utf8_encoding(), scan_hex, tokadd, tokaddmbc, tokcopy, and yyerror.
Referenced by parser_tokadd_string(), and parser_yylex().
|
static |
Definition at line 12500 of file ripper.c.
References len, rb_enc_codelen(), rb_enc_mbcput, and tokspace.
|
static |
|
static |
Definition at line 14946 of file ripper.c.
References nd_line, rb_compile_warn(), and ruby_sourcefile.
|
static |
Definition at line 14939 of file ripper.c.
References nd_line, rb_compile_warning(), and ruby_sourcefile.
|
static |
|
static |
Definition at line 11841 of file ripper.c.
References ALLOCA_N, buf, compile_error, current_enc, i, int, len, lex_lastline, lex_p, lex_pbeg, lex_pend, MEMCPY, NULL, p, PARSER_ARG, rb_compile_error_append(), rb_compile_error_with_enc(), rb_enc_get(), rb_enc_prev_char, and STR_NEW2.
Referenced by if().
|
static |
Definition at line 13582 of file ripper.c.
References arg_ambiguous, brace_nest, c, CMDARG_LEXPOP, CMDARG_P, CMDARG_PUSH, command_start, comment_at_top(), compile_error, COND_LEXPOP, COND_P, COND_PUSH, current_enc, d, DBL2NUM, enc, ENC_CODERANGE_7BIT, ENC_CODERANGE_UNKNOWN, ENC_SINGLE, parser_params::eofp, errno, EXPR_ARG_ANY, EXPR_BEG_ANY, FALSE, here_document, heredoc_identifier, kwtable::id, INT2FIX, IS_AFTER_OPERATOR, IS_ARG, IS_BEG, IS_END, is_identchar, IS_LABEL_POSSIBLE, IS_LABEL_SUFFIX, IS_lex_state, IS_lex_state_for, is_local_id, IS_SPCARG, ISALNUM, ISASCII, ISDIGIT, ISSPACE, ISUPPER, ISXDIGIT, k__END__, keyword_do, keyword_do_block, keyword_do_cond, keyword_do_LAMBDA, lex_eol_p, lex_goto_eol, lex_lastline, lex_nextline, lex_p, lex_pend, lex_state, lex_strterm, lpar_beg, lvar_defined, memmove(), kwtable::name, nd_type, NEW_BACK_REF, NEW_NTH_REF, NEW_STRTERM, newtok, nextc, no_digits, NODE_HEREDOC, NUM_SUFFIX_ALL, NUM_SUFFIX_I, NUM_SUFFIX_R, number_literal_suffix, paren_nest, parse_numvar(), parse_string, PARSER_ARG, parser_params::parser_in_kwarg, parser_is_identchar, parser_isascii, parser_magic_comment(), parser_tokadd_utf8(), peek, peek_n, pushback, Qtrue, rb_cstr_to_inum(), rb_enc_isalnum, rb_enc_isspace, rb_gc_force_recycle(), rb_int_positive_pow(), rb_intern, rb_intern3(), rb_rational_new(), rb_reserved_word, rb_warnI, rb_warning0, rb_warningS, read_escape, result, retry, ruby__end__seen, ruby_sourceline, set_file_encoding(), set_integer_literal, set_number_literal, set_yylval_id, set_yylval_name, set_yylval_node, set_yylval_str, snprintf, kwtable::state, state, str_dquote, str_dsym, str_dword, STR_NEW3, str_regexp, str_squote, str_ssym, str_sword, str_xquote, strtod, tAMPER, tANDOP, tAREF, tASET, tASSOC, tBACK_REF, tCHAR, tCMP, tCOLON2, tCOLON3, tCOMMENT, tCONSTANT, tCVAR, tDOT2, tDOT3, tDSTAR, tEMBDOC, tEMBDOC_BEG, tEMBDOC_END, tEQ, tEQQ, tFID, tFLOAT, tGEQ, tGVAR, tIDENTIFIER, tIGNORED_NL, tIVAR, tLABEL, tLAMBDA, tLAMBEG, tLBRACE, tLBRACE_ARG, tLBRACK, tLEQ, tLPAREN, tLPAREN_ARG, tLSHFT, tMATCH, tmp, tNEQ, tNMATCH, tNTH_REF, tok, TOK_INTERN, tokadd, tokadd_mbchar, tokaddmbc, token, tokfix, tokidx, toklast, toklen, tOP_ASGN, tOROP, tPOW, tQSYMBOLS_BEG, tQWORDS_BEG, tRATIONAL, tREGEXP_BEG, tREGEXP_END, tRSHFT, TRUE, tSP, tSTAR, tSTRING_BEG, tSTRING_DEND, tSTRING_END, tSYMBEG, tSYMBOLS_BEG, tUMINUS, tUMINUS_NUM, tUPLUS, tWORDS_BEG, tXSTRING_BEG, type, v, void, warn_balanced, was_bol, whole_match_p, and yyerror.
|
static |
|
static |
Definition at line 15500 of file ripper.c.
References compile_error, nd_type, NODE_BACK_REF, NODE_NTH_REF, and PARSER_ARG.
Returns ID for the given name if it is interned already, or 0.
namep | the pointer to the name object |
namep
must be a Symbol or a String, or possible to convert with to_str method. namep
is a Symbol or a String if non-zero value is returned, or is a String if 0 is returned. Definition at line 17365 of file ripper.c.
Referenced by check_definition(), check_local_id(), enum_inject(), obj_respond_to(), rb_f_untrace_var(), rb_mod_alias_method(), rb_mod_autoload_p(), rb_mod_cvar_defined(), rb_mod_cvar_get(), rb_mod_instance_method(), rb_mod_method_defined(), rb_mod_public_instance_method(), rb_mod_remove_const(), rb_mod_remove_cvar(), rb_mod_remove_method(), rb_mod_undef_method(), rb_obj_ivar_defined(), rb_obj_ivar_get(), rb_obj_method(), rb_obj_public_method(), rb_obj_remove_instance_variable(), rb_obj_singleton_method(), rb_struct_aref(), rb_struct_aset(), rb_thread_aref(), rb_thread_key_p(), rb_thread_variable_get(), rb_thread_variable_p(), send_internal(), set_const_visibility(), set_method_visibility(), and vm_call_opt_send().
ID rb_check_id_cstr | ( | const char * | ptr, |
long | len, | ||
rb_encoding * | enc | ||
) |
Definition at line 17407 of file ripper.c.
Referenced by rb_mod_const_defined(), rb_mod_const_get(), rb_path_to_class(), and rb_str_format().
Definition at line 12107 of file ripper.c.
Referenced by rb_load_file().
int rb_enc_symname2_p | ( | const char * | name, |
long | len, | ||
rb_encoding * | enc | ||
) |
Definition at line 16979 of file ripper.c.
Referenced by rb_enc_symname_p(), and reg_named_capture_assign_iter().
int rb_enc_symname_p | ( | const char * | name, |
rb_encoding * | enc | ||
) |
Definition at line 16874 of file ripper.c.
Referenced by rb_str_symname_p(), and rb_symname_p().
|
static |
Definition at line 16883 of file ripper.c.
References e, id, ID_ATTRSET, ID_CLASS, ID_CONST, ID_GLOBAL, ID_INSTANCE, ID_JUNK, ID_LOCAL, is_identchar, is_special_global_name(), ISASCII, len, m, name, rb_enc_isalpha, rb_enc_isupper, rb_enc_mbclen(), and type.
Referenced by rb_enc_symname2_p(), and rb_str_symname_type().
Definition at line 16648 of file ripper.c.
Referenced by gc_mark_roots().
Definition at line 16820 of file ripper.c.
Referenced by gc_mark_roots().
Definition at line 17271 of file ripper.c.
Referenced by add_opt_method(), addrinfo_inspect(), check_dump_arg(), check_exec_redirect(), check_load_arg(), control_frame_dump(), dump_object(), econv_opts(), error_pos(), esignal_init(), extract_user_token(), fole_missing(), gettable_gen(), id2ref(), insn_data_to_s_detail(), inspect_i(), iow_inspect(), iseq_compile_each(), match_backref_number(), mnew_from_me(), must_respond_to(), new_bv_gen(), num_sadded(), object_allocations_reporter_i(), ossl_pkcs7_sym2typeid(), ossl_sslctx_set_ssl_version(), r_object0(), racc_yyparse(), rb_define_class_id_under(), rb_dlcfunc_call(), rb_execarg_addopt(), rb_f_kill(), rb_f_local_variables(), rb_id_attrset(), rb_insecure_operation(), rb_insn_operand_intern(), rb_method_call_status(), rb_method_entry_make(), rb_notimplement(), rb_search_method_entry(), rb_secure(), rb_str_format(), rb_str_setter(), rb_struct_aref_id(), rb_struct_aset_id(), rb_thread_current_status(), rb_undef(), reg_named_capture_assign_iter(), remove_method(), rsock_inspect_sockaddr(), rsock_revlookup_flag(), ruby_debug_print_id(), shadowing_lvar_0(), sockopt_inspect(), strscan_aref(), switch(), symbol2event_flag(), trap_signm(), validate_label(), vm_call_method(), vm_getivar(), void_expr_gen(), vtable_add(), and warn_unused_var().
Definition at line 17201 of file ripper.c.
Referenced by add_id(), addrinfo_mdump(), append_method(), check_local_id(), classname(), fc_path(), gc_info_decode(), gc_stat_internal(), id_to_name(), inspect_struct(), intern_str(), is_private_local_id(), iseq_compile_each(), iseq_data_to_ary(), iseq_load(), location_label(), location_to_str(), match_aref(), method_inspect(), oldbt_iter_cfunc(), r_unique(), rb_attr(), rb_define_class_id_under(), rb_define_module_id_under(), rb_enc_get_index(), rb_id2name(), rb_id2str(), rb_id_quote_unprintable(), rb_insn_operand_intern(), rb_iseq_parameters(), rb_method_entry_make(), rb_sym_to_s(), rsock_ipaddr(), sym_capitalize(), sym_downcase(), sym_empty(), sym_encoding(), sym_inspect(), sym_length(), sym_swapcase(), sym_upcase(), trap_handler(), vm_stat(), and w_symbol().
Definition at line 15463 of file ripper.c.
Referenced by attrset_gen(), intern_str(), rb_attr(), rb_check_id(), rb_check_id_cstr(), rb_struct_set(), and setup_struct().
Definition at line 17178 of file ripper.c.
Referenced by global_id(), Init_load(), rb_f_global_variables(), rb_intern(), and switch().
ID rb_intern3 | ( | const char * | name, |
long | len, | ||
rb_encoding * | enc | ||
) |
Definition at line 17049 of file ripper.c.
Referenced by intern_str(), parser_yylex(), rb_intern2(), and reg_named_capture_assign_iter().
Definition at line 17454 of file ripper.c.
Referenced by rb_check_id(), and rb_check_id_cstr().
Definition at line 17318 of file ripper.c.
Referenced by cv_i(), rb_cv_get(), rb_cv_set(), rb_define_class_variable(), rb_mod_cvar_defined(), rb_mod_cvar_get(), and rb_mod_remove_cvar().
Definition at line 17436 of file ripper.c.
Referenced by rb_mod_cvar_defined(), rb_mod_cvar_get(), and rb_mod_remove_cvar().
Definition at line 17312 of file ripper.c.
Referenced by defined_expr(), fc_i(), inspect_struct(), iseq_compile_each(), ole_const_load(), rb_autoload(), rb_define_const(), rb_is_attr_id(), rb_mod_const_defined(), rb_mod_const_get(), rb_mod_remove_const(), and sv_i().
Definition at line 17430 of file ripper.c.
Referenced by new_struct(), rb_is_attr_name(), rb_mod_const_defined(), rb_mod_const_get(), and rb_mod_remove_const().
Definition at line 17330 of file ripper.c.
Referenced by inspect_i(), ivar_i(), rb_obj_ivar_defined(), rb_obj_ivar_get(), and rb_obj_remove_instance_variable().
Definition at line 17448 of file ripper.c.
Referenced by rb_obj_ivar_defined(), rb_obj_ivar_get(), and rb_obj_remove_instance_variable().
Definition at line 17342 of file ripper.c.
Referenced by check_local_id(), collect_local_variables_in_iseq(), inspect_struct(), and rb_is_attr_id().
Definition at line 17460 of file ripper.c.
Referenced by check_local_id(), and rb_is_attr_name().
Definition at line 16653 of file ripper.c.
Referenced by process_options().
void* rb_parser_calloc | ( | struct parser_params * | parser, |
size_t | nelem, | ||
size_t | size | ||
) |
Definition at line 12135 of file ripper.c.
Referenced by iseq_s_compile_file(), and rb_compile_file().
Definition at line 12141 of file ripper.c.
Referenced by load_file_internal(), rb_iseq_compile_with_option(), and rb_parser_compile_file().
Definition at line 12094 of file ripper.c.
Referenced by process_options().
Definition at line 12100 of file ripper.c.
Referenced by load_file_internal(), rb_iseq_compile_with_option(), and rb_parser_compile_string().
Definition at line 17660 of file ripper.c.
Referenced by load_file_internal().
Definition at line 17645 of file ripper.c.
Referenced by load_file_internal().
void rb_parser_free | ( | struct parser_params * | parser, |
void * | ptr | ||
) |
void* rb_parser_malloc | ( | struct parser_params * | parser, |
size_t | size | ||
) |
Definition at line 17631 of file ripper.c.
Referenced by iseq_s_compile_file(), process_options(), rb_compile_cstr(), rb_compile_file(), rb_compile_string(), rb_iseq_compile_with_option(), and rb_load_file_str().
void* rb_parser_realloc | ( | struct parser_params * | parser, |
void * | ptr, | ||
size_t | size | ||
) |
Definition at line 17690 of file ripper.c.
Referenced by process_options().
Definition at line 16685 of file ripper.c.
Referenced by process_options().
Definition at line 16985 of file ripper.c.
References len, ptr, rb_enc_get(), rb_enc_symname_type(), RB_GC_GUARD(), RSTRING_LEN, StringValuePtr, and type.
Referenced by rb_is_attrset_name(), rb_is_class_name(), rb_is_const_name(), rb_is_global_name(), rb_is_instance_name(), rb_is_junk_name(), rb_is_local_name(), and rb_is_method_name().
Definition at line 17303 of file ripper.c.
Referenced by Init_String().
|
static |
Definition at line 15775 of file ripper.c.
References end, RNode::flags, int, nd_body, nd_else, nd_head, nd_next, nd_resq, nd_type, NEW_NIL, NODE_BEGIN, NODE_BLOCK, NODE_CASE, NODE_ENSURE, NODE_FL_NEWLINE, NODE_IF, NODE_NIL, NODE_RESCUE, NODE_RETURN, NODE_WHEN, and subnodes.
|
static |
Definition at line 16624 of file ripper.c.
References compile_error, err, m, NIL_P(), PARSER_ARG, PRIsVALUE, Qnil, rb_attr_get(), rb_errinfo, rb_intern, rb_reg_compile(), rb_set_errinfo(), rb_str_append(), rb_str_cat(), RE_OPTION_MASK, reg_fragment_setenc, ruby_sourcefile, and ruby_sourceline.
|
static |
Definition at line 16530 of file ripper.c.
References compile_error, err, PARSER_ARG, PRIsVALUE, Qnil, rb_obj_as_string(), rb_reg_check_preprocess(), and reg_fragment_setenc.
|
static |
Definition at line 16491 of file ripper.c.
References c, compile_error, current_enc, ENC_CODERANGE_7BIT, ENCODING_GET, ENCODING_IS_ASCII8BIT, ENCODING_SET, idx, PARSER_ARG, rb_ascii8bit_encoding(), rb_char_to_option_kcode(), rb_enc_associate(), rb_enc_get(), rb_enc_name, rb_enc_str_coderange(), rb_usascii_encoding(), RE_OPTION_ENCODING_IDX, and RE_OPTION_ENCODING_NONE.
|
static |
Definition at line 16592 of file ripper.c.
References arg, block_append, reg_named_capture_assign_t::enc, reg_named_capture_assign_t::fail_block, gettable, INT2FIX, match(), NEW_CALL, NEW_IF, NEW_LIST, NEW_LIT, newline_node(), reg_named_capture_assign_t::num, onig_foreach_name(), parser, reg_named_capture_assign_t::parser, ptr, Qnil, rb_enc_get(), rb_intern, reg_named_capture_assign_iter(), RREGEXP, and reg_named_capture_assign_t::succ_block.
|
static |
Definition at line 16552 of file ripper.c.
References arg, assignable, block_append, dvar_defined, enc, reg_named_capture_assign_t::enc, reg_named_capture_assign_t::fail_block, gettable, ID2SYM, idAREF, ISASCII, len, local_id, MAX_WORD_LENGTH, name, NEW_BEGIN, NEW_CALL, NEW_LIST, NEW_LIT, newline_node(), node_assign, reg_named_capture_assign_t::num, reg_named_capture_assign_t::parser, Qnil, rb_enc_islower, rb_enc_symname2_p(), rb_id2name(), rb_intern, rb_intern3(), rb_reserved_word, rb_warningS, s, ST_CONTINUE, reg_named_capture_assign_t::succ_block, and var.
Referenced by reg_named_capture_assign_gen().
|
static |
Definition at line 16995 of file ripper.c.
References rb_enc_str_new(), and register_symid_str().
Definition at line 17002 of file ripper.c.
References global_symbols, id, symbols::id_str, symbols::minor_marked, OBJ_FREEZE, rb_fstring(), rb_sourcefile, rb_sourceline(), RSTRING_PTR, RUBY_DTRACE_SYMBOL_CREATE, RUBY_DTRACE_SYMBOL_CREATE_ENABLED, st_add_direct(), st_data_t, and symbols::sym_id.
Referenced by intern_str(), rb_id2str(), and register_symid().
Definition at line 15755 of file ripper.c.
References n, nd_type, and NODE_BEGIN.
Referenced by newline_node(), and switch().
Definition at line 15765 of file ripper.c.
References n, nd_type, and NODE_BEGIN.
|
static |
Definition at line 16054 of file ripper.c.
References nd_set_type, nd_type, no_blockarg(), NODE_ARRAY, and NODE_VALUES.
|
static |
Definition at line 13473 of file ripper.c.
References ISALNUM, ISSPACE, parser_encode_length(), parser_set_encode(), rb_str_new(), rb_str_resize(), RSTRING_PTR, s, str, and STRNCASECMP.
Referenced by parser_yylex().
Definition at line 17038 of file ripper.c.
References RString::basic, RBasic::flags, len, rb_cString, RBASIC_SET_CLASS_RAW, RSTRING_NOEMBED, and T_STRING.
Referenced by rb_check_id(), rb_check_id_cstr(), and rb_intern3().
|
static |
Definition at line 15390 of file ripper.c.
References dvar_curr, dvar_defined_get, dyna_in_block, is_private_local_id(), local_id, LVAR_USED, lvtbl, rb_id2name(), rb_warningS, ruby_sourceline, vtable_add(), and yyerror.
Referenced by new_bv_gen(), and shadowing_lvar_gen().
|
static |
Definition at line 15415 of file ripper.c.
References name, and shadowing_lvar_0().
Definition at line 12639 of file ripper.c.
Referenced by parser_tokadd_string().
Definition at line 15556 of file ripper.c.
References nd_type, NODE_ARRAY, and NODE_SPLAT.
Referenced by switch().
switch | ( | yyn | ) |
Definition at line 5233 of file ripper.c.
References alias, ALLOC_N, arg_append, arg_blk_pass(), arg_concat, arg_var, args, aryset, assignable, attrset, block_append, block_dup_check, bodystmt, brace_nest, buf, call_bin_op, call_uni_op, CMDARG_LEXPOP, CMDARG_PUSH, cmdarg_stack, command_call, command_start, compile_error, compile_for_eval, cond, COND_POP, COND_PUSH, cond_stack, cur_mid, deferred_nodes, dispatch0(), dsym_node, dyna_in_block, dyna_pop, dyna_push, END, escape_Qundef(), evstr2dstr, FIXNUM_P, fixpos(), fixup_nodes(), formal_argument, get_id, get_value, gettable, hash, head, YYSTYPE::id, id, ID2SYM, idAREF, idEq, ifndef_ripper, in_def, in_defined, in_single, INT2FIX, internal_id, is_local_id, keyword__ENCODING__, keyword__FILE__, keyword__LINE__, keyword_false, keyword_nil, keyword_self, keyword_true, lex_state, lex_strterm, list, list_append, list_concat, literal_concat, literal_concat0(), local_id, local_pop, local_push, logop, lpar_beg, m, match_op, nd_args, nd_iter, nd_lit, nd_next, nd_plen, nd_set_line, nd_set_type, nd_type, nd_value, negate_lit(), NEW_ALIAS, new_args, NEW_ARGS_AUX, new_args_tail, NEW_ARGSCAT, new_attr_op_assign, NEW_BEGIN, NEW_BLOCK_PASS, NEW_BREAK, new_bv, NEW_CALL, NEW_CASE, NEW_CDECL, NEW_CLASS, NEW_COLON2, NEW_COLON3, new_const_op_assign, NEW_CVAR, NEW_DASGN_CURR, new_defined, NEW_DEFN, NEW_DEFS, NEW_DOT2, NEW_DOT3, NEW_DSTR, NEW_DVAR, NEW_ENSURE, NEW_ERRINFO, NEW_EVSTR, new_evstr, NEW_FCALL, NEW_FOR, NEW_GVAR, NEW_HASH, NEW_IF, NEW_ITER, NEW_IVAR, NEW_KW_ARG, NEW_LAMBDA, NEW_LIST, NEW_LIT, NEW_LVAR, NEW_MASGN, NEW_MODULE, NEW_NEXT, NEW_NIL, NEW_NODE, NEW_OP_ASGN1, new_op_assign, NEW_OPT_ARG, NEW_POSTARG, NEW_POSTEXE, NEW_REDO, NEW_RESBODY, NEW_RESCUE, NEW_RETRY, NEW_RETURN, NEW_SCLASS, NEW_SCOPE, NEW_SPLAT, NEW_STR, NEW_SUPER, NEW_UNDEF, NEW_UNLESS, NEW_UNTIL, NEW_VALIAS, NEW_WHEN, NEW_WHILE, NEW_XSTR, NEW_YIELD, new_yield, NEW_ZARRAY, NEW_ZSUPER, newline_node(), NIL_P(), YYSTYPE::node, NODE_AND, NODE_ARRAY, node_assign, NODE_BEGIN, NODE_BLOCK, NODE_BLOCK_PASS, NODE_DASGN, NODE_DASGN_CURR, NODE_DREGX, NODE_DREGX_ONCE, NODE_DSTR, NODE_DSYM, NODE_DXSTR, NODE_ENSURE, NODE_FL_NEWLINE, NODE_LASGN, NODE_LIT, NODE_MASGN, NODE_OR, NODE_RESCUE, NODE_SCOPE, NODE_SELF, NODE_STR, NODE_XSTR, NODE_YIELD, NODE_ZARRAY, NOEX_PRIVATE, NULL, YYSTYPE::num, one(), opts, paren_nest, PARSER_ARG, Qnil, Qnone, Qundef, rb_ary_new3, rb_ary_push(), rb_assoc_new(), rb_backref_error, rb_cArray, rb_fstring(), rb_gc_force_recycle(), rb_intern, rb_intern2(), rb_intern_str, rb_parse_in_main(), rb_str_intern(), rb_str_resize(), RB_TYPE_P, rb_warn0, RE_OPTION_MASK, RE_OPTION_ONCE, reduce_nodes, reg_compile, reg_fragment_check, reg_named_capture_assign, remove_begin(), ret_args, retry, ripper_intern(), ruby_eval_tree, ruby_eval_tree_begin, ruby_sourceline, shadowing_lvar, splat_array(), src, STR_NEW0, T_REGEXP, tANDOP, tAREF, tASET, tbl, tCMP, tDSTAR, tEQ, tEQQ, tGEQ, tLEQ, tLSHFT, tMATCH, tNEQ, tNMATCH, token_info_pop, token_info_push, tokline, tOROP, tPOW, tRSHFT, TRUE, tUMINUS, tUPLUS, YYSTYPE::val, val, value_expr, YYSTYPE::vars, void_expr, void_stmts, yyerrok, yyerror, and zero().
Definition at line 15309 of file ripper.c.
References keyword__ENCODING__, keyword__FILE__, keyword__LINE__, keyword_false, keyword_nil, keyword_self, keyword_true, and yyerror.
Definition at line 15332 of file ripper.c.
References assignable_result, compile_error, dvar_curr, dvar_defined, dyna_in_block, dyna_var, ID_CLASS, ID_CONST, ID_GLOBAL, ID_INSTANCE, ID_LOCAL, in_def, in_single, local_id, local_var, NEW_CDECL, NEW_CVASGN, NEW_DASGN, NEW_DASGN_CURR, NEW_GASGN, NEW_IASGN, NEW_LASGN, PARSER_ARG, rb_id2name(), and yyerror.
Definition at line 17018 of file ripper.c.
References ENC_CODERANGE_7BIT, ENC_CODERANGE_BROKEN, FALSE, rb_eEncodingError, rb_enc_asciicompat, rb_enc_get(), rb_enc_str_coderange(), rb_raise(), and TRUE.
Referenced by intern_str(), rb_check_id(), and rb_check_id_cstr().
Definition at line 17280 of file ripper.c.
References ID2SYM, rb_ary_push(), and ST_CONTINUE.
Referenced by rb_sym_all_symbols().
|
static |
Definition at line 11768 of file ripper.c.
References lex_p, lex_pbeg, p, and strlen().
Referenced by token_info_pop(), and token_info_push().
|
static |
Definition at line 11782 of file ripper.c.
References lex_p, lex_pbeg, p, and strlen().
Referenced by token_info_pop(), and token_info_push().
|
static |
Definition at line 11812 of file ripper.c.
References token_info::column, token_info::linenum, token_info::next, token_info::nonspc, parser_params::parser_token_info, parser_params::parser_token_info_enabled, rb_compile_warn(), ruby_sourcefile, ruby_sourceline, token_info::token, token_info_get_column(), token_info_has_nonspaces(), and xfree.
|
static |
Definition at line 11795 of file ripper.c.
References ALLOC, token_info::column, token_info::linenum, token_info::next, token_info::nonspc, parser_params::parser_token_info, parser_params::parser_token_info_enabled, ruby_sourceline, token_info::token, token, token_info_get_column(), and token_info_has_nonspaces().
|
static |
Definition at line 15595 of file ripper.c.
References cond, FALSE, nd_type, NODE_AND, NODE_BEGIN, NODE_BLOCK, NODE_BREAK, NODE_IF, NODE_NEXT, NODE_OR, NODE_REDO, NODE_RETRY, NODE_RETURN, rb_warning0, TRUE, value_expr, and yyerror.
|
static |
Definition at line 15652 of file ripper.c.
References nd_line, nd_type, NODE_BACK_REF, NODE_CALL, NODE_COLON2, NODE_COLON3, NODE_CONST, NODE_CVAR, NODE_DEFINED, NODE_DOT2, NODE_DOT3, NODE_DREGX, NODE_DREGX_ONCE, NODE_DSTR, NODE_DVAR, NODE_FALSE, NODE_GVAR, NODE_IVAR, NODE_LIT, NODE_LVAR, NODE_NIL, NODE_NTH_REF, NODE_SELF, NODE_STR, NODE_TRUE, rb_id2name(), rb_warnS, RTEST, ruby_sourceline, ruby_verbose, tCMP, tEQ, tGEQ, tLEQ, tNEQ, tPOW, tUMINUS, and tUPLUS.
|
static |
Definition at line 15741 of file ripper.c.
References nd_type, NODE_BLOCK, RTEST, ruby_verbose, and void_expr0.
Definition at line 239 of file ripper.c.
References vtable::capa, id, POINTER_P, vtable::pos, rb_bug(), rb_id2name(), REALLOC_N, vtable::tbl, and VTBL_DEBUG.
Referenced by arg_var_gen(), local_var_gen(), and shadowing_lvar_0().
Definition at line 215 of file ripper.c.
References ALLOC, ALLOC_N, vtable::capa, vtable::pos, vtable::prev, vtable::tbl, tbl, and VTBL_DEBUG.
Referenced by dyna_push_gen(), and local_push_gen().
Definition at line 227 of file ripper.c.
References POINTER_P, vtable::tbl, VTBL_DEBUG, and xfree.
Referenced by dyna_pop_1(), and local_pop_gen().
Definition at line 254 of file ripper.c.
References i, POINTER_P, vtable::pos, and vtable::tbl.
Referenced by dvar_curr_gen(), dvar_defined_gen(), local_id_gen(), and local_tbl_gen().
Definition at line 202 of file ripper.c.
References POINTER_P, and vtable::pos.
Referenced by arg_var_gen(), internal_id_gen(), local_tbl_gen(), and local_var_gen().
|
static |
Definition at line 15887 of file ripper.c.
References e_option_supplied(), and parser_warn.
Referenced by cond0(), and range_op().
|
static |
Definition at line 16280 of file ripper.c.
References cnt, i, is_private_local_id(), LVAR_USED, vtable::pos, rb_bug(), rb_id2name(), rb_warn4S, ruby_sourcefile, vtable::tbl, local_vars::used, v, and local_vars::vars.
Referenced by dyna_pop_1(), and local_pop_gen().
|
static |
Definition at line 15893 of file ripper.c.
References e_option_supplied(), and parser_warning.
Referenced by cond0().
while | ( | yyssp! | = yyss | ) |
Definition at line 11612 of file ripper.c.
References yydestruct(), and YYPOPSTACK.
yyexhaustedlab YY_ | ( | "memory exhausted" | ) |
YY_REDUCE_PRINT | ( | yyn | ) |
YY_SYMBOL_PRINT | ( | "Shifting" | , |
yytoken | , | ||
& | yylval, | ||
& | yylloc | ||
) |
YY_SYMBOL_PRINT | ( | ) |
|
static |
Definition at line 12005 of file ripper.c.
References rb_str_new_frozen(), rb_suppress_tracing(), RSTRING_PTR, ruby_sourcefile, ruby_sourcefile_string, ruby_sourceline, and yycompile0().
Referenced by parser_compile_string(), and rb_parser_compile_file_path().
Definition at line 11944 of file ripper.c.
References compile_for_eval, coverage(), debug_lines(), deferred_nodes, e_option_supplied(), parser_params::last_cr_line, lex_lastline, lex_nextline, lex_p, lex_pbeg, lex_pend, lex_strterm, n, parser_params::nerr, NEW_NIL, NEW_PRELUDE, parser_prepare(), parser_params::parser_ruby_sourcefile, parser_params::parser_ruby_sourceline, parser_params::parser_token_info_enabled, rb_ary_push(), rb_safe_level, RTEST, ruby_coverage, ruby_debug_lines, RUBY_DTRACE_PARSE_BEGIN, RUBY_DTRACE_PARSE_BEGIN_ENABLED, RUBY_DTRACE_PARSE_END, RUBY_DTRACE_PARSE_END_ENABLED, ruby_eval_tree, ruby_eval_tree_begin, ruby_sourcefile_string, ruby_sourceline, ruby_verbose, STR_NEW0, and yyparse.
Referenced by yycompile().
YYDPRINTF | ( | (stderr,"Starting parse\n") | ) |
YYFPRINTF | ( | yyoutput | , |
" | |||
) |
YYFPRINTF | ( | stderr | , |
"\n" | |||
) |
int yyparse | ( | ) |
YYPOPSTACK | ( | yylen | ) |
YYSTACK_FREE | ( | yyss | ) |
YYSTACK_FREE | ( | yymsg | ) |
|
static |
Definition at line 4783 of file ripper.c.
References YY_, YYCASE_, YYEMPTY, YYLAST, yymsg, yyn, YYNTOKENS, yypact_value_is_default, YYSIZE_T, yyssp, YYSTACK_ALLOC_MAXIMUM, yytable_value_is_error, YYTERROR, yytnamerr(), and yytoken.
YYUSE | ( | parser | ) |
YYUSE | ( | yyoutput | ) |
yynewstate __pad0__ |
yysetstate __pad1__ |
continue |
else |
|
static |
|
static |
|
static |
|
static |
Definition at line 13338 of file ripper.c.
Referenced by parser_magic_comment().
struct { ... } op_tbl[] |
Referenced by intern_str(), and rb_id2str().
int struct parser_params * parser |
Definition at line 4527 of file ripper.c.
Referenced by allocate(), dealloc(), initialize_params(), iseq_s_compile_file(), load_file(), load_file_internal(), mark(), parse(), parser_compile_string(), process_options(), rb_iseq_compile_with_option(), rb_parser_append_print(), rb_parser_compile_file_path(), rb_parser_encoding(), rb_parser_end_seen_p(), rb_parser_get_yydebug(), rb_parser_set_yydebug(), rb_parser_while_loop(), reg_named_capture_assign_gen(), yaml_file_read_handler(), yaml_parser_set_input_file(), yaml_parser_set_input_string(), and yaml_string_read_handler().
|
static |
|
static |
return t = parser_yylex(parser) |
Definition at line 14879 of file ripper.c.
Referenced by bm_search(), bm_search_backward(), bm_search_notrev(), bm_search_notrev_ic(), console_echo_p(), console_set_cooked(), console_set_echo(), console_set_raw(), d_lite_plus(), d_lite_rshift(), date_s_today(), datetime_to_time(), decode_year(), dt_new_by_frags(), encode_year(), f_muldiv(), fnmatch_helper(), for(), gcd_timetick_int(), getrusage_time(), gmtime_with_leapsecond(), gmtimew(), guess_local_offset(), i_gcd(), if(), join_argv(), localtimew(), md5_process(), mmrot3_(), mmswap_(), name_add(), nrv_alloc(), num_exact(), nurat_rationalize_internal(), obj_to_asn1gtime(), obj_to_asn1utime(), old_to_new(), onig_names_free(), ossl_ssl_session_get_time(), ossl_ssl_session_get_timeout(), ossl_ssl_session_set_time(), ossl_ssl_session_set_timeout(), ossl_x509stctx_initialize(), ossl_x509stctx_set_time(), ossl_x509stctx_set_trust(), ossl_x509store_set_trust(), pack_pack(), pack_unpack(), parser_here_document(), parser_parse_string(), rb_ary_compact_bang(), rb_ary_times(), rb_builtin_type_name(), rb_catch_protect(), rb_clock_gettime(), rb_f_kill(), rb_file_ftype(), rb_file_s_rename(), rb_float_new_inline(), rb_float_value_inline(), rb_gc_unregister_address(), rb_gmtime_r(), rb_localtime_r(), rb_mutex_wait_for(), rb_reg_quote(), rb_str_delete_bang(), rb_str_format(), rb_str_index(), rb_str_lstrip_bang(), rb_str_rstrip_bang(), rb_str_split_m(), rb_str_squeeze_bang(), rb_szqueue_max_set(), rb_time_timespec(), rb_time_timeval(), rb_vmdebug_stack_dump_raw(), rb_w32_free_environ(), rbtime2vtdate(), remove_backslashes(), remove_trace(), rotl64_swap(), ruby_brace_expand(), ruby_qsort(), search_nonascii(), set_ttymode(), slow_search(), slow_search_backward(), sock_initialize(), st_hash(), str_rindex(), str_strlen(), time_s_at(), time_timespec(), timegmw(), timelocalw(), timetick2integer(), timew_out_of_timet_range(), and while().
ID token |
Definition at line 16726 of file ripper.c.
Referenced by parser_yylex(), rb_id2str(), token_info_push(), yaml_parser_fetch_anchor(), yaml_parser_fetch_block_entry(), yaml_parser_fetch_block_scalar(), yaml_parser_fetch_directive(), yaml_parser_fetch_document_indicator(), yaml_parser_fetch_flow_collection_end(), yaml_parser_fetch_flow_collection_start(), yaml_parser_fetch_flow_entry(), yaml_parser_fetch_flow_scalar(), yaml_parser_fetch_key(), yaml_parser_fetch_plain_scalar(), yaml_parser_fetch_stream_end(), yaml_parser_fetch_stream_start(), yaml_parser_fetch_tag(), yaml_parser_fetch_value(), yaml_parser_parse_block_mapping_key(), yaml_parser_parse_block_mapping_value(), yaml_parser_parse_block_sequence_entry(), yaml_parser_parse_document_content(), yaml_parser_parse_document_end(), yaml_parser_parse_document_start(), yaml_parser_parse_flow_mapping_key(), yaml_parser_parse_flow_mapping_value(), yaml_parser_parse_flow_sequence_entry(), yaml_parser_parse_flow_sequence_entry_mapping_end(), yaml_parser_parse_flow_sequence_entry_mapping_key(), yaml_parser_parse_flow_sequence_entry_mapping_value(), yaml_parser_parse_indentless_sequence_entry(), yaml_parser_parse_node(), yaml_parser_parse_stream_start(), yaml_parser_process_directives(), yaml_parser_roll_indent(), and yaml_parser_unroll_indent().
parser parser_yylval val = Qundef |
|
static |
|
static |
|
static |
|
static |
int yyi |
YYSTYPE yylval |
|
static |
Definition at line 4923 of file ripper.c.
Referenced by if(), and yysyntax_error().
yyn = yytoken |
Definition at line 5019 of file ripper.c.
Referenced by for(), if(), yysyntax_error(), and yytnamerr().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
yytype_int16 yyssa[YYINITDEPTH] |
yyssp = yyss |
Definition at line 5010 of file ripper.c.
Referenced by for(), and yysyntax_error().
yystacksize = YYINITDEPTH |
|
static |
Definition at line 4687 of file ripper.c.
Referenced by yytnamerr().
|
static |
yytoken = 0 |
Definition at line 5022 of file ripper.c.
Referenced by yysyntax_error().
yytype_int16* yytop |
|
static |
YYSTYPE yyvsa[YYINITDEPTH] |