BFC-Compiler
A C23 Brainfuck compiler
Toggle main menu visibility
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)]]
28
bfc_error_t
bfc_lex
(
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
bfc_cli.h
Command-line parsing interface.
bfc_error.h
Compiler error values and diagnostics.
bfc_io.h
Source-file loading and source-line access.
bfc_lex
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
bfc_token.h
Brainfuck token definitions and token-stream ownership.
bfc_args_t
Parsed command-line state.
Definition
bfc_cli.h:21
bfc_error_t
Error value propagated through compiler stages.
Definition
bfc_error.h:42
bfc_program_t
Owning representation of a loaded source file.
Definition
bfc_io.h:21
bfc_token_stream_t
Owning token sequence produced by the lexer.
Definition
bfc_token.h:51
include
bfc_lexer.h
Generated by
1.17.0