mirror of
https://git.sfja.dk/Mikkel/slige.git
synced 2025-01-18 23:06:32 +00:00
slight progress
This commit is contained in:
parent
cc3d00c2c4
commit
eff378030a
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user