You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
383 B
C++
19 lines
383 B
C++
15 years ago
|
|
||
|
#include "extensions.hpp"
|
||
|
|
||
|
namespace Compiler
|
||
|
{
|
||
|
|
||
|
Extensions::Extensions() : mNextKeywordIndex (-1) {}
|
||
|
|
||
|
int Extensions::searchKeyword (const std::string& keyword) const
|
||
|
{
|
||
|
std::map<std::string, int>::const_iterator iter = mKeywords.find (keyword);
|
||
|
|
||
|
if (iter==mKeywords.end())
|
||
|
return 0;
|
||
|
|
||
|
return iter->second;
|
||
|
}
|
||
|
}
|