xo-reader: simplify expect_expr_xs,expect_lparen_xs using qsm

This commit is contained in:
Roland Conybeare 2024-08-19 16:48:58 -04:00
commit 0b0c424b84
7 changed files with 14 additions and 18 deletions

View file

@ -17,7 +17,7 @@ namespace xo {
public:
expect_expr_xs();
static void start(exprstatestack * p_stack);
static void start(parserstatemachine * p_psm);
virtual void on_lambda_token(const token_type & tk,
parserstatemachine * p_psm) override;

View file

@ -29,7 +29,7 @@ namespace xo {
static const paren_xs * from(const exprstate * x) { return dynamic_cast<const paren_xs *>(x); }
static void start(exprstatestack * p_stack);
static void start(parserstatemachine * p_psm);
bool admits_f64() const;
bool admits_rightparen() const;