|
BFC-Compiler
A C23 Brainfuck compiler
|
Token construction and token-stream cleanup. More...
Functions | |
| bfc_token_t | bfc_make_token (bfc_token_type_t const tok_type, uint32_t const line, uint32_t const col) |
| Constructs a token value from its kind and source coordinates. | |
| void | bfc_token_stream_destroy (bfc_token_stream_t **ptok_stream) |
| Releases the owned token array and stream object, then nulls the caller pointer. | |
Token construction and token-stream cleanup.
Implements value construction and ownership-aware destruction for lexical tokens.
|
nodiscard |
Constructs a token value from its kind and source coordinates.
Constructs a token value without allocating memory.
Constructs a token value from its kind and source coordinates.
| void bfc_token_stream_destroy | ( | bfc_token_stream_t ** | ptok_stream | ) |
Releases the owned token array and stream object, then nulls the caller pointer.
Releases a token stream and nulls the caller pointer.
Releases the owned token array and stream object, then nulls the caller pointer.