| 106 |
|
strError += filename; |
| 107 |
|
} |
| 108 |
|
|
| 109 |
– |
strError += " line#" + lineCurrent; |
| 109 |
|
return strError; |
| 110 |
|
} |
| 111 |
|
|
| 116 |
|
|
| 117 |
|
|
| 118 |
|
bool lookingAtLeadingWhitespace(); |
| 119 |
< |
bool lookingAtComment(); |
| 119 |
> |
//bool lookingAtComment(); |
| 120 |
|
bool lookingAtEndOfLine(); |
| 121 |
|
bool lookingAtEndOfStatement(); |
| 122 |
|
bool lookingAtString(); |
| 139 |
|
bool clauseWithin(); |
| 140 |
|
bool clauseComparator(); |
| 141 |
|
bool clauseChemObjName(); |
| 142 |
< |
bool clauseName(std::string& name); |
| 144 |
< |
|
| 142 |
> |
bool clauseIndex(); |
| 143 |
|
Token tokenNext(); |
| 144 |
|
boost::any valuePeek(); |
| 145 |
|
int tokPeek(); |
| 146 |
|
|
| 147 |
|
bool addTokenToPostfix(const Token& token); |
| 148 |
+ |
bool isNameValid(const std::string& name); |
| 149 |
|
|
| 150 |
< |
|
| 151 |
< |
bool compileError(const std::string& errorMessage) { |
| 153 |
< |
std::cerr << "SelectionCompiler Error: " << errorMessage << std::endl; |
| 150 |
> |
bool compileError(const std::string& errorMsg) { |
| 151 |
> |
std::cerr << "SelectionCompiler Error: " << errorMsg << std::endl; |
| 152 |
|
error = true; |
| 153 |
< |
this->errorMessage = errorMessage; |
| 153 |
> |
this->errorMessage = errorMsg; |
| 154 |
|
return false; |
| 155 |
|
} |
| 156 |
|
|
| 203 |
|
return compileError("comparison operator expected"); |
| 204 |
|
} |
| 205 |
|
|
| 206 |
< |
bool integerExpected() { |
| 207 |
< |
return compileError("integer expected"); |
| 206 |
> |
bool numberExpected() { |
| 207 |
> |
return compileError("number expected"); |
| 208 |
|
} |
| 209 |
|
|
| 210 |
|
bool numberOrKeywordExpected() { |