26 :
symbol(dis, c), argt_(std::move(args))
54 std::string args(
"%%1%%");
55 for (
unsigned i(1); i <
arity(); ++i)
56 args +=
",%%" + std::to_string(i + 1) +
"%%";
58 return name() +
"(" + args +
")";
A symbol with arity() > 0.
function(const std::string &, category_t, cvect)
virtual std::string display(format=c_format) const
unsigned arity() const final
bool is_valid() const override
Together functions and terminals are referred to as symbols.
virtual bool is_valid() const
format
Symbol rendering format.
The main namespace for the project.
std::size_t category_t
A category provide operations which supplement or supersede those of the domain but which are restric...