summaryrefslogtreecommitdiff
path: root/src/bin/eolian_mono/eolian/mono/namespace.hh
blob: b0f1ddb0b3562157f0f0baff7e484516cbb21687 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef EOLIAN_MONO_NAMESPACE_HH
#define EOLIAN_MONO_NAMESPACE_HH

#include "grammar/generator.hpp"
#include "grammar/klass_def.hpp"
#include "grammar/case.hpp"
#include "grammar/type.hpp"
#include "using_decl.hh"
#include "keyword.hh"

namespace eolian_mono {

std::vector<std::string> escape_namespace(std::vector<std::string> namespaces)
{
  // if(namespaces.empty())
  //   namespaces.push_back("nonamespace");
  // else
    {
      for(auto&& i : namespaces)
        i = escape_keyword(i);
    }
  return namespaces;
}
  
}

#endif