| 30 | // Begin empty namespace ------------------------------------------------ |
| 31 | |
| 32 | bool is_number( const std::string &s ) |
| 33 | { char ch = s[0]; |
| 34 | bool number = (std::strchr("0123456789.", ch) != 0); |
| 35 | return number; |
| 36 | } |
| 37 | bool is_binary( const std::string &s ) |
| 38 | { char ch = s[0]; |
| 39 | bool binary = (strchr("+-*/.", ch) != 0); |