|
BFC-Compiler
A C23 Brainfuck compiler
|
Bracket validation and matching table interface. More...
Go to the source code of this file.
Functions | |
| 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. | |
| void | bfc_jump_table_destroy (int64_t **pjump_table) |
| Releases a jump table and nulls the caller pointer. | |
Bracket validation and matching table interface.
Validates loop delimiters and records matching bracket token indices.
| void bfc_jump_table_destroy | ( | int64_t ** | pjump_table | ) |
Releases a jump table and nulls the caller pointer.
Releases the matching-index table and nulls the caller pointer.
Releases a jump table and nulls the caller pointer.
| 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.
Validates nested brackets and fills a bidirectional matching-index table.
| [out] | jump_table | Receives an allocated table indexed by token position. |
| [in] | tok_stream | Token stream to validate. |
Validates loop delimiters and builds matching bracket indices.