xo-reader: streamline: drop redundant admits_xxx() methods

This commit is contained in:
Roland Conybeare 2024-08-10 23:57:01 -05:00
commit e9e0d5255f
8 changed files with 29 additions and 44 deletions

View file

@ -47,7 +47,9 @@ namespace xo {
bool admits_semicolon() const;
virtual bool admits_symbol() const override;
virtual bool admits_singleassign() const override;
#ifdef OBSOLETE
bool admits_singleassign() const;
#endif
// virtual void on_f64(..) override
virtual void on_expr(ref::brw<Expression> expr,

View file

@ -75,11 +75,9 @@ namespace xo {
/** true iff this parsing state admits a symbol as next token **/
virtual bool admits_symbol() const;
#ifdef OBSOLETE
/** true iff this parsing state admits a semicolon as next token **/
virtual bool admits_semicolon() const;
#endif
/** true iff this parsing state admits a singleassign '=' as next token **/
virtual bool admits_singleassign() const;
#endif
/** update exprstate in response to incoming token @p tk,
* forward instructions to parent parser

View file

@ -35,7 +35,6 @@ namespace xo {
bool admits_rightparen() const;
virtual bool admits_symbol() const override;
virtual bool admits_singleassign() const override;
virtual void on_expr(ref::brw<Expression> expr,
exprstatestack * p_stack,

View file

@ -25,7 +25,9 @@ namespace xo {
bool admits_f64() const;
virtual bool admits_symbol() const override;
virtual bool admits_singleassign() const override;
#ifdef OBSOLETE
bool admits_singleassign() const;
#endif
virtual void on_expr(ref::brw<Expression> expr,
exprstatestack * p_stack,