1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-15 16:19:54 +00:00
openmw-tes3mp/components/compiler/extensions.hpp
2010-07-03 09:54:01 +02:00

28 lines
636 B
C++

#ifndef COMPILER_EXTENSIONS_H_INCLUDED
#define COMPILER_EXTENSINOS_H_INCLUDED
#include <string>
#include <map>
namespace Compiler
{
/// \brief Collection of compiler extensions
class Extensions
{
int mNextKeywordIndex;
std::map<std::string, int> mKeywords;
public:
Extensions();
int searchKeyword (const std::string& keyword) const;
///< Return extension keyword code, that is assigned to the string \a keyword.
/// - if no match is found 0 is returned.
/// - keyword must be all lower case.
};
}
#endif