|
BFC-Compiler
A C23 Brainfuck compiler
|
Command-line parsing interface. More...
Go to the source code of this file.
Data Structures | |
| struct | bfc_args_t |
| Parsed command-line state. More... | |
Functions | |
| void | bfc_cmd_help (void) |
| Prints command-line usage and option descriptions. | |
| bfc_error_t | bfc_process_args (bfc_args_t *cmd_args, int argc, char *const argv[]) |
| Parses compiler command-line arguments. | |
Command-line parsing interface.
Defines parsed compiler options and the command-line processor.
| void bfc_cmd_help | ( | void | ) |
Prints command-line usage and option descriptions.
Renders usage text from the same option table used for parsing.
Prints command-line usage and option descriptions.
| bfc_error_t bfc_process_args | ( | bfc_args_t * | cmd_args, |
| int | argc, | ||
| char *const | argv[] ) |
Parses compiler command-line arguments.
Parses options, option values, the end-of-options marker, and one input path.
| [out] | cmd_args | Receives zero-initialized parsed arguments. |
| [in] | argc | Argument count. |
| [in] | argv | Argument vector. |
Parses compiler command-line arguments.