xo-reader2: + SyntaxStateMachine.forward_children method
Support gc traversal with goal of making ParserStateMachine a gc root
This commit is contained in:
parent
b0b14d4e41
commit
263999efdb
92 changed files with 633 additions and 43 deletions
|
|
@ -3,12 +3,13 @@
|
|||
#include "DSequenceSsm.hpp"
|
||||
#include "ssm/ISyntaxStateMachine_DSequenceSsm.hpp"
|
||||
#include "DExpectExprSsm.hpp"
|
||||
#include <xo/expression2/SequenceExpr.hpp>
|
||||
#include <xo/alloc2/GCObject.hpp>
|
||||
|
||||
#ifdef NOT_YET
|
||||
#include "expect_expr_xs.hpp"
|
||||
#include "let1_xs.hpp"
|
||||
#include "xo/expression/DefineExpr.hpp"
|
||||
#include "xo/expression/Sequence.hpp"
|
||||
#include "xo/expression/pretty_expression.hpp"
|
||||
#endif
|
||||
|
||||
|
|
@ -256,6 +257,12 @@ namespace xo {
|
|||
refrtag("expect", this->get_expect_str()));
|
||||
}
|
||||
|
||||
void
|
||||
DSequenceSsm::forward_children(obj<ACollector> gc) noexcept
|
||||
{
|
||||
gc.forward_inplace(&seq_expr_);
|
||||
}
|
||||
|
||||
} /*namespace scm*/
|
||||
} /*namespace xo*/
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue