From eff378030a73ca68236cd5e55d819e502ea4f5fa Mon Sep 17 00:00:00 2001 From: Theis Pieter Hollebeek Date: Tue, 26 Nov 2024 20:03:48 +0100 Subject: [PATCH] slight progress --- runtime/main.cpp | 7 +++++++ 1 file changed, 7 insertions(+) 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()