BFC-Compiler
A C23 Brainfuck compiler
Loading...
Searching...
No Matches
bfc_lexer.h
Go to the documentation of this file.
1
8#ifndef BFC_LEXER_H
9#define BFC_LEXER_H
10
11#include "bfc_cli.h"
12#include "bfc_error.h"
13#include "bfc_io.h"
14#include "bfc_token.h"
15
27[[gnu::nonnull(1, 2)]]
29 bfc_token_stream_t** token_stream,
30 bfc_program_t const* const program,
31 bfc_args_t const cmd_args
32);
33
34#endif // BFC_LEXER_H
Command-line parsing interface.
Compiler error values and diagnostics.
Source-file loading and source-line access.
bfc_error_t bfc_lex(bfc_token_stream_t **token_stream, bfc_program_t const *const program, bfc_args_t const cmd_args)
Tokenizes a loaded Brainfuck source program.
Definition bfc_lexer.c:20
Brainfuck token definitions and token-stream ownership.
Parsed command-line state.
Definition bfc_cli.h:21
Error value propagated through compiler stages.
Definition bfc_error.h:42
Owning representation of a loaded source file.
Definition bfc_io.h:21
Owning token sequence produced by the lexer.
Definition bfc_token.h:51