C++ Mathematical Expression Library (ExprTk) http://www.partow.net/programming/exprtk/index.html

This commit is contained in:
Arash Partow
2014-05-31 07:38:57 +10:00
parent 6b86ec0deb
commit 1bf1073cd8
8 changed files with 145 additions and 38 deletions

View File

@ -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
{