89 *
this,
"div: invalid division: ", l,
'/', r);
169 conv(std::istream& is,
bool =
true)
const
static value_t sub(const value_t l, const value_t r)
boost::flyweight< std::string, boost::flyweights::no_tracking, boost::flyweights::intermodule_holder > symbol
An internalized string.
ATTRIBUTE_NORETURN void fail_reading(std::istream &is, Args &&...args)
Throw an exception after failing to read from is.
value_t star(const value_t v) const
static value_t add(const value_t l, const value_t r)
value_t rgcd(const value_t l, const value_t r) const
ATTRIBUTE_NORETURN void raise_not_starrable(const WeightSet &ws, const typename WeightSet::value_t &w)
This value is not starrable.
static z make(std::istream &is)
Build from the description in is.
value_t lgcd(const value_t l, const value_t r) const
static constexpr star_status_t star_status()
static constexpr bool show_one()
Print as a parsable type string.
static constexpr bool is_special(value_t)
value_t ldivide(const value_t l, const value_t r) const
void require(Bool b, Args &&...args)
If b is not verified, raise an error with args as message.
static size_t hash(value_t v)
static bool is_zero(const value_t v)
static value_t conv(b, b::value_t v)
auto hash_value(const T &v) -> decltype(std::hash< T >
Following the naming convention of Boost.
static bool less(value_t lhs, value_t rhs)
Whether lhs < rhs.
static constexpr bool is_commutative()
static std::ostream & print(const value_t v, std::ostream &o=std::cout, format={})
std::ostream & print_set(std::ostream &o, format fmt={}) const
value_t conv(std::istream &is, bool=true) const
static bool equal(const value_t l, const value_t r)
An input/output format for valuesets.
value_t rdivide(const value_t l, const value_t r) const
Print as is. For instance, don't try to escape labels.
Print as rich UTF-8 text, escaped.
static constexpr bool has_lightening_weights()
static value_t mul(const value_t l, const value_t r)
weightset_mixin< detail::z_impl > z
weightset_mixin< detail::b_impl > b
static bool is_one(const value_t v)
ATTRIBUTE_PURE unsigned int gcd(unsigned int a, unsigned int b)
Greatest common divisor.
Provide a variadic mul on top of a binary mul(), and one().
Print as plain (ASCII) text, escaped.
static value_t transpose(const value_t v)
char eat(std::istream &is, char c)
Check lookahead character and advance.
static constexpr bool is_idempotent()
static value_t conv(self_t, value_t v)
weightset_mixin< detail::r_impl > r