Ruby 4.1.0dev (2026-05-15 revision 11de89ca1a94899535875ea594962c79713615b1)
stream.h
Go to the documentation of this file.
1
6#ifndef PRISM_STREAM_H
7#define PRISM_STREAM_H
8
11
12#include "prism/arena.h"
13#include "prism/options.h"
14#include "prism/parser.h"
15#include "prism/source.h"
16
27
28#endif
A bump allocator for the prism parser.
#define PRISM_EXPORTED_FUNCTION
By default, we compile with -fvisibility=hidden.
Definition exported.h:20
The options that can be passed to parsing.
The parser used to parse Ruby source.
#define PRISM_NONNULL(...)
Mark the parameters of a function as non-null.
Definition nonnull.h:13
An opaque type representing the source code being parsed, regardless of origin (constant memory,...
PRISM_EXPORTED_FUNCTION pm_node_t * pm_parse_stream(pm_parser_t **parser, pm_arena_t *arena, pm_source_t *source, const pm_options_t *options) PRISM_NONNULL(1
Parse a stream of Ruby source and return the tree.
This is the base structure that represents a node in the syntax tree.
Definition ast.h:1065