xo-reader: refactor: simplify expect_formal_xs api
This commit is contained in:
parent
79c4b59a19
commit
a5e2f622a4
3 changed files with 11 additions and 3 deletions
|
|
@ -47,7 +47,7 @@ namespace xo {
|
|||
public:
|
||||
expect_formal_xs();
|
||||
|
||||
static std::unique_ptr<expect_formal_xs> make();
|
||||
static void start(exprstatestack * p_stack);
|
||||
|
||||
virtual void on_symbol(const std::string & symbol_name,
|
||||
exprstatestack * p_stack,
|
||||
|
|
@ -71,6 +71,9 @@ namespace xo {
|
|||
|
||||
virtual void print(std::ostream & os) const override;
|
||||
|
||||
private:
|
||||
static std::unique_ptr<expect_formal_xs> make();
|
||||
|
||||
private:
|
||||
/** parsing state-machine state **/
|
||||
formalstatetype formalxs_type_ = formalstatetype::formal_0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue