xo-result2: + SchematikaParser

This commit is contained in:
Roland Conybeare 2026-01-18 19:25:43 -05:00
commit 6e2a2bbcd0
5 changed files with 344 additions and 0 deletions

View file

@ -33,12 +33,25 @@ namespace xo {
public:
ParserStateMachine(const ArenaConfig & config);
/** @defgroup scm-parserstatemachine-accessors accessor methods **/
///@{
bool debug_flag() const noexcept { return debug_flag_; }
ParserStack * stack() const noexcept { return stack_; }
const ParserResult & result() const noexcept { return result_; }
obj<AAllocator> expr_alloc() const noexcept { return expr_alloc_; }
///@}
/** @defgroup scm-parserstatemachine-bookkeeping bookkeeping methods **/
///@{
/** push syntax @p ssm onto @ref stack_ **/
void push_ssm(obj<ASyntaxStateMachine> ssm);
/** reset result to none **/
void reset_result() { result_ = ParserResult(); }
///@}
/** @defgroup scm-parserstatemachine-inputmethods input methods **/