Skip to content

Commit

Permalink
Evaluator: fix typo: systax -> syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
veprbl authored and andresailer committed Sep 19, 2023
1 parent df64551 commit 9cc3b01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DDParsers/include/Evaluator/Evaluator.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
2 changes: 1 addition & 1 deletion DDParsers/src/Evaluator/Evaluator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9cc3b01

Please sign in to comment.