xo-reader2: support 0-argument apply-expressions

This commit is contained in:
Roland Conybeare 2026-02-28 13:21:54 +11:00
commit 6795c1bc15
7 changed files with 138 additions and 77 deletions

View file

@ -218,7 +218,7 @@ namespace xo {
if (!lhs_) {
return "expr1|leftparen";
} else if (op_type_ == optype::invalid) {
return "oper|semicolon|rightparen|rightbrace";
return "oper|semicolon|leftparen|rightparen|rightbrace";
} else {
return "expr2|leftparen";
}