127 if (!okA || !okB || !okC) |
127 if (!okA || !okB || !okC) |
128 return false; |
128 return false; |
129 |
129 |
130 if (VERSION_NUMBER < MAKE_VERSION_NUMBER (major, minor, patch)) |
130 if (VERSION_NUMBER < MAKE_VERSION_NUMBER (major, minor, patch)) |
131 Error ("The script file requires " APPNAME " v%1, this is v%2", |
131 Error ("The script file requires " APPNAME " v%1, this is v%2", |
132 MakeVersionString (major, minor, patch), GetVersionString (EShortForm)); |
132 MakeVersionString (major, minor, patch), GetVersionString (false)); |
133 |
133 |
134 return true; |
134 return true; |
135 } |
135 } |
136 |
136 |
137 // ============================================================================ |
137 // ============================================================================ |
222 Error ("expected %1, got %2", toknames, DescribeToken (GetToken())); |
222 Error ("expected %1, got %2", toknames, DescribeToken (GetToken())); |
223 } |
223 } |
224 |
224 |
225 // ============================================================================= |
225 // ============================================================================= |
226 // |
226 // |
227 int Lexer::GetOneSymbol (const StringList& syms) |
227 int Lexer::GEXPRSYM_tOne (const StringList& syms) |
228 { |
228 { |
229 if (!GetNext()) |
229 if (!GetNext()) |
230 Error ("unexpected EOF"); |
230 Error ("unexpected EOF"); |
231 |
231 |
232 if (GetTokenType() == tkSymbol) |
232 if (GetTokenType() == tkSymbol) |