xo-reader: simplify expect_expr_xs,expect_lparen_xs using qsm
This commit is contained in:
parent
6dcc0d420e
commit
0b0c424b84
7 changed files with 14 additions and 18 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue