BFC-Compiler
A C23 Brainfuck compiler
Toggle main menu visibility
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)]]
27
bfc_error_t
bfc_parse_jump_table
(int64_t** jump_table,
bfc_token_stream_t
const
*
const
tok_stream);
28
32
void
bfc_jump_table_destroy
(int64_t** pjump_table);
33
34
#endif
// BFC_JUMPTABLE_H
bfc_error.h
Compiler error values and diagnostics.
bfc_parse_jump_table
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
bfc_jump_table_destroy
void bfc_jump_table_destroy(int64_t **pjump_table)
Releases a jump table and nulls the caller pointer.
Definition
bfc_jumptable.c:116
bfc_token.h
Brainfuck token definitions and token-stream ownership.
bfc_error_t
Error value propagated through compiler stages.
Definition
bfc_error.h:42
bfc_token_stream_t
Owning token sequence produced by the lexer.
Definition
bfc_token.h:51
include
bfc_jumptable.h
Generated by
1.17.0