xo-reader: ++ logging

This commit is contained in:
Roland Conybeare 2024-08-28 09:34:30 -04:00
commit 84e6d3f347
8 changed files with 74 additions and 19 deletions

View file

@ -32,6 +32,15 @@ namespace xo {
n_lambdastatetype
};
extern const char *
lambdastatetype_descr(lambdastatetype x);
inline std::ostream &
operator<< (std::ostream & os, lambdastatetype x) {
os << lambdastatetype_descr(x);
return os;
}
/** @class lambda_xs
* @brief parsing state-machine for a lambda-expression
*
@ -53,6 +62,8 @@ namespace xo {
virtual void on_semicolon_token(const token_type & tk,
parserstatemachine * p_psm) override;
virtual void print(std::ostream & os) const override;
private:
static std::unique_ptr<lambda_xs> make();