Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Evaluator: fix typo: systax -> syntax #1171

Merged
merged 2 commits into from
Sep 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions DDParsers/include/Evaluator/Evaluator.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ namespace dd4hep {
WARNING_EXISTING_VARIABLE, /**< Redefinition of existing variable */
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_NOT_A_NAME, /**< Not allowed symbol in the name of variable or function */
ERROR_SYNTAX_ERROR, /**< Syntax error */
ERROR_UNPAIRED_PARENTHESIS, /**< Unpaired parenthesis */
ERROR_UNEXPECTED_SYMBOL, /**< Unexpected sysbol */
ERROR_UNEXPECTED_SYMBOL, /**< Unexpected symbol */
ERROR_UNKNOWN_VARIABLE, /**< Non-existing variable */
ERROR_UNKNOWN_FUNCTION, /**< Non-existing function */
ERROR_EMPTY_PARAMETER, /**< Function call has empty parameter */
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