xo-reader2 scaffold (fomo+arena version of xo-reader/) [WIP]
This commit is contained in:
parent
f4e5261a72
commit
15d9448d03
29 changed files with 1385 additions and 22 deletions
28
xo-reader2/src/reader2/ParserStack.cpp
Normal file
28
xo-reader2/src/reader2/ParserStack.cpp
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
/** @file ParserStack.cpp
|
||||
*
|
||||
* @author Roland Conybeare, Jan 2026
|
||||
**/
|
||||
|
||||
#include "ParserStack.hpp"
|
||||
#include "SyntaxStateMachine.hpp"
|
||||
|
||||
namespace xo {
|
||||
using xo::facet::typeseq;
|
||||
|
||||
namespace scm {
|
||||
|
||||
ParserStack *
|
||||
ParserStack::push(obj<AAllocator> mm,
|
||||
obj<ASyntaxStateMachine> ssm)
|
||||
|
||||
{
|
||||
void * mem = mm.alloc(typeseq::id<ParserStack>(),
|
||||
sizeof(ParserStack));
|
||||
|
||||
return new (mem) ParserStack(ssm, parent_);
|
||||
}
|
||||
|
||||
} /*namespace scm*/
|
||||
} /*namespace xo*/
|
||||
|
||||
/* end ParserStack.cpp */
|
||||
Loading…
Add table
Add a link
Reference in a new issue