xo-reader2: in DExpectFormalArgSsm handle colon token
This commit is contained in:
parent
2a149d371c
commit
2ddaa861fa
5 changed files with 43 additions and 30 deletions
|
|
@ -51,6 +51,9 @@ namespace xo {
|
|||
using ppindentinfo = xo::print::ppindentinfo;
|
||||
|
||||
public:
|
||||
/** @defgroupo scm-expectfromalargssm-ctors constructors **/
|
||||
///@{
|
||||
|
||||
DExpectFormalArgSsm();
|
||||
|
||||
/** create empty instance using memory from @p mm **/
|
||||
|
|
@ -62,6 +65,18 @@ namespace xo {
|
|||
/** puah instance of this ssm onto @p p_psm **/
|
||||
static void start(ParserStateMachine * p_psm);
|
||||
|
||||
///@}
|
||||
|
||||
/** @defgroup scm-expectformalargssm-methods general methods **/
|
||||
///@{
|
||||
|
||||
/** update state on incoming colon token @p tk;
|
||||
* with overall parser state in @p p_psm
|
||||
**/
|
||||
void on_colon_token(const Token & tk,
|
||||
ParserStateMachine * p_psm);
|
||||
|
||||
///@}
|
||||
/** @defgroup scm-expectformalargssm-ssm-facet syntaxstatemachine facet methods **/
|
||||
///@{
|
||||
|
||||
|
|
@ -115,9 +130,6 @@ namespace xo {
|
|||
virtual void on_symbol(const std::string & symbol_name,
|
||||
parserstatemachine * p_psm) override;
|
||||
|
||||
virtual void on_colon_token(const token_type & tk,
|
||||
parserstatemachine * p_psm) override;
|
||||
|
||||
// virtual void on_comma_token(...) override;
|
||||
|
||||
#ifdef PROBABLY_NOT
|
||||
|
|
|
|||
|
|
@ -32,9 +32,7 @@ namespace xo {
|
|||
|
||||
static DExpectTypeSsm * make(DArena & parser_mm);
|
||||
|
||||
static void start(DArena & parser_mm,
|
||||
//obj<AAllocator> expr_mm,
|
||||
ParserStateMachine * p_psm);
|
||||
static void start(ParserStateMachine * p_psm);
|
||||
|
||||
/** @defgroup scm-expecttype-ssm-facet syntaxstatemachine facet methods **/
|
||||
///@{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue