Actual cleanup

This commit is contained in:
Robin Jadoul 2016-05-25 19:00:38 +02:00
parent 23d0857100
commit 87d1cf65ae
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ namespace templ {
using TemplateContext = mstch::node;
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>);
class Template {

View File

@ -26,7 +26,7 @@ namespace lxs { namespace backends {
std::unique_ptr<std::ostream> headerStream = getOstreamForFileName(lexerName + ".h");
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]);
topLevel["name"] = templ::make_string(lexerName);