Reqrite project as BEd specific.

This commit is contained in:
2026-08-13 16:17:32 +01:00
parent cc5d475ab8
commit cd13557e15
46 changed files with 1115 additions and 1026 deletions
+30
View File
@@ -0,0 +1,30 @@
#pragma once
#include "definitions.h"
#include "internal/trie/trie.h"
#include "pch.h"
namespace bed::internal::commands {
struct Command {
enum struct AddressMode : uint8_t {
None,
Single,
Range
} address_mode;
enum struct SuffixKind : uint8_t {
None,
Suffix,
Argument,
Continuation
} suffix;
std::string desc;
bool accept_zero;
void (*handle)(BEd &, std::span<const uint64_t>, std::string_view);
static void register_posix(BEd &ctx);
};
} // namespace bed::internal::commands