3 #ifndef _MADARA_KNOWLEDGE_INTERPRETER_INL_
4 #define _MADARA_KNOWLEDGE_INTERPRETER_INL_
6 #ifndef _MADARA_NO_KARL_
20 return input ==
'+' || input ==
'-' || input ==
'*' || input ==
'/' ||
27 return input >=
'0' && input <=
'9';
33 return input ==
'e' || input ==
'E' || input ==
'-' ||
34 (input >=
'0' && input <=
'9');
40 return input ==
"true" || input ==
"false" || input ==
"nan" ||
47 return input ==
'"' || input ==
'\'';
54 return (input >=
'a' && input <=
'z') || (input >=
'A' && input <=
'Z') ||
55 (input ==
'_') || (input >=
'0' && input <=
'9') || input ==
'.' ||
56 input ==
'{' || input ==
'}';
62 return input ==
' ' || input ==
'\t' || input ==
'\r' || input ==
'\n';
73 return cache_.erase(expression) == 1;
static bool is_operator(char input)
Checks a character to see if it is a mathematical operator.
static bool is_string_literal(char input)
Checks a character to see if it is a string literal.
static bool is_reserved_word(const std::string &input)
Checks a given input for a reserved word literal.
static bool is_whitespace(char input)
Checks a character to see if it is whitespace.
static bool is_exponential(char input)
Checks a character to see if it is in scientific format.
static bool is_alphanumeric(char input)
Checks a character to see if it is alphanumeric.
static bool is_number(char input)
Checks a character to see if it is a number.
bool delete_expression(const std::string &expression)
Attempts to delete an expression from cache.