xo-reader2: DExpectFormalArglistSsm parses multiple formals

This commit is contained in:
Roland Conybeare 2026-01-29 13:48:24 -05:00
commit 6df599673a
4 changed files with 67 additions and 54 deletions

View file

@ -75,6 +75,10 @@ namespace xo {
void on_leftparen_token(const Token & tk,
ParserStateMachine * p_psm);
/** update state on incoming token @p tk, with overall parser state in @p psm **/
void on_comma_token(const Token & tk,
ParserStateMachine * p_psm);
///@}
/** @defgroup scm-expectformalarglistssm-ssm-facet syntaxstatemachine facet methods **/
///@{
@ -140,10 +144,6 @@ namespace xo {
private:
/** parsing state-machine state **/
formalarglstatetype fastate_ = formalarglstatetype::argl_0;
/** number of formal parameters encountered.
* Invariant: n_args_ <= argl_->size()
**/
size_type n_args_ = 0;
/** populate with (parmaeter-name, parameter-type) list
* as they're encountered.
*