xo-reader: ++ logging
This commit is contained in:
parent
bc30b34bc2
commit
84e6d3f347
8 changed files with 74 additions and 19 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue