75 lines
No EOL
3.2 KiB
C++
75 lines
No EOL
3.2 KiB
C++
/** @file ISyntaxStateMachine_DLambdaSsm.hpp
|
|
*
|
|
* Generated automagically from ingredients:
|
|
* 1. code generator:
|
|
* [/home/roland/proj/xo-umbrella2-claude1/xo-facet/codegen/genfacet]
|
|
* arguments:
|
|
* --input [idl/ISyntaxStateMachine_DLambdaSsm.json5]
|
|
* 2. jinja2 template for abstract facet .hpp file:
|
|
* [iface_facet_repr.hpp.j2]
|
|
* 3. idl for facet methods
|
|
* [idl/ISyntaxStateMachine_DLambdaSsm.json5]
|
|
**/
|
|
|
|
#pragma once
|
|
|
|
#include "SyntaxStateMachine.hpp"
|
|
#include "SyntaxStateMachine.hpp"
|
|
#include "ssm/ISyntaxStateMachine_Xfer.hpp"
|
|
#include "DLambdaSsm.hpp"
|
|
|
|
namespace xo { namespace scm { class ISyntaxStateMachine_DLambdaSsm; } }
|
|
|
|
namespace xo {
|
|
namespace facet {
|
|
template <>
|
|
struct FacetImplementation<xo::scm::ASyntaxStateMachine,
|
|
xo::scm::DLambdaSsm>
|
|
{
|
|
using ImplType = xo::scm::ISyntaxStateMachine_Xfer
|
|
<xo::scm::DLambdaSsm,
|
|
xo::scm::ISyntaxStateMachine_DLambdaSsm>;
|
|
};
|
|
}
|
|
}
|
|
|
|
namespace xo {
|
|
namespace scm {
|
|
/** @class ISyntaxStateMachine_DLambdaSsm
|
|
**/
|
|
class ISyntaxStateMachine_DLambdaSsm {
|
|
public:
|
|
/** @defgroup scm-syntaxstatemachine-dlambdassm-type-traits **/
|
|
///@{
|
|
using TypeDescr = xo::scm::ASyntaxStateMachine::TypeDescr;
|
|
using Copaque = xo::scm::ASyntaxStateMachine::Copaque;
|
|
using Opaque = xo::scm::ASyntaxStateMachine::Opaque;
|
|
///@}
|
|
/** @defgroup scm-syntaxstatemachine-dlambdassm-methods **/
|
|
///@{
|
|
// const methods
|
|
/** identify a type of syntax state machine **/
|
|
static syntaxstatetype ssm_type(const DLambdaSsm & self) noexcept;
|
|
/** text describing expected/allowed input to this ssm in current state **/
|
|
static std::string_view get_expect_str(const DLambdaSsm & self) noexcept;
|
|
|
|
// non-const methods
|
|
/** operate state machine for incoming token @p tk **/
|
|
static void on_token(DLambdaSsm & self, const Token & tk, ParserStateMachine * p_psm);
|
|
/** update stat machine for incoming parsed symbol @p sym **/
|
|
static void on_parsed_symbol(DLambdaSsm & self, std::string_view sym, ParserStateMachine * p_psm);
|
|
/** operate state machine for incoming type description @p td **/
|
|
static void on_parsed_typedescr(DLambdaSsm & self, TypeDescr td, ParserStateMachine * p_psm);
|
|
/** operate state machine for formal emitted by nested ssm **/
|
|
static void on_parsed_formal(DLambdaSsm & self, const DUniqueString * param_name, TypeDescr param_type, ParserStateMachine * p_psm);
|
|
/** update state machine for incoming parsed expression @p expr **/
|
|
static void on_parsed_expression(DLambdaSsm & self, obj<AExpression> expr, ParserStateMachine * p_psm);
|
|
/** update state machine for incoming parsed expression @p expr followed by semicolon **/
|
|
static void on_parsed_expression_with_semicolon(DLambdaSsm & self, obj<AExpression> expr, ParserStateMachine * p_psm);
|
|
///@}
|
|
};
|
|
|
|
} /*namespace scm*/
|
|
} /*namespace xo*/
|
|
|
|
/* end */ |