xo-reader2: allow formals w/out explicit type
This commit is contained in:
parent
121fb2dfad
commit
27c5f66e74
39 changed files with 307 additions and 32 deletions
|
|
@ -83,6 +83,23 @@ namespace xo {
|
|||
self.get_expect_str());
|
||||
}
|
||||
|
||||
/** Default implementation for required SyntaxStateMachine facet method
|
||||
**/
|
||||
void on_parsed_formal_with_token(const DUniqueString * param_name,
|
||||
TypeDescr param_type,
|
||||
const Token & tk,
|
||||
ParserStateMachine * p_psm)
|
||||
{
|
||||
// starting with c++23 can use "this auto&& self" instead
|
||||
Derived & self = reinterpret_cast<Derived&>(*this);
|
||||
|
||||
p_psm->illegal_parsed_formal_with_token(Derived::ssm_classname(),
|
||||
param_name,
|
||||
param_type,
|
||||
tk,
|
||||
self.get_expect_str());
|
||||
}
|
||||
|
||||
/** Default implementation for required SyntaxStateMachine facet method
|
||||
*
|
||||
* arglist is DArray of obj<AGCObejct,DVariable>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue