xo-reader2: refactor: make() + _make() pair for each ssm
This commit is contained in:
parent
da58e18779
commit
9a97bb2680
12 changed files with 92 additions and 59 deletions
|
|
@ -65,20 +65,16 @@ namespace xo {
|
|||
///@{
|
||||
explicit DIfElseSsm(DIfElseExpr * ifelse_expr);
|
||||
|
||||
#ifdef NOT_YET
|
||||
/** create instance using memory from @p parser_mm
|
||||
* with initial scaffold @p ifelse_expr
|
||||
**/
|
||||
static obj<AExpression,DIfElseSsm> make(DArena & parser_mm,
|
||||
DIfElseExpr * ifelse_expr);
|
||||
#endif
|
||||
|
||||
/** create instance using memory from @p parser_mm
|
||||
* with initial scaffold @p ifelse_expr.
|
||||
**/
|
||||
static DIfElseSsm * _make(DArena & parser_mm,
|
||||
DIfElseExpr * ifelse_expr);
|
||||
|
||||
/** create fop referring to new DIfElseSsm **/
|
||||
static obj<ASyntaxStateMachine,DIfElseSsm> make(DArena & parser_mm,
|
||||
DIfElseExpr * ifelse_expr);
|
||||
|
||||
/** start nested parser for an if-else expression
|
||||
* on top of parser state machine @p p_psm.
|
||||
* Use @p parser_mm to allocate syntax state machines
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue