1#ifndef PRISM_INTERNAL_NODE_H
2#define PRISM_INTERNAL_NODE_H
11#define PM_LOCATION_START(location_) ((location_)->start)
14#define PM_LOCATION_END(location_) ((location_)->start + (location_)->length)
32 pm_node_list_append_slow(arena, list, node);
A bump allocator for the prism parser.
#define PRISM_FORCE_INLINE
Force a function to be inlined at every call site.
Functions related to nodes in the AST.
A list of nodes in the source, most often used for lists of children.
size_t size
The number of nodes in the list.
struct pm_node ** nodes
The nodes in the list.
size_t capacity
The capacity of the list that has been allocated.
This is the base structure that represents a node in the syntax tree.