xo-reader: refactor: use parserstatemachine for parser.on_input()
This commit is contained in:
parent
034dac7dfd
commit
e5dc8d14d4
2 changed files with 6 additions and 7 deletions
|
|
@ -63,7 +63,7 @@ namespace xo {
|
|||
return os;
|
||||
}
|
||||
|
||||
class parserstatemachine;
|
||||
class parserstatemachine; /* see parserstatemachine.hpp */
|
||||
class exprstatestack;
|
||||
|
||||
class formal_arg;
|
||||
|
|
@ -91,8 +91,7 @@ namespace xo {
|
|||
* forward instructions to parent parser
|
||||
**/
|
||||
void on_input(const token_type & tk,
|
||||
exprstatestack * p_stack,
|
||||
rp<Expression> * p_emit_expr);
|
||||
parserstatemachine * p_psm);
|
||||
|
||||
/** update exprstate in response to a successfully-parsed subexpression **/
|
||||
virtual void on_expr(ref::brw<Expression> expr,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue