29 lines
548 B
C++
29 lines
548 B
C++
#include "Classifier.h"
|
|
|
|
|
|
bool Classifier::isreserveNames(const string &name) {
|
|
for (const auto &identifier : reserveNames) {
|
|
if (identifier == name){
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
bool Classifier::isOperator(char c) {
|
|
for (const auto &op : operators) {
|
|
if (op == c){
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
bool Classifier::isIsolator(char c) {
|
|
for (const auto &iso : isolators) {
|
|
if (iso == c){
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|