29 #include YFM_NPL_NPLA1
30 #include YFM_NPL_SContext
32 using namespace YSLib;
50 const auto& new_name([&]()->
string{
53 const auto& str(Access<string>(*i));
67 if(n.GetName().empty())
68 return {0, new_name, std::move(n.Value)};
72 auto p_node_cont(make_unique<ValueNode::Container>());
77 p_node_cont->insert(n.GetName().empty() ?
ValueNode{0,
81 return {0, new_name, std::move(p_node_cont),
PointerTag()};
98 "Bad configuration found: cast failed from [%s] to [%s] .",
set< ValueNode > Container
YF_API string Deliteralize(const string &)
去除字面量边界分隔符。
YF_API ValueNode LoadNPLA1(ValueNode &&)
读取 NPLA1 翻译单元。
#define yunseq
无序列依赖表达式组求值。
GSStringTemplate< char >::basic_string string
std::string to_string(unsigned char val)
转换为字符串。
YF_API ValueNode TransformNPLA1(const ValueNode &)
转换设置: S 表达式抽象语法树变换为 NPLA1 语义结构。
Container Value const string name size_t GetSize() const ynothrow
std::basic_string< _tChar > sfmt(const _tChar *fmt,...)
以 C 标准输出格式的输出 std::basic_string 实例的对象。
const char * from() const