bshell: re-organise build into three separate components

bshell: the front-end binary
bshell.runtime: contains the parser, compiler, and classes needed to run bshell scripts
bshell.core: contains the builtin commandlets and aliases
This commit is contained in:
2026-05-25 10:33:29 +01:00
parent 58c76a1f57
commit edfb3e24a3
165 changed files with 5173 additions and 4995 deletions
@@ -0,0 +1,35 @@
#ifndef BSHELL_COMMAND_ALIAS_H_
#define BSHELL_COMMAND_ALIAS_H_
#include "../verb.h"
#include <fx/macros.h>
#include <fx/string.h>
FX_DECLS_BEGIN;
struct bshell_runtime;
#define BSHELL_TYPE_ALIAS (bshell_alias_get_type())
FX_DECLARE_TYPE(bshell_alias);
FX_TYPE_CLASS_DECLARATION_BEGIN(bshell_alias)
const char *a_callable_name;
const char *a_target_name;
const char *(*a_get_callable_name)(const bshell_alias *);
const char *(*a_get_target_name)(const bshell_alias *);
FX_TYPE_CLASS_DECLARATION_END(bshell_alias)
extern fx_type_id bshell_alias_get_type(void);
extern enum bshell_status bshell_alias_get_callable_name(
const bshell_alias *alias,
fx_string *out);
extern enum bshell_status bshell_alias_get_target_name(
const bshell_alias *alias,
fx_string *out);
FX_DECLS_END;
#endif