Ruby 2.7.0p0(2019-12-25revision647ee6f091eafcce70ffb75ddf7e121e192ab217)

Data Fields
parser_params Struct Reference

## Data Fields
rb_imemo_tmpbuf_t * | heap
YYSTYPE * | lval
struct {
rb_strterm_t * strterm
VALUE(* gets )(struct parser_params *, VALUE)
VALUE input
VALUE prevline
VALUE lastline
VALUE nextline
const char * pbeg
const char * pcur
const char * pend
const char * ptok
union {
long ptr
VALUE(* call )(VALUE, int)
} gets_
enum lex_state_e state
int paren_nest
int lpar_beg
int brace_nest
} | lex
stack_type | cond_stack
stack_type | cmdarg_stack
int | tokidx
int | toksiz
int | tokline
int | heredoc_end
int | heredoc_indent
int | heredoc_line_indent
char * | tokenbuf
struct local_vars * | lvtbl
st_table * | pvtbl
st_table * | pktbl
int | line_count
int | ruby_sourceline
const char * | ruby_sourcefile
VALUE | ruby_sourcefile_string
rb_encoding * | enc
token_info * | token_info
VALUE | case_labels
VALUE | compile_option
VALUE | debug_buffer
VALUE | debug_output
ID | cur_arg
rb_ast_t * | ast
int | node_id
int | max_numparam
unsigned int | command_start:1
unsigned int | eofp: 1
unsigned int | ruby__end__seen: 1
unsigned int | debug: 1
unsigned int | has_shebang: 1
unsigned int | in_defined: 1
unsigned int | in_kwarg: 1
unsigned int | in_def: 1
unsigned int | in_class: 1
unsigned int | token_seen: 1
unsigned int | token_info_enabled: 1
unsigned int | error_p: 1
unsigned int | cr_seen: 1
unsigned int | do_print: 1
unsigned int | do_loop: 1
unsigned int | do_chomp: 1
unsigned int | do_split: 1
unsigned int | warn_location: 1
NODE * | eval_tree_begin
NODE * | eval_tree
VALUE | error_buffer
VALUE | debug_lines
const struct rb_iseq_struct * | parent_iseq
struct {
rb_strterm_t * strterm
VALUE(* gets )(struct parser_params *, VALUE)
VALUE input
VALUE prevline
VALUE lastline
VALUE nextline
const char * pbeg
const char * pcur
const char * pend
const char * ptok
union {
long ptr
VALUE(* call )(VALUE, int)
} gets_
enum lex_state_e state
int paren_nest
int lpar_beg
int brace_nest
} | lex

## Detailed Description

Definition at line 270 of file ripper.c.

## Field Documentation

## ◆ ast

rb_ast_t * parser_params::ast

Definition at line 324 of file ripper.c.

## ◆ brace_nest

int parser_params::brace_nest

Definition at line 296 of file ripper.c.

## ◆ call

VALUE(* parser_params::call) (VALUE, int)

Definition at line 288 of file ripper.c.

## ◆ case_labels

VALUE parser_params::case_labels

Definition at line 316 of file ripper.c.

## ◆ cmdarg_stack

stack_type parser_params::cmdarg_stack

Definition at line 299 of file ripper.c.

## ◆ command_start

unsigned int parser_params::command_start

Definition at line 329 of file ripper.c.

## ◆ compile_option

VALUE parser_params::compile_option

Definition at line 317 of file ripper.c.

## ◆ cond_stack

stack_type parser_params::cond_stack

Definition at line 298 of file ripper.c.

## ◆ cr_seen

unsigned int parser_params::cr_seen

Definition at line 344 of file ripper.c.

## ◆ cur_arg

ID parser_params::cur_arg

Definition at line 322 of file ripper.c.

## ◆ debug

unsigned int parser_params::debug

Definition at line 332 of file ripper.c.

## ◆ debug_buffer

VALUE parser_params::debug_buffer

Definition at line 319 of file ripper.c.

Referenced by rb_parser_printf().

## ◆ debug_lines

VALUE parser_params::debug_lines

Definition at line 358 of file ripper.c.

## ◆ debug_output

VALUE parser_params::debug_output

Definition at line 320 of file ripper.c.

Referenced by rb_parser_printf().

## ◆ do_chomp

unsigned int parser_params::do_chomp

Definition at line 351 of file ripper.c.

## ◆ do_loop

unsigned int parser_params::do_loop

Definition at line 350 of file ripper.c.

## ◆ do_print

unsigned int parser_params::do_print

Definition at line 349 of file ripper.c.

## ◆ do_split

unsigned int parser_params::do_split

Definition at line 352 of file ripper.c.

## ◆ enc

rb_encoding * parser_params::enc

Definition at line 314 of file ripper.c.

## ◆ eofp

unsigned int parser_params::eofp

Definition at line 330 of file ripper.c.

## ◆ error_buffer

VALUE parser_params::error_buffer

Definition at line 357 of file ripper.c.

## ◆ error_p

unsigned int parser_params::error_p

Definition at line 343 of file ripper.c.

## ◆ eval_tree

NODE * parser_params::eval_tree

Definition at line 356 of file ripper.c.

## ◆ eval_tree_begin

NODE * parser_params::eval_tree_begin

Definition at line 355 of file ripper.c.

## ◆ gets

VALUE(* parser_params::gets) (struct parser_params *, VALUE)

Definition at line 277 of file ripper.c.

## ◆ gets_ [1/2]

union { ... } parser_params::gets_

## ◆ gets_ [2/2]

union { ... } parser_params::gets_

## ◆ has_shebang

unsigned int parser_params::has_shebang

Definition at line 333 of file ripper.c.

## ◆ heap

rb_imemo_tmpbuf_t * parser_params::heap

Definition at line 271 of file ripper.c.

Referenced by rb_parser_free(), and rb_parser_realloc().

## ◆ heredoc_end

int parser_params::heredoc_end

Definition at line 303 of file ripper.c.

## ◆ heredoc_indent

int parser_params::heredoc_indent

Definition at line 304 of file ripper.c.

## ◆ heredoc_line_indent

int parser_params::heredoc_line_indent

Definition at line 305 of file ripper.c.

## ◆ in_class

unsigned int parser_params::in_class

Definition at line 337 of file ripper.c.

## ◆ in_def

unsigned int parser_params::in_def

Definition at line 336 of file ripper.c.

## ◆ in_defined

unsigned int parser_params::in_defined

Definition at line 334 of file ripper.c.

## ◆ in_kwarg

unsigned int parser_params::in_kwarg

Definition at line 335 of file ripper.c.

## ◆ input

VALUE parser_params::input

Definition at line 278 of file ripper.c.

## ◆ lastline

VALUE parser_params::lastline

Definition at line 280 of file ripper.c.

## ◆ lex [1/2]

struct { ... } parser_params::lex

Referenced by rb_parser_set_location(), and rb_parser_set_location_of_none().

## ◆ lex [2/2]

struct { ... } parser_params::lex

## ◆ line_count

int parser_params::line_count

Definition at line 310 of file ripper.c.

## ◆ lpar_beg

int parser_params::lpar_beg

Definition at line 294 of file ripper.c.

## ◆ lval

YYSTYPE * parser_params::lval

Definition at line 273 of file ripper.c.

## ◆ lvtbl

struct local_vars * parser_params::lvtbl

Definition at line 307 of file ripper.c.

## ◆ max_numparam

int parser_params::max_numparam

Definition at line 327 of file ripper.c.

## ◆ nextline

VALUE parser_params::nextline

Definition at line 281 of file ripper.c.

## ◆ node_id

int parser_params::node_id

Definition at line 325 of file ripper.c.

## ◆ paren_nest

int parser_params::paren_nest

Definition at line 292 of file ripper.c.

## ◆ parent_iseq

const struct rb_iseq_struct * parser_params::parent_iseq

Definition at line 359 of file ripper.c.

## ◆ pbeg

const char* parser_params::pbeg

Definition at line 282 of file ripper.c.

Referenced by rb_parser_set_location(), and rb_parser_set_location_of_none().

## ◆ pcur

const char* parser_params::pcur

Definition at line 283 of file ripper.c.

Referenced by rb_parser_set_location().

## ◆ pend

const char* parser_params::pend

Definition at line 284 of file ripper.c.

## ◆ pktbl

st_table * parser_params::pktbl

Definition at line 309 of file ripper.c.

## ◆ prevline

VALUE parser_params::prevline

Definition at line 279 of file ripper.c.

## ◆ ptok

const char* parser_params::ptok

Definition at line 285 of file ripper.c.

Referenced by rb_parser_set_location(), and rb_parser_set_location_of_none().

## ◆ ptr

long parser_params::ptr

Definition at line 287 of file ripper.c.

## ◆ pvtbl

st_table * parser_params::pvtbl

Definition at line 308 of file ripper.c.

## ◆ ruby__end__seen

unsigned int parser_params::ruby__end__seen

Definition at line 331 of file ripper.c.

## ◆ ruby_sourcefile

const char * parser_params::ruby_sourcefile

Definition at line 312 of file ripper.c.

## ◆ ruby_sourcefile_string

VALUE parser_params::ruby_sourcefile_string

Definition at line 313 of file ripper.c.

## ◆ ruby_sourceline

int parser_params::ruby_sourceline

Definition at line 311 of file ripper.c.

Referenced by rb_parser_set_location(), and rb_parser_set_location_of_none().

## ◆ state

enum lex_state_e parser_params::state

Definition at line 290 of file ripper.c.

## ◆ strterm

rb_strterm_t* parser_params::strterm

Definition at line 276 of file ripper.c.

## ◆ token_info

token_info * parser_params::token_info

Definition at line 315 of file ripper.c.

## ◆ token_info_enabled

unsigned int parser_params::token_info_enabled

Definition at line 339 of file ripper.c.

## ◆ token_seen

unsigned int parser_params::token_seen

Definition at line 338 of file ripper.c.

## ◆ tokenbuf

char * parser_params::tokenbuf

Definition at line 306 of file ripper.c.

## ◆ tokidx

int parser_params::tokidx

Definition at line 300 of file ripper.c.

## ◆ tokline

int parser_params::tokline

Definition at line 302 of file ripper.c.

## ◆ toksiz

int parser_params::toksiz

Definition at line 301 of file ripper.c.

## ◆ warn_location

unsigned int parser_params::warn_location

Definition at line 353 of file ripper.c.

The documentation for this struct was generated from the following files:

- ext/ripper/ripper.c
- parse.c