summaryrefslogtreecommitdiff
path: root/src/bin/eolian_mono/eolian/mono/namespace.hh
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2017-11-23 21:50:16 -0300
committerLauro Moura <lauromoura@expertisesolutions.com.br>2017-12-04 15:47:50 -0300
commitd93e9ff286ce1961f530d56b5536881f47104ebd (patch)
treed9fd8cd25a64b9ab6b23ae34b92c342dc8e6b543 /src/bin/eolian_mono/eolian/mono/namespace.hh
parent9391407319424c503a78479b407737ccead945b7 (diff)
eolian_mono: Added code for eolian_mono generator
Based on the eolian_cxx library generators. Buildsystem files will come in a future commmit.
Diffstat (limited to 'src/bin/eolian_mono/eolian/mono/namespace.hh')
-rw-r--r--src/bin/eolian_mono/eolian/mono/namespace.hh27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/bin/eolian_mono/eolian/mono/namespace.hh b/src/bin/eolian_mono/eolian/mono/namespace.hh
new file mode 100644
index 0000000000..b0f1ddb0b3
--- /dev/null
+++ b/src/bin/eolian_mono/eolian/mono/namespace.hh
@@ -0,0 +1,27 @@
1#ifndef EOLIAN_MONO_NAMESPACE_HH
2#define EOLIAN_MONO_NAMESPACE_HH
3
4#include "grammar/generator.hpp"
5#include "grammar/klass_def.hpp"
6#include "grammar/case.hpp"
7#include "grammar/type.hpp"
8#include "using_decl.hh"
9#include "keyword.hh"
10
11namespace eolian_mono {
12
13std::vector<std::string> escape_namespace(std::vector<std::string> namespaces)
14{
15 // if(namespaces.empty())
16 // namespaces.push_back("nonamespace");
17 // else
18 {
19 for(auto&& i : namespaces)
20 i = escape_keyword(i);
21 }
22 return namespaces;
23}
24
25}
26
27#endif