Ruby: include/ruby/internal/intern/parse.h Source File

Ruby 3.4.8p72 (2025-12-17 revision 995b59f66677d44767ce9faac6957e5543617ff9)

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
23#include "ruby/internal/attr/const.h"
24#include "ruby/internal/attr/nonnull.h"
25#include "ruby/internal/dllexport.h"
26#include "ruby/internal/value.h"
27
28 RBIMPL_SYMBOL_EXPORT_BEGIN()
29
30/* symbol.c */
31
32
40 ID rb_id_attrset(ID id);
41
42 RBIMPL_ATTR_CONST()
53int rb_is_const_id(ID id);
54
55 RBIMPL_ATTR_CONST()
64int rb_is_global_id(ID id);
65
66 RBIMPL_ATTR_CONST()
75int rb_is_instance_id(ID id);
76
77 RBIMPL_ATTR_CONST()
86int rb_is_attrset_id(ID id);
87
88 RBIMPL_ATTR_CONST()
97int rb_is_class_id(ID id);
98
99 RBIMPL_ATTR_CONST()
109int rb_is_local_id(ID id);
110
111 RBIMPL_ATTR_CONST()
121int rb_is_junk_id(ID);
122
123 RBIMPL_ATTR_NONNULL(())
132int rb_symname_p(const char *str);
133
134/* vm.c */
135
143 VALUE rb_backref_get(void);
144
158void rb_backref_set(VALUE md);
159
167 VALUE rb_lastline_get(void);
168
180void rb_lastline_set(VALUE str);
181
182/* symbol.c */
183
190 VALUE rb_sym_all_symbols(void);
191
192 RBIMPL_SYMBOL_EXPORT_END()
193
194#endif /* RBIMPL_INTERN_PARSE_H */
const.h
Defines RBIMPL_ATTR_CONST.
RBIMPL_ATTR_CONST
#define RBIMPL_ATTR_CONST()
Wraps (or simulates) __attribute__((const))
Definition const.h:36
dllexport.h
Tweaking visibility of C variables/functions.
RBIMPL_SYMBOL_EXPORT_END
#define RBIMPL_SYMBOL_EXPORT_END()
Counterpart of RBIMPL_SYMBOL_EXPORT_BEGIN.
Definition dllexport.h:74
RBIMPL_SYMBOL_EXPORT_BEGIN
#define RBIMPL_SYMBOL_EXPORT_BEGIN()
Shortcut macro equivalent to RUBY_SYMBOL_EXPORT_BEGIN extern "C" {.
Definition dllexport.h:65
rb_backref_get
VALUE rb_backref_get(void)
Queries the last match, or Regexp.last_match, or the $~.
Definition vm.c:1835
rb_sym_all_symbols
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:1043
rb_is_global_id
int rb_is_global_id(ID id)
Classifies the given ID, then sees if it is a global variable.
Definition symbol.c:1076
rb_lastline_set
void rb_lastline_set(VALUE str)
Updates $_.
Definition vm.c:1853
rb_is_instance_id
int rb_is_instance_id(ID id)
Classifies the given ID, then sees if it is an instance variable.
Definition symbol.c:1082
rb_is_const_id
int rb_is_const_id(ID id)
Classifies the given ID, then sees if it is a constant.
Definition symbol.c:1064
rb_is_junk_id
int rb_is_junk_id(ID)
Classifies the given ID, then sees if it is a junk ID.
Definition symbol.c:1100
rb_symname_p
int rb_symname_p(const char *str)
Sees if the passed C string constructs a valid syntactic symbol.
Definition symbol.c:206
rb_lastline_get
VALUE rb_lastline_get(void)
Queries the last line, or the $_.
Definition vm.c:1847
rb_is_class_id
int rb_is_class_id(ID id)
Classifies the given ID, then sees if it is a class variable.
Definition symbol.c:1070
rb_is_attrset_id
int rb_is_attrset_id(ID id)
Classifies the given ID, then sees if it is an attribute writer.
Definition symbol.c:1088
rb_is_local_id
int rb_is_local_id(ID id)
Classifies the given ID, then sees if it is a local variable.
Definition symbol.c:1094
rb_backref_set
void rb_backref_set(VALUE md)
Updates $~.
Definition vm.c:1841
nonnull.h
Defines RBIMPL_ATTR_NONNULL.
RBIMPL_ATTR_NONNULL
#define RBIMPL_ATTR_NONNULL(list)
Wraps (or simulates) __attribute__((nonnull))
Definition nonnull.h:30
value.h
Defines VALUE and ID.
ID
uintptr_t ID
Type that represents a Ruby identifier such as a variable name.
Definition value.h:52
VALUE
uintptr_t VALUE
Type that represents a Ruby object.
Definition value.h:40