Add 'xo-reader/' from commit 'c46c0f1cc4'
git-subtree-dir: xo-reader git-subtree-mainline:dacdeb2cd7git-subtree-split:c46c0f1cc4
This commit is contained in:
commit
0ae98c211d
48 changed files with 5184 additions and 0 deletions
45
xo-reader/include/xo/reader/exprseq_xs.hpp
Normal file
45
xo-reader/include/xo/reader/exprseq_xs.hpp
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
/** @file exprseq_xs.hpp
|
||||
*
|
||||
* Author: Roland Conybeare
|
||||
**/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "exprstate.hpp"
|
||||
//#include <cstdint>
|
||||
|
||||
namespace xo {
|
||||
namespace scm {
|
||||
/** @class exprseq_xs
|
||||
* @brief parsing state-machine for top-level expression sequence
|
||||
*
|
||||
**/
|
||||
class exprseq_xs : public exprstate {
|
||||
public:
|
||||
exprseq_xs();
|
||||
|
||||
static void start(parserstatemachine * p_psm);
|
||||
|
||||
public:
|
||||
// ----- token input methods -----
|
||||
|
||||
virtual void on_def_token(const token_type & tk,
|
||||
parserstatemachine * p_psm) override;
|
||||
virtual void on_symbol_token(const token_type & tk,
|
||||
parserstatemachine * p_psm) override;
|
||||
|
||||
// ----- victory methods -----
|
||||
|
||||
virtual void on_typedescr(TypeDescr td,
|
||||
parserstatemachine * p_psm) override;
|
||||
virtual void on_expr(ref::brw<Expression> expr,
|
||||
parserstatemachine * p_psm) override;
|
||||
|
||||
private:
|
||||
static std::unique_ptr<exprseq_xs> make();
|
||||
};
|
||||
} /*namespace scm*/
|
||||
} /*namespace xo*/
|
||||
|
||||
|
||||
/** end exprseq_xs.hpp **/
|
||||
Loading…
Add table
Add a link
Reference in a new issue