Ruby 3.5.0dev (2025-02-22 revision 412997300569c1853c09813e4924b6df3d7e8669)
parse.h
Go to the documentation of this file.
1#ifndef RBIMPL_INTERN_PARSE_H /*-*-C++-*-vi:se ft=cpp:*/
2#define RBIMPL_INTERN_PARSE_H
26#include "ruby/internal/value.h"
27
29
30/* symbol.c */
31
32
40ID rb_id_attrset(ID id);
41
53int rb_is_const_id(ID id);
54
64int rb_is_global_id(ID id);
65
75int rb_is_instance_id(ID id);
76
86int rb_is_attrset_id(ID id);
87
97int rb_is_class_id(ID id);
98
109int rb_is_local_id(ID id);
110
121int rb_is_junk_id(ID);
122
132int rb_symname_p(const char *str);
133
134/* vm.c */
135
144
158void rb_backref_set(VALUE md);
159
168
180void rb_lastline_set(VALUE str);
181
182/* symbol.c */
183
191
193
194#endif /* RBIMPL_INTERN_PARSE_H */
Defines RBIMPL_ATTR_CONST.
#define RBIMPL_ATTR_CONST()
Wraps (or simulates) __attribute__((const))
Definition const.h:36
Tweaking visibility of C variables/functions.
#define RBIMPL_SYMBOL_EXPORT_END()
Counterpart of RBIMPL_SYMBOL_EXPORT_BEGIN.
Definition dllexport.h:74
#define RBIMPL_SYMBOL_EXPORT_BEGIN()
Shortcut macro equivalent to RUBY_SYMBOL_EXPORT_BEGIN extern "C" {.
Definition dllexport.h:65
VALUE rb_backref_get(void)
Queries the last match, or Regexp.last_match, or the $~.
Definition vm.c:1836
VALUE rb_sym_all_symbols(void)
Collects every single bits of symbols that have ever interned in the entire history of the current pr...
Definition symbol.c:1058
int rb_is_global_id(ID id)
Classifies the given ID, then sees if it is a global variable.
Definition symbol.c:1091
void rb_lastline_set(VALUE str)
Updates $_.
Definition vm.c:1854
int rb_is_instance_id(ID id)
Classifies the given ID, then sees if it is an instance variable.
Definition symbol.c:1097
int rb_is_const_id(ID id)
Classifies the given ID, then sees if it is a constant.
Definition symbol.c:1079
int rb_is_junk_id(ID)
Classifies the given ID, then sees if it is a junk ID.
Definition symbol.c:1115
int rb_symname_p(const char *str)
Sees if the passed C string constructs a valid syntactic symbol.
Definition symbol.c:221
VALUE rb_lastline_get(void)
Queries the last line, or the $_.
Definition vm.c:1848
int rb_is_class_id(ID id)
Classifies the given ID, then sees if it is a class variable.
Definition symbol.c:1085
int rb_is_attrset_id(ID id)
Classifies the given ID, then sees if it is an attribute writer.
Definition symbol.c:1103
int rb_is_local_id(ID id)
Classifies the given ID, then sees if it is a local variable.
Definition symbol.c:1109
void rb_backref_set(VALUE md)
Updates $~.
Definition vm.c:1842
Defines RBIMPL_ATTR_NONNULL.
#define RBIMPL_ATTR_NONNULL(list)
Wraps (or simulates) __attribute__((nonnull))
Definition nonnull.h:30
Defines VALUE and ID.
uintptr_t ID
Type that represents a Ruby identifier such as a variable name.
Definition value.h:52
uintptr_t VALUE
Type that represents a Ruby object.
Definition value.h:40