diff --git a/DDParsers/include/Evaluator/Evaluator.h b/DDParsers/include/Evaluator/Evaluator.h index c8a331fa8ec75e398a65db20e7dbcf7921d7c1e1..80f41c8b6afa9aeb0b244677c3df768d07bfe4b1 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 5beb6626c4820de847933606256c1ffe4d010e38..070b2fe0cd1781fd05bbb83e2ff1a90621ea7c5f 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);