xo-reader2: + DFormalArgSsm printable facet
This commit is contained in:
parent
66158551c7
commit
e7d4c4ae28
8 changed files with 135 additions and 19 deletions
|
|
@ -39,7 +39,7 @@ set(SELF_SRCS
|
|||
|
||||
DExpectFormalArgSsm.cpp
|
||||
ISyntaxStateMachine_DExpectFormalArgSsm.cpp
|
||||
# IPrintable_DExpectFormalArgSsm.cpp
|
||||
IPrintable_DExpectFormalArgSsm.cpp
|
||||
|
||||
DExpectSymbolSsm.cpp
|
||||
ISyntaxStateMachine_DExpectSymbolSsm.cpp
|
||||
|
|
|
|||
|
|
@ -739,12 +739,10 @@ namespace xo {
|
|||
assert(expr.data());
|
||||
(void)expr;
|
||||
|
||||
return ppii.pps()->pretty_struct
|
||||
(ppii,
|
||||
"DDefineSsm",
|
||||
refrtag("defstate", defstate_),
|
||||
refrtag("def_expr", expr)
|
||||
);
|
||||
return ppii.pps()->pretty_struct(ppii,
|
||||
"DDefineSsm",
|
||||
refrtag("defstate", defstate_),
|
||||
refrtag("def_expr", expr));
|
||||
}
|
||||
} /*namespace scm*/
|
||||
} /*namespace xo*/
|
||||
|
|
|
|||
|
|
@ -216,18 +216,15 @@ namespace xo {
|
|||
exprstate::on_typedescr(td, p_psm);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
expect_formal_xs::print(std::ostream & os) const {
|
||||
os << "<expect_formal_xs"
|
||||
<< xtag("type", formalxs_type_);
|
||||
if (!result_.name().empty())
|
||||
os << xtag("result.name", result_.name());
|
||||
if (result_.td())
|
||||
os << xtag("result.td", result_.td());
|
||||
os << ">";
|
||||
}
|
||||
#endif
|
||||
|
||||
bool
|
||||
DExpectFormalArgSsm::pretty(const ppindentinfo & ppii) const {
|
||||
return ppii.pps()->pretty_struct
|
||||
(ppii,
|
||||
"DExpectFormalArgSsm");
|
||||
}
|
||||
|
||||
} /*namespace scm*/
|
||||
} /*namespace xo*/
|
||||
|
||||
|
|
|
|||
28
src/reader2/IPrintable_DExpectFormalArgSsm.cpp
Normal file
28
src/reader2/IPrintable_DExpectFormalArgSsm.cpp
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
/** @file IPrintable_DExpectFormalArgSsm.cpp
|
||||
*
|
||||
* Generated automagically from ingredients:
|
||||
* 1. code generator:
|
||||
* [/home/roland/proj/xo-umbrella2-claude1/xo-facet/codegen/genfacet]
|
||||
* arguments:
|
||||
* --input [idl/IPrintable_DExpectFormalArgSsm.json5]
|
||||
* 2. jinja2 template for abstract facet .hpp file:
|
||||
* [iface_facet_any.hpp.j2]
|
||||
* 3. idl for facet methods
|
||||
* [idl/IPrintable_DExpectFormalArgSsm.json5]
|
||||
**/
|
||||
|
||||
#include "ssm/IPrintable_DExpectFormalArgSsm.hpp"
|
||||
|
||||
namespace xo {
|
||||
namespace scm {
|
||||
auto
|
||||
IPrintable_DExpectFormalArgSsm::pretty(const DExpectFormalArgSsm & self, const ppindentinfo & ppii) -> bool
|
||||
{
|
||||
return self.pretty(ppii);
|
||||
}
|
||||
|
||||
|
||||
} /*namespace scm*/
|
||||
} /*namespace xo*/
|
||||
|
||||
/* end IPrintable_DExpectFormalArgSsm.cpp */
|
||||
Loading…
Add table
Add a link
Reference in a new issue