Actual cleanup
This commit is contained in:
parent
23d0857100
commit
87d1cf65ae
|
@ -12,7 +12,7 @@ namespace templ {
|
||||||
using TemplateContext = mstch::node;
|
using TemplateContext = mstch::node;
|
||||||
|
|
||||||
TemplateContext make_string(std::string);
|
TemplateContext make_string(std::string);
|
||||||
TemplateContext make_map(std::map<std::string, TemplateContext>);
|
TemplateContext make_map(std::map<const std::string, TemplateContext>);
|
||||||
TemplateContext make_array(std::vector<TemplateContext>);
|
TemplateContext make_array(std::vector<TemplateContext>);
|
||||||
|
|
||||||
class Template {
|
class Template {
|
||||||
|
|
|
@ -26,7 +26,7 @@ namespace lxs { namespace backends {
|
||||||
std::unique_ptr<std::ostream> headerStream = getOstreamForFileName(lexerName + ".h");
|
std::unique_ptr<std::ostream> headerStream = getOstreamForFileName(lexerName + ".h");
|
||||||
std::unique_ptr<std::ostream> implementationStream = getOstreamForFileName(lexerName + ".cpp");
|
std::unique_ptr<std::ostream> implementationStream = getOstreamForFileName(lexerName + ".cpp");
|
||||||
|
|
||||||
std::map<std::string, templ::TemplateContext> topLevel;
|
std::map<const std::string, templ::TemplateContext> topLevel;
|
||||||
|
|
||||||
lexerName[0] = std::toupper(lexerName[0]);
|
lexerName[0] = std::toupper(lexerName[0]);
|
||||||
topLevel["name"] = templ::make_string(lexerName);
|
topLevel["name"] = templ::make_string(lexerName);
|
||||||
|
|
Loading…
Reference in New Issue