1#ifndef PRISM_INTERNAL_REGEXP_H
2#define PRISM_INTERNAL_REGEXP_H
6#include "prism/internal/parser.h"
17 const pm_node_t *receiver;
41 pm_regexp_offset_t *last = offsets->size == 0 ? NULL : &offsets->values[offsets->size - 1];
46 uint32_t previous = (last == NULL) ? base : (last->source - last->content);
47 if (source - content == previous)
return;
49 if (last != NULL && last->content == content) {
50 last->source = source;
52 pm_regexp_offsets_append(parser, offsets, (pm_regexp_offset_t) { .content = content, .source = source });
68void pm_regexp_parse_interpolated(
pm_parser_t *parser, pm_interpolated_regular_expression_node_t *node);
#define PRISM_EXPORTED_FUNCTION
By default, we compile with -fvisibility=hidden.
#define PRISM_INLINE
Old Visual Studio versions do not support the inline keyword, so we need to define it to be __inline.
This struct represents a slice in the source code, defined by an offset and a length.