xo-reader2: + SyntaxStateMachine.forward_children method
Support gc traversal with goal of making ParserStateMachine a gc root
This commit is contained in:
parent
ed3e26e718
commit
3af72fec64
91 changed files with 626 additions and 39 deletions
|
|
@ -32,6 +32,7 @@ public:
|
|||
using DataPtr = Object::DataPtr;
|
||||
using typeseq = xo::reflect::typeseq;
|
||||
using TypeDescr = ASyntaxStateMachine::TypeDescr;
|
||||
using ACollector = ASyntaxStateMachine::ACollector;
|
||||
using AGCObject = ASyntaxStateMachine::AGCObject;
|
||||
///@}
|
||||
|
||||
|
|
@ -92,6 +93,9 @@ public:
|
|||
void on_quoted_literal(obj<AGCObject> lit, ParserStateMachine * p_psm) {
|
||||
return O::iface()->on_quoted_literal(O::data(), lit, p_psm);
|
||||
}
|
||||
void forward_children(obj<ACollector> gc) {
|
||||
return O::iface()->forward_children(O::data(), gc);
|
||||
}
|
||||
|
||||
///@}
|
||||
/** @defgroup scm-syntaxstatemachine-member-vars **/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue