xo-reader2 scaffold (fomo+arena version of xo-reader/) [WIP]
This commit is contained in:
parent
185519a22e
commit
7ee57309b5
25 changed files with 1378 additions and 11 deletions
47
src/reader2/ISyntaxStateMachine_Any.cpp
Normal file
47
src/reader2/ISyntaxStateMachine_Any.cpp
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
/** @file ISyntaxStateMachine_Any.cpp
|
||||
*
|
||||
**/
|
||||
|
||||
#include "ssm/ISyntaxStateMachine_Any.hpp"
|
||||
#include <iostream>
|
||||
|
||||
namespace xo {
|
||||
namespace scm {
|
||||
|
||||
using xo::facet::DVariantPlaceholder;
|
||||
using xo::facet::typeseq;
|
||||
using xo::facet::valid_facet_implementation;
|
||||
|
||||
void
|
||||
ISyntaxStateMachine_Any::_fatal()
|
||||
{
|
||||
/* control here on uninitialized IAllocator_Any.
|
||||
* Initialized instance will have specific implementation type
|
||||
*/
|
||||
std::cerr << "fatal"
|
||||
<< ": attempt to call uninitialized"
|
||||
<< " ISyntaxStateMachine_Any method"
|
||||
<< std::endl;
|
||||
std::terminate();
|
||||
}
|
||||
|
||||
typeseq
|
||||
ISyntaxStateMachine_Any::s_typeseq = typeseq::id<DVariantPlaceholder>();
|
||||
|
||||
bool
|
||||
ISyntaxStateMachine_Any::_valid
|
||||
= valid_facet_implementation<ASyntaxStateMachine, ISyntaxStateMachine_Any>();
|
||||
|
||||
// nonconst methods
|
||||
|
||||
auto
|
||||
ISyntaxStateMachine_Any::on_if_token(Opaque, const Token &, ParserStateMachine *) -> void
|
||||
{
|
||||
_fatal();
|
||||
}
|
||||
|
||||
|
||||
} /*namespace scm*/
|
||||
} /*namespace xo*/
|
||||
|
||||
/* end ISyntaxStateMachine_Any.cpp */
|
||||
Loading…
Add table
Add a link
Reference in a new issue