xo-reader: streamline: drop redundant admits_xxx() methods
This commit is contained in:
parent
f1f5b44a81
commit
e9e0d5255f
8 changed files with 29 additions and 44 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue