diff --git a/runtime/main.cpp b/runtime/main.cpp index 1c24bad..2fb866c 100644 --- a/runtime/main.cpp +++ b/runtime/main.cpp @@ -93,6 +93,13 @@ auto compile_asm(const std::vector& lines) -> std::vector auto execute_action(std::unique_ptr req, std::unique_ptr writer) { + auto node = req->as(); + auto& type = node.fields.at("type")->as(); + if (type.value == "some_type") { + /* etc. */ + } else { + /* unrecognized action */ + } } int main()