diff --git a/DDParsers/include/Evaluator/Evaluator.h b/DDParsers/include/Evaluator/Evaluator.h index c8a331fa8..80f41c8b6 100644 --- a/DDParsers/include/Evaluator/Evaluator.h +++ b/DDParsers/include/Evaluator/Evaluator.h @@ -57,7 +57,7 @@ namespace dd4hep { WARNING_EXISTING_FUNCTION, /**< Redefinition of existing function */ WARNING_BLANK_STRING, /**< Empty input string */ ERROR_NOT_A_NAME, /**< Not allowed sysmbol in the name of variable or function */ - ERROR_SYNTAX_ERROR, /**< Systax error */ + ERROR_SYNTAX_ERROR, /**< Syntax error */ ERROR_UNPAIRED_PARENTHESIS, /**< Unpaired parenthesis */ ERROR_UNEXPECTED_SYMBOL, /**< Unexpected sysbol */ ERROR_UNKNOWN_VARIABLE, /**< Non-existing variable */ diff --git a/DDParsers/src/Evaluator/Evaluator.cpp b/DDParsers/src/Evaluator/Evaluator.cpp index 5beb6626c..070b2fe0c 100644 --- a/DDParsers/src/Evaluator/Evaluator.cpp +++ b/DDParsers/src/Evaluator/Evaluator.cpp @@ -545,7 +545,7 @@ static int engine(char const* begin, char const* end, double & result, iWhat = SyntaxTable[iPrev][iCur]; iPrev = iCur; switch (iWhat) { - case 0: // systax error + case 0: // syntax error EVAL_EXIT( EVAL::ERROR_SYNTAX_ERROR, pointer ); case 1: // operand: number, variable, function EVAL_STATUS = operand(pointer, end, value, pointer, dictionary);