You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

39 lines
626 B

#include "branch_tier.hpp"
#include "fmt/core.h"
namespace l
{
static
void
load_literal_branch(toml::table const &v_)
{
}
}
BranchTier::BranchTier()
{
}
BranchTier::BranchTier(toml::value const &v_)
{
auto const &branches = toml::find(v_,"branch").as_array();
for(auto const &branch : branches)
{
auto const &table = branch.as_table();
std::string type;
type = table.at("type").as_string();
if(type == "literal")
l::load_literal_branch(table);
else if(type == "glob")
;
else if(type == "scan")
;
fmt::print("{}\n",type);
}
}