Browse Source

allowing underscore and dots as identifier symbols in exprtk

tempestpy_adaptions
dehnert 8 years ago
parent
commit
3f0afe9526
  1. 6
      resources/3rdparty/exprtk/exprtk.hpp

6
resources/3rdparty/exprtk/exprtk.hpp

@ -97,7 +97,11 @@ namespace exprtk
inline bool is_letter(const char_t c) inline bool is_letter(const char_t c)
{ {
return (('a' <= c) && (c <= 'z')) || return (('a' <= c) && (c <= 'z')) ||
(('A' <= c) && (c <= 'Z')) ;
(('A' <= c) && (c <= 'Z'))
#ifdef MODIFICATION
|| ('.' == c) || ('_' == c)
#endif
;
} }
inline bool is_digit(const char_t c) inline bool is_digit(const char_t c)

Loading…
Cancel
Save