Ruby: internal/parse.h File Reference

Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)

Functions
parse.h File Reference

Internal header for the parser. More...

`#include "ruby/ruby.h"`

Go to the source code of this file.

## Functions
VALUE | rb_parser_set_yydebug (VALUE, VALUE)
void * | rb_parser_load_file (VALUE parser, VALUE name)
VALUE | rb_parser_set_context (VALUE, const struct rb_iseq_struct *, int)

## Detailed Description

Internal header for the parser.

Author
  Ruby developers ruby-.nosp@m.core.nosp@m.@ruby.nosp@m.-lan.nosp@m.g.org

Copyright
  This file is a part of the programming language Ruby. Permission is hereby granted, to either redistribute and/or modify this file, provided that the conditions mentioned in the file COPYING are met. Consult the file for details.

Definition in file parse.h.

## Function Documentation

## ◆ rb_parser_load_file()

void * rb_parser_load_file | ( | VALUE | parser,
|  | VALUE | name
| ) |  |

Definition at line 2374 of file ruby.c.

References f, load_file_arg::opt, and load_file_arg::parser.

Referenced by rb_load_file_str().

## ◆ rb_parser_set_context()

VALUE rb_parser_set_context | ( | VALUE | vparser,
|  | const struct rb_iseq_struct * | base,
|  | int | main
| ) |  |

Definition at line 20791 of file ripper.c.

References parser_params::error_buffer, main(), parser_params::parent_iseq, Qfalse, Qnil, and TypedData_Get_Struct.

## ◆ rb_parser_set_yydebug()

VALUE rb_parser_set_yydebug | ( | VALUE | self,
|  | VALUE | flag
| ) |  |

Definition at line 20886 of file ripper.c.