17 #ifndef AWALI_ALPHABETS_INT_HH
18 # define AWALI_ALPHABETS_INT_HH
23 #include <awali/common/json/node.cc>
35 using word_t = std::basic_string<int>;
44 static std::ostream&
jsname(std::ostream& o)
46 o <<
'"' <<
"Integer" <<
'"';
50 virtual std::string
vname(
bool =
true)
const
82 static const std::string sep{
":"};
123 template<
unsigned version = version::fsm_json>
139 template<
unsigned version = version::fsm_json>
155 template<
unsigned version = version::fsm_json>
virtual int to_int() const
Coerces this node_t to int.
Definition: node.hh:321
helper for manipulations of int letters
Definition: int.hh:32
static constexpr letter_t special_letter()
The reserved letter used to forge the labels for initial and final transitions.
Definition: int.hh:79
int letter_t
Definition: int.hh:34
static bool is_letter(const letter_t &)
Definition: int.hh:68
static letter_t transpose(letter_t l)
Definition: int.hh:56
static letter_t parse_one_letter(const std::string &s, size_t &p)
Definition: int.hh:95
json::node_t * to_json() const
Definition: int.hh:124
static std::string format(const letter_t l)
Definition: int.hh:114
static constexpr letter_t one_letter()
The reserved letter used to forge the "one" label (the unit, the identity).
Definition: int.hh:75
virtual std::string vname(bool=true) const
Definition: int.hh:50
json::int_t * letter_to_json(letter_t const &l) const
Definition: int.hh:156
static const std::string & separation_mark()
Definition: int.hh:81
std::basic_string< int > word_t
Definition: int.hh:35
static bool equals(const letter_t &l1, const letter_t &l2)
Definition: int.hh:62
static std::ostream & jsname(std::ostream &o)
Definition: int.hh:44
virtual ~int_letters()=default
static std::ostream & print(const letter_t &l, std::ostream &o)
Definition: int.hh:87
static letter_t conv_one_letter(std::istream &i)
Definition: int.hh:108
static std::string sname()
Definition: int.hh:39
letter_t letter_from_json(json::node_t const *p) const
Definition: int.hh:141
The semiring of floating Numbers.
Definition: r.hh:35
static value_t parse(const std::string &s, size_t &p)
Definition: z.hh:178
static value_t conv(self_type, value_t v)
Definition: z.hh:158
std::string to_string(identities i)
ATTRIBUTE_CONST int max(int a, int b)
Definition: arith.hh:54
ATTRIBUTE_CONST int min(int a, int b)
Definition: arith.hh:48
Main namespace of Awali.
Definition: ato.hh:22
Exceptions thrown during parsing.
Definition: parse_exception.hh:26