33#define SNOBOL_AST_VERSION_MAJOR 1
34#define SNOBOL_AST_VERSION_MINOR 0
35#define SNOBOL_AST_VERSION_PATCH 0
36#define SNOBOL_AST_VERSION_STRING "1.0.0"
42#define SNOBOL_AST_VERSION_CHECK(major, minor) \
43 ((major) == SNOBOL_AST_VERSION_MAJOR && (minor) <= SNOBOL_AST_VERSION_MINOR)
Bump-allocated arena pool for short-lived scratch allocations (e.g. AST nodes during compilation,...
void snobol_ast_dump(const ast_node_t *node, FILE *out, int indent)
ast_node_t * snobol_ast_create_regref(int reg)
ast_node_t * snobol_ast_create_emit(const char *text, size_t len, int reg)
ast_node_t * snobol_ast_create_rpos(int32_t n)
ast_node_t * snobol_ast_create_tab(int32_t n)
ast_node_t * snobol_ast_create_eval(int fn, int reg)
ast_node_t * snobol_ast_create_anchor(anchor_type_t atype)
ast_node_t * snobol_ast_create_assign(int var, int reg)
ast_node_t * snobol_ast_create_pos(int32_t n)
ast_node_t * snobol_ast_create_fail(void)
struct ast_node ast_node_t
ast_node_t * snobol_ast_create_notany(const char *set, size_t len)
const char * snobol_ast_type_name(ast_type_t type)
ast_node_t * snobol_ast_create_cap(int reg, ast_node_t *sub)
uint32_t snobol_ast_depth(const ast_node_t *node)
void snobol_ast_free(ast_node_t *node)
ast_node_t * snobol_ast_create_any(const char *set, size_t len)
ast_node_t * snobol_ast_create_arbno(ast_node_t *sub)
ast_node_t * snobol_ast_create_dynamic_eval(ast_node_t *expr)
snobol_ast_version_t snobol_ast_get_version(void)
ast_node_t * snobol_ast_create_span(const char *set, size_t len)
snobol_arena_t * snobol_ast_clear_arena(void)
ast_node_t * snobol_ast_create_break(const char *set, size_t len)
ast_node_t * snobol_ast_create_alt(ast_node_t *left, ast_node_t *right)
ast_node_t * snobol_ast_create_bal(uint32_t open_cp, uint32_t close_cp)
ast_node_t * snobol_ast_create_repeat(ast_node_t *sub, int32_t min, int32_t max)
ast_node_t * snobol_ast_create_rem(void)
ast_node_t * snobol_ast_create_breakx(const char *set, size_t len)
ast_node_t * snobol_ast_clone(const ast_node_t *node)
bool snobol_ast_version_check(uint16_t required_major, uint16_t required_minor)
ast_node_t * snobol_ast_create_rtab(int32_t n)
ast_node_t * snobol_ast_create_fence(void)
void snobol_ast_set_arena(snobol_arena_t *arena)
ast_node_t * snobol_ast_create_table_access(const char *table, ast_node_t *key)
ast_node_t * snobol_ast_create_literal(const char *text, size_t len)
ast_node_t * snobol_ast_create_label(char *name, ast_node_t *target)
ast_node_t * snobol_ast_create_concat(ast_node_t **parts, size_t count)
const char * snobol_ast_version_string(void)
ast_node_t * snobol_ast_create_len(int32_t n)
ast_node_t * snobol_ast_create_goto(const char *label)
ast_node_t * snobol_ast_create_lit(const char *text, size_t len)
ast_node_t * snobol_ast_create_table_update(const char *table, ast_node_t *key, ast_node_t *value)
ast_node_t * snobol_ast_create_abort(void)
ast_node_t * snobol_ast_create_succeed(void)
struct ast_node::@033015144052056314115242066137206173337123340163::@155206377163265200264317333172066021261225005052 label
struct ast_node::@033015144052056314115242066137206173337123340163::@332261164025143207061111236210022321310161262313 table_access
struct ast_node::@033015144052056314115242066137206173337123340163::@031060216132031025101060350310134375024266345050 rpos_rtab
struct ast_node::@033015144052056314115242066137206173337123340163::@377372014155322376021133133016057012345260337101 anchor
struct ast_node::@033015144052056314115242066137206173337123340163::@006346151123106165360046352073306115150265312156 emit
struct ast_node::@033015144052056314115242066137206173337123340163::@104022320322376201234131356107147371103164277354 arbno
struct ast_node::@033015144052056314115242066137206173337123340163::@264016357332256145005155021252333112314170037227 goto_stmt
struct ast_node::@033015144052056314115242066137206173337123340163::@052231206114155066264222372340300200247013101213 reg_ref
struct ast_node::@033015144052056314115242066137206173337123340163::@300036324266051130306131275221337334107337067330 table_update
struct ast_node::@033015144052056314115242066137206173337123340163::@354104241334014355010302174157255242027176060204 alt
struct ast_node::@033015144052056314115242066137206173337123340163::@014227042236214300164370121154165074327317162131 dynamic_eval
struct ast_node::@033015144052056314115242066137206173337123340163::@204361121105170314033050161356126154140025314020 assign
struct ast_node::@033015144052056314115242066137206173337123340163::@200035045072054337157210160233246075152370215062 breakx
struct ast_node::@033015144052056314115242066137206173337123340163::@046266103355376102226136365305312301070277115225 bal
struct ast_node::@033015144052056314115242066137206173337123340163::@242153333367173047300261225015306152106011010274 concat
struct ast_node::@033015144052056314115242066137206173337123340163::@271004003310230223217122346372355323003233373363 literal
union ast_node::@033015144052056314115242066137206173337123340163 data
struct ast_node::@033015144052056314115242066137206173337123340163::@240344307064252344225102356310273027325035213037 eval
struct ast_node::@033015144052056314115242066137206173337123340163::@240305076364032370261227026204177176344245122243 repetition
struct ast_node::@033015144052056314115242066137206173337123340163::@003373343272351015325337242007337173267370254312 charclass
struct ast_node::@033015144052056314115242066137206173337123340163::@250024176254060122072205026232152227265234136254 cap