13#if !defined(VITA_STRING_PRIMITIVE_H)
14#define VITA_STRING_PRIMITIVE_H
34 explicit ife(
const cvect &c)
35 :
function(
"SIFE", c[1], {c[0], c[0], c[1], c[1]})
36 { Expects(c.size() == 2); }
44 case mql_format:
return "(%%1%% == %%2%% ? %%3%% : %%4%%)";
45 case python_format:
return "(%%3%% if %%1%% == %%2%% else %%4%%)";
52 const auto v0(args[0]);
55 const auto v1(args[1]);
A symbol with arity() > 0.
function(const std::string &, category_t, cvect)
virtual std::string display(format=c_format) const
String comparison for equality.
value_t eval(symbol_params &args) const final
Calculates the value of / performs the action associated with the symbol (it's implementation specifi...
std::string display(format f) const final
An interface for parameter passing to functions / terminals.
format
Symbol rendering format.
bool has_value(const value_t &v)
std::variant< D_VOID, D_INT, D_DOUBLE, D_STRING > value_t
A variant containing the data types used by the interpreter for internal calculations / output value ...