BFC-Compiler
A C23 Brainfuck compiler
Loading...
Searching...
No Matches
bfc_jumptable.h
Go to the documentation of this file.
1
8#ifndef BFC_JUMPTABLE_H
9#define BFC_JUMPTABLE_H
10
11#include <stdint.h>
12
13#include "bfc_error.h"
14#include "bfc_token.h"
15
26[[gnu::nonnull(1, 2)]]
27bfc_error_t bfc_parse_jump_table(int64_t** jump_table, bfc_token_stream_t const* const tok_stream);
28
32void bfc_jump_table_destroy(int64_t** pjump_table);
33
34#endif // BFC_JUMPTABLE_H
Compiler error values and diagnostics.
bfc_error_t bfc_parse_jump_table(int64_t **jump_table, bfc_token_stream_t const *const tok_stream)
Validates loop delimiters and builds matching bracket indices.
Definition bfc_jumptable.c:21
void bfc_jump_table_destroy(int64_t **pjump_table)
Releases a jump table and nulls the caller pointer.
Definition bfc_jumptable.c:116
Brainfuck token definitions and token-stream ownership.
Error value propagated through compiler stages.
Definition bfc_error.h:42
Owning token sequence produced by the lexer.
Definition bfc_token.h:51