summaryrefslogtreecommitdiff
path: root/src/lib/eolian_cxx/grammar/keyword.hpp
blob: b64201eac3866debca0b311ed89e01326291a456 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef EOLIAN_CXX_KEYWORD_HH
#define EOLIAN_CXX_KEYWORD_HH

namespace efl { namespace eolian { namespace grammar {

inline std::string escape_keyword(std::string const& name)
{
  if(name == "delete" || name == "register" || name == "do")
    return "cxx_" + name;
  return name;
}
      
} } }

#endif