------------------------------------------------------------------------------
| 1185 | |
| 1186 | //------------------------------------------------------------------------------ |
| 1187 | int vtkFunctionParser::CheckSyntax() |
| 1188 | { |
| 1189 | int pos = -1; |
| 1190 | char* error = nullptr; |
| 1191 | |
| 1192 | this->CheckExpression(pos, &error); |
| 1193 | |
| 1194 | if (pos != -1 || error) |
| 1195 | { |
| 1196 | vtkErrorMacro(<< error << "; " |
| 1197 | << " see position " << pos); |
| 1198 | return 0; |
| 1199 | } |
| 1200 | else |
| 1201 | { |
| 1202 | return 1; |
| 1203 | } |
| 1204 | } |
| 1205 | |
| 1206 | //------------------------------------------------------------------------------ |
| 1207 | void vtkFunctionParser::CopyParseError(int& position, char** error) |