slight progress

This commit is contained in:
Theis Pieter Hollebeek 2024-11-26 20:03:48 +01:00
parent cc3d00c2c4
commit eff378030a

View File

@ -93,6 +93,13 @@ auto compile_asm(const std::vector<AsmLine>& lines) -> std::vector<uint32_t>
auto execute_action(std::unique_ptr<sliger::json::Value> req, auto execute_action(std::unique_ptr<sliger::json::Value> req,
std::unique_ptr<sliger::rpc::BufferedWriter> writer) std::unique_ptr<sliger::rpc::BufferedWriter> writer)
{ {
auto node = req->as<sliger::json::Object>();
auto& type = node.fields.at("type")->as<sliger::json::String>();
if (type.value == "some_type") {
/* etc. */
} else {
/* unrecognized action */
}
} }
int main() int main()