BFC-Compiler
A C23 Brainfuck compiler
Toggle main menu visibility
Loading...
Searching...
No Matches
bfc_cli.h
Go to the documentation of this file.
1
8
#ifndef BFC_CLI_H
9
#define BFC_CLI_H
10
11
#include <stdbool.h>
12
13
#include "
bfc_error.h
"
14
20
typedef
struct
21
{
22
bool
do_assemble;
23
bool
ask_help;
24
bool
ask_version;
25
bool
f_no_comments;
26
27
const
char
* input;
28
const
char
* output;
29
const
char
* target;
30
}
bfc_args_t
;
31
35
void
bfc_cmd_help
(
void
);
36
46
[[gnu::nonnull(1)]]
47
bfc_error_t
bfc_process_args
(
bfc_args_t
* cmd_args,
int
argc,
char
*
const
argv[]);
48
49
#endif
// BFC_CLI_H
bfc_process_args
bfc_error_t bfc_process_args(bfc_args_t *cmd_args, int argc, char *const argv[])
Parses compiler command-line arguments.
Definition
bfc_cli.c:254
bfc_cmd_help
void bfc_cmd_help(void)
Prints command-line usage and option descriptions.
Definition
bfc_cli.c:207
bfc_error.h
Compiler error values and diagnostics.
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
include
bfc_cli.h
Generated by
1.17.0