mirror of
https://github.com/ArashPartow/exprtk.git
synced 2025-06-12 16:27:23 +00:00
C++ Mathematical Expression Library (ExprTk) http://www.partow.net/programming/exprtk/index.html
This commit is contained in:
11
exprtk.hpp
11
exprtk.hpp
@ -13030,7 +13030,11 @@ namespace exprtk
|
||||
next_token();
|
||||
break;
|
||||
}
|
||||
else if (!token_is(seperator))
|
||||
|
||||
bool is_next_until = peek_token_is(token_t::e_symbol) &&
|
||||
peek_token_is("until");
|
||||
|
||||
if (!token_is(seperator) && is_next_until)
|
||||
{
|
||||
set_error(
|
||||
make_error(parser_error::e_syntax,
|
||||
@ -15324,6 +15328,11 @@ namespace exprtk
|
||||
return (lexer_.peek_next_token().type == ttype);
|
||||
}
|
||||
|
||||
inline bool peek_token_is(const std::string& s)
|
||||
{
|
||||
return (details::imatch(lexer_.peek_next_token().value,s));
|
||||
}
|
||||
|
||||
template <typename Type>
|
||||
class expression_generator
|
||||
{
|
||||
|
Reference in New Issue
Block a user