From 23d213d4263a746e3da9c360a1fc663020d324e9 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Mon, 12 Jan 2026 18:29:59 +0100 Subject: Dangling changes --- default.nix | 2 +- kel_cmds/.gitignore | 1 + kel_cmds/c++/cmd_schema.hpp | 19 +++++++++++++++++++ kel_cmds/c++/kel_cmds.cpp | 27 +++++++++++++++++++++++++++ 4 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 kel_cmds/.gitignore create mode 100644 kel_cmds/c++/cmd_schema.hpp diff --git a/default.nix b/default.nix index 890fccd..55824d0 100644 --- a/default.nix +++ b/default.nix @@ -1,5 +1,5 @@ { pkgs ? import {} -, llvmPackages ? pkgs.llvmPackages_21 +, llvmPackages ? pkgs.llvmPackages_20 , stdenv ? llvmPackages.stdenv , clang-tools ? llvmPackages.clang-tools }: diff --git a/kel_cmds/.gitignore b/kel_cmds/.gitignore new file mode 100644 index 0000000..fcfc4a1 --- /dev/null +++ b/kel_cmds/.gitignore @@ -0,0 +1 @@ +result* diff --git a/kel_cmds/c++/cmd_schema.hpp b/kel_cmds/c++/cmd_schema.hpp new file mode 100644 index 0000000..472fd9b --- /dev/null +++ b/kel_cmds/c++/cmd_schema.hpp @@ -0,0 +1,19 @@ +#pragma once + +#include "common.hpp" + +namespace kel { +namespace sch { +using namespace saw::schema; + +using CommandStruct = Struct< + Member, "command"> +>; + +using Commands = Struct< + +>; +} + + +} diff --git a/kel_cmds/c++/kel_cmds.cpp b/kel_cmds/c++/kel_cmds.cpp index 8b13789..b7ea512 100644 --- a/kel_cmds/c++/kel_cmds.cpp +++ b/kel_cmds/c++/kel_cmds.cpp @@ -1 +1,28 @@ +#include +#include + +namespace kel { +saw::error_or kel_main(int argc, char** argv){ + + return saw::make_void(); +} +} + +int main(int argc, char** argv){ + auto eov = kel::kel_main(argc, argv); + if(eov.is_error()){ + auto& err = eov.get_error(); + auto err_msg = err.get_message(); + std::cerr<<"[Error]: "<