Fix typos found by codespell
This commit is contained in:
parent
f46bffcd69
commit
36e64633b4
22
exprtk.hpp
22
exprtk.hpp
|
@ -2858,12 +2858,12 @@ namespace exprtk
|
||||||
((s_itr_ + 4) <= s_end_)
|
((s_itr_ + 4) <= s_end_)
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
const bool x_seperator = ('X' == std::toupper(*(s_itr_ + 1)));
|
const bool x_separator = ('X' == std::toupper(*(s_itr_ + 1)));
|
||||||
|
|
||||||
const bool both_digits = details::is_hex_digit(*(s_itr_ + 2)) &&
|
const bool both_digits = details::is_hex_digit(*(s_itr_ + 2)) &&
|
||||||
details::is_hex_digit(*(s_itr_ + 3)) ;
|
details::is_hex_digit(*(s_itr_ + 3)) ;
|
||||||
|
|
||||||
if (!(x_seperator && both_digits))
|
if (!(x_separator && both_digits))
|
||||||
{
|
{
|
||||||
t.set_error(token::e_err_string, initial_itr, s_itr_, base_itr_);
|
t.set_error(token::e_err_string, initial_itr, s_itr_, base_itr_);
|
||||||
token_list_.push_back(t);
|
token_list_.push_back(t);
|
||||||
|
@ -12134,7 +12134,7 @@ namespace exprtk
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// Function of N paramters.
|
// Function of N parameters.
|
||||||
typedef expression_node<T>* expression_ptr;
|
typedef expression_node<T>* expression_ptr;
|
||||||
typedef std::pair<expression_ptr,bool> branch_t;
|
typedef std::pair<expression_ptr,bool> branch_t;
|
||||||
typedef IFunction ifunction;
|
typedef IFunction ifunction;
|
||||||
|
@ -21925,7 +21925,7 @@ namespace exprtk
|
||||||
if (index < error_list_.size())
|
if (index < error_list_.size())
|
||||||
return error_list_[index];
|
return error_list_[index];
|
||||||
else
|
else
|
||||||
throw std::invalid_argument("parser::get_error() - Invalid error index specificed");
|
throw std::invalid_argument("parser::get_error() - Invalid error index specified");
|
||||||
}
|
}
|
||||||
|
|
||||||
inline std::string error() const
|
inline std::string error() const
|
||||||
|
@ -23611,7 +23611,7 @@ namespace exprtk
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
const token_t::token_type seperator = token_t::e_eof;
|
const token_t::token_type separator = token_t::e_eof;
|
||||||
|
|
||||||
scope_handler sh(*this);
|
scope_handler sh(*this);
|
||||||
|
|
||||||
|
@ -23642,12 +23642,12 @@ namespace exprtk
|
||||||
const bool is_next_until = peek_token_is(token_t::e_symbol) &&
|
const bool is_next_until = peek_token_is(token_t::e_symbol) &&
|
||||||
peek_token_is("until");
|
peek_token_is("until");
|
||||||
|
|
||||||
if (!token_is(seperator) && is_next_until)
|
if (!token_is(separator) && is_next_until)
|
||||||
{
|
{
|
||||||
set_error(
|
set_error(
|
||||||
make_error(parser_error::e_syntax,
|
make_error(parser_error::e_syntax,
|
||||||
current_token(),
|
current_token(),
|
||||||
"ERR064 - Expected '" + token_t::to_str(seperator) + "' in body of repeat until loop",
|
"ERR064 - Expected '" + token_t::to_str(separator) + "' in body of repeat until loop",
|
||||||
exprtk_error_location));
|
exprtk_error_location));
|
||||||
|
|
||||||
return error_node();
|
return error_node();
|
||||||
|
@ -24493,7 +24493,7 @@ namespace exprtk
|
||||||
{
|
{
|
||||||
token_t::token_type open_bracket = token_t::e_lcrlbracket;
|
token_t::token_type open_bracket = token_t::e_lcrlbracket;
|
||||||
token_t::token_type close_bracket = token_t::e_rcrlbracket;
|
token_t::token_type close_bracket = token_t::e_rcrlbracket;
|
||||||
token_t::token_type seperator = token_t::e_eof;
|
token_t::token_type separator = token_t::e_eof;
|
||||||
|
|
||||||
if (!token_is(open_bracket))
|
if (!token_is(open_bracket))
|
||||||
{
|
{
|
||||||
|
@ -24501,7 +24501,7 @@ namespace exprtk
|
||||||
{
|
{
|
||||||
open_bracket = token_t::e_lbracket;
|
open_bracket = token_t::e_lbracket;
|
||||||
close_bracket = token_t::e_rbracket;
|
close_bracket = token_t::e_rbracket;
|
||||||
seperator = token_t::e_comma;
|
separator = token_t::e_comma;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -24550,12 +24550,12 @@ namespace exprtk
|
||||||
|
|
||||||
const bool is_next_close = peek_token_is(close_bracket);
|
const bool is_next_close = peek_token_is(close_bracket);
|
||||||
|
|
||||||
if (!token_is(seperator) && is_next_close)
|
if (!token_is(separator) && is_next_close)
|
||||||
{
|
{
|
||||||
set_error(
|
set_error(
|
||||||
make_error(parser_error::e_syntax,
|
make_error(parser_error::e_syntax,
|
||||||
current_token(),
|
current_token(),
|
||||||
"ERR103 - Expected '" + details::to_str(seperator) + "' for call to multi-sequence section of " + source,
|
"ERR103 - Expected '" + details::to_str(separator) + "' for call to multi-sequence section of " + source,
|
||||||
exprtk_error_location));
|
exprtk_error_location));
|
||||||
|
|
||||||
return error_node();
|
return error_node();
|
||||||
|
|
|
@ -3044,7 +3044,7 @@ inline bool run_test03()
|
||||||
|
|
||||||
if (parser.compile(invalid_expr[i],expression))
|
if (parser.compile(invalid_expr[i],expression))
|
||||||
{
|
{
|
||||||
printf("run_test03() - Error: [1] Invalid expression compiled successfuly. Expression: %s\n",
|
printf("run_test03() - Error: [1] Invalid expression compiled successfully. Expression: %s\n",
|
||||||
invalid_expr[i].c_str());
|
invalid_expr[i].c_str());
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
@ -3070,7 +3070,7 @@ inline bool run_test03()
|
||||||
|
|
||||||
if (parser.compile(invalid_expr[i],expression))
|
if (parser.compile(invalid_expr[i],expression))
|
||||||
{
|
{
|
||||||
printf("run_test03() - Error: [2] Invalid expression compiled successfuly. Expression: %s\n",
|
printf("run_test03() - Error: [2] Invalid expression compiled successfully. Expression: %s\n",
|
||||||
invalid_expr[i].c_str());
|
invalid_expr[i].c_str());
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
@ -4466,7 +4466,7 @@ inline bool run_test10()
|
||||||
expected_var_symbol_list.begin());
|
expected_var_symbol_list.begin());
|
||||||
if (!var_result)
|
if (!var_result)
|
||||||
{
|
{
|
||||||
printf("run_test10() - Failed collected variable comparison between recieved and expected variables\n");
|
printf("run_test10() - Failed collected variable comparison between received and expected variables\n");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4476,7 +4476,7 @@ inline bool run_test10()
|
||||||
expected_func_symbol_list.begin());
|
expected_func_symbol_list.begin());
|
||||||
if (!func_result)
|
if (!func_result)
|
||||||
{
|
{
|
||||||
printf("run_test10() - Failed collected fuctions comparison between recieved and expected functions\n");
|
printf("run_test10() - Failed collected functions comparison between received and expected functions\n");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue