xo-object2: missed generated (Printable,Array) code + .json5
This commit is contained in:
parent
554c01ffad
commit
985e572b21
1 changed files with 42 additions and 0 deletions
42
include/xo/reader2/DSyntaxStateMachine.hpp
Normal file
42
include/xo/reader2/DSyntaxStateMachine.hpp
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
/** @file DSyntaxStateMachine.hpp
|
||||
*
|
||||
* @author Roland Conybeare, Jan 2026
|
||||
**/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <xo/object2/DArray.hpp>
|
||||
|
||||
namespace xo {
|
||||
namespace scm {
|
||||
|
||||
/** @class DSyntaxStateMachine
|
||||
* @brief static interface for implementing ASyntaxStateMachine
|
||||
*
|
||||
* Using CRTP to collect methods common to ASyntaxStateMachine
|
||||
* implementations.
|
||||
*
|
||||
* Deliberately unusable through base class pointer.
|
||||
* For runtime polymorphism use something like:
|
||||
* @code
|
||||
* Derived * d = ...;
|
||||
* auto obj = with_facet<ASyntaxStateMachine>::mkobj(d);
|
||||
* // or
|
||||
* obj<ASyntaxStateMachine,Derived>(d)
|
||||
* @endcode
|
||||
**/
|
||||
template<typename Derived>
|
||||
class DSyntaxStateMachine {
|
||||
friend Derived;
|
||||
|
||||
/** arglist is DArray of obj<AGCObejct,DVariable> **/
|
||||
void on_parsed_formal_arglist(this auto&& self, DArray * arglist, ParserStateMachine * p_psm) {
|
||||
p_psm->illegal_parsed_formal_arglist(
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
} /*namespace scm*/
|
||||
} /*namespace xo*/
|
||||
|
||||
/* end DSyntaxStateMachine.hpp */
|
||||
Loading…
Add table
Add a link
Reference in a new issue