BFC-Compiler
A C23 Brainfuck compiler
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
20typedef 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;
31
35void bfc_cmd_help(void);
36
46[[gnu::nonnull(1)]]
47bfc_error_t bfc_process_args(bfc_args_t* cmd_args, int argc, char* const argv[]);
48
49#endif // BFC_CLI_H
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
void bfc_cmd_help(void)
Prints command-line usage and option descriptions.
Definition bfc_cli.c:207
Compiler error values and diagnostics.
Parsed command-line state.
Definition bfc_cli.h:21
Error value propagated through compiler stages.
Definition bfc_error.h:42