xo-reader2: scasffold for on_quoted_literal()

This commit is contained in:
Roland Conybeare 2026-03-01 13:35:52 +11:00
commit 3f8be97290
37 changed files with 212 additions and 16 deletions

View file

@ -30,6 +30,19 @@ namespace xo {
class DSyntaxStateMachine {
public:
using TypeDescr = xo::reflect::TypeDescr;
using AGCObject = xo::mm::AGCObject;
/** Explicit error path **/
void illegal_quoted_literal(obj<AGCObject> lit,
ParserStateMachine * p_psm)
{
// starting with c++23 can use "this auto&& self" instead
Derived & self = static_cast<Derived&>(*this);
p_psm->illegal_quoted_literal(Derived::ssm_classname(),
lit,
self.get_expect_str());
}
/** Default implementation for required SyntaxStateMachine facet method
**/
@ -148,6 +161,13 @@ namespace xo {
self.get_expect_str());
}
/** Default impplementation for required SyntaxStateMachine facet method **/
void on_quoted_literal(obj<AGCObject> lit,
ParserStateMachine * p_psm)
{
this->illegal_quoted_literal(lit, p_psm);
}
};
} /*namespace scm*/